On 2 April 2013 13:03, Gordon Sim <[email protected]> wrote: > On 04/02/2013 11:49 AM, Rob Godfrey wrote: > >> On 2 April 2013 12:47, Rob Godfrey <[email protected]> wrote: >> >> >>> >>> On 2 April 2013 12:27, Gordon Sim <[email protected]> wrote: >>> >>> On 04/02/2013 10:58 AM, Rob Godfrey wrote: >>>> >>>> $ cat /usr/lib/x86_64-linux-gnu/****pkgconfig/nspr.pc >>>>> prefix=/usr >>>>> exec_prefix=${prefix} >>>>> libdir=/usr/lib/x86_64-linux-****gnu >>>>> includedir=${prefix}/include/****nspr >>>>> >>>>> >>>>> Name: NSPR >>>>> Description: The Netscape Portable Runtime >>>>> Version: 4.9.5 >>>>> Libs: -L/usr/lib/x86_64-linux-gnu -lplds4 -lplc4 -lnspr4 >>>>> Cflags: -I${prefix}/include/nspr >>>>> >>>>> >>>> The only thing I can think of is that pkg-config is erroneously removing >>>> the lib dir because it thinks it is on the default linker path. >>>> >>>> If you set the PKG_CONFIG_ALLOW_SYSTEM_LIBS variable, what does >>>> `pkg-config --libs nspr` give then? >>>> >>>> >>>> $ export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 >>> $ pkg-config --libs nspr >>> >>> >> -L/usr/lib/x86_64-linux-gnu -lplds4 -lplc4 -lnspr4 >> >> >> Oops - missed off the vital part in that copy and paste operation :-) >> > > Phew! I thought it was not giving any output in that case, which was even > more mysterious! > > That experiment seems to confirm that /usr/lib/x86_64-linux-gnu is being > excluded due to the (incorrect) assumption that it is on the default link > path. > > If set before cmake is run, does that variable allow the build to work or > does it result in other issues? > > > No it seems to get exactly the same issue -( :
/usr/bin/c++ -fPIC -fvisibility-inlines-hidden -Werror -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers -Woverloaded-virtual -L/usr/lib/x86_64-linux-gnu -lnss3 -lnssutil3 -lsmime3 -lssl3 -lplds4 -lplc4 -lnspr4 -Wl,--no-undefined -pthread -shared -Wl,-soname,libsslcommon.so.2.0.0 -o libsslcommon.so.2.0.0 CMakeFiles/sslcommon.dir/qpid/sys/ssl/check.o CMakeFiles/sslcommon.dir/qpid/sys/ssl/util.o CMakeFiles/sslcommon.dir/qpid/sys/ssl/SslSocket.o libqpidcommon.so.2.0.0 libqpidtypes.so.1.0.0 -luuid -lboost_system-mt -lboost_program_options-mt -ldl -lrt -lsasl2 -Wl,-rpath,/home/rob/qpid-cpp-cmake/cpp/build/src: CMakeFiles/sslcommon.dir/qpid/sys/ssl/check.o: In function `qpid::sys::ssl::ErrorString::ErrorString()': check.cpp:(.text+0xd): undefined reference to `PR_GetError' check.cpp:(.text+0x1a): undefined reference to `PR_GetErrorTextLength' check.cpp:(.text+0x3f): undefined reference to `PR_GetErrorText' -- Rob ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > [email protected].**org<[email protected]> > For additional commands, e-mail: [email protected] > >
