Project

General

Profile

Bug #5103

Does not compile correctly without specifying OpenSSL path

Added by Zhiyi Zhang 9 months ago. Updated 9 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

OS: MACOS 10.15.4
Openssl: Installed by HomeBrew

brew list openssl
/usr/local/Cellar/openssl@1.1/1.1.1f/.bottle/etc/ (7 files)
/usr/local/Cellar/openssl@1.1/1.1.1f/bin/c_rehash
/usr/local/Cellar/openssl@1.1/1.1.1f/bin/openssl
/usr/local/Cellar/openssl@1.1/1.1.1f/include/openssl/ (104 files)
/usr/local/Cellar/openssl@1.1/1.1.1f/lib/libcrypto.1.1.dylib
/usr/local/Cellar/openssl@1.1/1.1.1f/lib/libssl.1.1.dylib
/usr/local/Cellar/openssl@1.1/1.1.1f/lib/engines-1.1/ (2 files)
/usr/local/Cellar/openssl@1.1/1.1.1f/lib/pkgconfig/ (3 files)
/usr/local/Cellar/openssl@1.1/1.1.1f/lib/ (4 other files)
/usr/local/Cellar/openssl@1.1/1.1.1f/share/doc/ (3963 files)
/usr/local/Cellar/openssl@1.1/1.1.1f/share/man/ (3963 files)

Replay the error:

./waf configure
Setting top to                           : /Users/ZhangZhiyi/Develop/ndn-tools
Setting out to                           : /Users/ZhangZhiyi/Develop/ndn-tools/build
Checking for 'clang++' (C++ compiler)    : /usr/bin/clang++
Checking C++ compiler version            : 11.0.0
Checking supported CXXFLAGS              : -std=c++14 -isystem /usr/local/include -isystem /opt/local/include
Checking for program 'sphinx-build'      : /usr/local/opt/sphinx-doc/bin/sphinx-build
Checking for program 'pkg-config'        : /usr/local/bin/pkg-config
Checking for 'libndn-cxx'                : yes
Checking for program 'dpkg-architecture' : not found
Checking boost includes                  : 1.70.0
Checking boost libs                      : boost_system-mt boost_program_options-mt boost_filesystem-mt
Checking for boost linkage               : ok
Checking for 'libpcap'                   : yes
Checking if struct tcphdr has member th_off  : yes
Checking if struct udphdr has member uh_ulen : yes
Checking supported CXXFLAGS                  : -O2 -g -pedantic -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -fcolor-diagnostics -Wextra-semi -Wundefined-func-template -Wno-unused-local-typedef
Checking supported LINKFLAGS                 : not found
Tools to build                               : peek, ping, dissect, dissect-wireshark, chunks, dump
'configure' finished successfully (2.331s)
./waf
Waf: Entering directory `/Users/ZhangZhiyi/Develop/ndn-tools/build'
[ 2/38] Compiling build/core/version.cpp
[ 3/38] Compiling tools/peek/ndnpeek/ndnpeek.cpp
[ 4/38] Compiling tools/peek/ndnpeek/main.cpp
[ 5/38] Compiling tools/peek/ndnpoke/ndnpoke.cpp
[ 6/38] Compiling tools/peek/ndnpoke/main.cpp
[ 7/38] Compiling tools/ping/client/statistics-collector.cpp
[ 8/38] Compiling tools/ping/client/ping.cpp
[ 9/38] Compiling tools/ping/client/tracer.cpp
[10/38] Compiling tools/ping/client/main.cpp
[11/38] Compiling tools/ping/server/tracer.cpp
[12/38] Compiling tools/ping/server/ping-server.cpp
[13/38] Compiling tools/ping/server/main.cpp
[14/38] Compiling tools/dissect/ndn-dissect.cpp
[15/38] Compiling tools/dissect/main.cpp
[16/38] Compiling tools/chunks/catchunks/data-fetcher.cpp
[17/38] Compiling tools/chunks/catchunks/discover-version.cpp
[18/38] Linking build/bin/ndnpoke
ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Waf: Leaving directory `/Users/ZhangZhiyi/Develop/ndn-tools/build'
Build failed
 -> task in 'ndnpoke' failed with exit status 1 (run with -v to display more information)
#1

Updated by Davide Pesavento 9 months ago

  • Start date deleted (04/20/2020)

-> task in 'ndnpoke' failed with exit status 1 (run with -v to display more information)

Please do what it says (./waf -v) and paste the output here, just the failing linking command is enough.

#2

Updated by Zhiyi Zhang 9 months ago

Hmm. It's weird.
It seems that even I cannot replay the error again.
I think one possible reason is that I didn't distclean the previous configure from an old version.

Sorry for bothering you.
I will close the issue and abandon the commit.

#3

Updated by Davide Pesavento 9 months ago

  • Status changed from New to Rejected

Also available in: Atom PDF