And as to why the build failed on my laptop but succeeded on my desktop... My desktop didn't have the libnss3-dev package installed. When I installed that package - and thus triggered the attempt to build libsslcommon.so - the build on my desktop fails in the same way:
Scanning dependencies of target sslcommon [ 81%] Building CXX object src/CMakeFiles/sslcommon.dir/qpid/sys/ssl/check.o [ 81%] Building CXX object src/CMakeFiles/sslcommon.dir/qpid/sys/ssl/util.o [ 81%] Building CXX object src/CMakeFiles/sslcommon.dir/qpid/sys/ssl/SslSocket.o Linking CXX shared library libsslcommon.so 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' CMakeFiles/sslcommon.dir/qpid/sys/ssl/util.o: In function `qpid::sys::ssl::promptForPassword(PK11SlotInfoStr*, int, void*)': util.cpp:(.text+0x3b8): undefined reference to `PL_strdup' CMakeFiles/sslcommon.dir/qpid/sys/ssl/util.o: In function `qpid::sys::ssl::readPasswordFromFile(PK11SlotInfoStr*, int, void*)': util.cpp:(.text+0x4b9): undefined reference to `PL_strdup' CMakeFiles/sslcommon.dir/qpid/sys/ssl/util.o: In function `qpid::sys::ssl::initNSS(qpid::sys::ssl::SslOptions const&, bool)': util.cpp:(.text+0x58a): undefined reference to `PK11_SetPasswordFunc' util.cpp:(.text+0x59b): undefined reference to `PK11_SetPasswordFunc' util.cpp:(.text+0x5b6): undefined reference to `NSS_Init' util.cpp:(.text+0x6a7): undefined reference to `NSS_SetExportPolicy' util.cpp:(.text+0x779): undefined reference to `NSS_SetDomesticPolicy' util.cpp:(.text+0x86c): undefined reference to `SSL_ConfigServerSessionIDCache' Anyone got any suggestions? -- Rob On 22 March 2013 15:44, Rob Godfrey <[email protected]> wrote: > On 22 March 2013 15:06, Fraser Adams <[email protected]> wrote: >> Hi all, >> Just tried to get a bit "on trend" and build the latest trunk on Linux Mint >> 12 (Ubuntu 11.10) using cmake >> >> I did: >> cd qpid-trunk/qpid/cpp >> mkdir bld >> cd bld >> cmake .. >> make all >> sudo make install >> >> >> The good news is that doing make and sudo make install both seemed to run >> without errors, though there were a couple of warnings: >> >> " >> /home/fadams/qpid/qpid-trunk/qpid/cpp/include/qmf/engine/ConnectionSettings.h:110: >> Warning(472): Overloaded method >> qmf::engine::ConnectionSettings::transportTcp() with no explicit typecheck >> typemap for arg 1 of type 'uint16_t' >> /home/fadams/qpid/qpid-trunk/qpid/cpp/include/qmf/engine/ConnectionSettings.h:111: >> Warning(472): Overloaded method >> qmf::engine::ConnectionSettings::transportSsl() with no explicit typecheck >> typemap for arg 1 of type 'uint16_t' >> /home/fadams/qpid/qpid-trunk/qpid/cpp/include/qmf/engine/ConnectionSettings.h:112: >> Warning(472): Overloaded method >> qmf::engine::ConnectionSettings::transportRdma() with no explicit typecheck >> typemap for arg 1 of type 'uint16_t' >> " >> Though these should be unrelated to the final fail. >> >> >> The problem I've got is when I do qpidd I get: >> >> qpidd >> qpidd: error while loading shared libraries: libqpidbroker.so.2.0.0: cannot >> open shared object file: No such file or directory >> >> >> I've definitely got qpidd in /usr/local/sbin and my /usr/local/lib looks >> like it ought to have the library being moaned about: >> >> /usr/local/lib$ ls -al >> total 21192 >> drwxr-xr-x 7 root root 4096 2013-03-22 13:41 . >> drwxr-xr-x 13 root root 4096 2013-03-22 13:41 .. >> lrwxrwxrwx 1 root root 16 2013-03-22 13:41 libqmf2.so -> >> libqmf2.so.1.0.0 >> -rw-r--r-- 1 root root 1193488 2013-03-22 13:36 libqmf2.so.1.0.0 >> lrwxrwxrwx 1 root root 22 2013-03-22 13:41 libqmfconsole.so -> >> libqmfconsole.so.2.0.0 >> -rw-r--r-- 1 root root 784932 2013-03-22 13:36 libqmfconsole.so.2.0.0 >> lrwxrwxrwx 1 root root 21 2013-03-22 13:41 libqmfengine.so -> >> libqmfengine.so.1.1.0 >> -rw-r--r-- 1 root root 1755653 2013-03-22 13:36 libqmfengine.so.1.1.0 >> lrwxrwxrwx 1 root root 15 2013-03-22 13:41 libqmf.so -> >> libqmf.so.1.0.0 >> -rw-r--r-- 1 root root 609079 2013-03-22 13:36 libqmf.so.1.0.0 >> *lrwxrwxrwx 1 root root 22 2013-03-22 13:41 libqpidbroker.so -> >> libqpidbroker.so.2.0.0** >> **-rw-r--r-- 1 root root 8328742 2013-03-22 13:33 libqpidbroker.so.2.0.0* >> lrwxrwxrwx 1 root root 22 2013-03-22 13:41 libqpidclient.so -> >> libqpidclient.so.2.0.0 >> -rw-r--r-- 1 root root 2000509 2013-03-22 13:34 libqpidclient.so.2.0.0 >> lrwxrwxrwx 1 root root 22 2013-03-22 13:41 libqpidcommon.so -> >> libqpidcommon.so.2.0.0 >> -rw-r--r-- 1 root root 5200467 2013-03-22 13:29 libqpidcommon.so.2.0.0 >> lrwxrwxrwx 1 root root 25 2013-03-22 13:41 libqpidmessaging.so -> >> libqpidmessaging.so.2.0.0 >> -rw-r--r-- 1 root root 1565710 2013-03-22 13:35 libqpidmessaging.so.2.0.0 >> lrwxrwxrwx 1 root root 21 2013-03-22 13:41 libqpidtypes.so -> >> libqpidtypes.so.1.0.0 >> -rw-r--r-- 1 root root 215567 2013-03-22 13:26 libqpidtypes.so.1.0.0 >> drwxrwxr-x 3 root root 4096 2013-02-10 10:08 perl >> drwxr-xr-x 2 root root 4096 2013-03-22 13:41 pkgconfig >> drwxrwsr-x 4 root staff 4096 2011-10-12 15:27 python2.7 >> drwxr-xr-x 5 root root 4096 2012-01-02 19:56 qpid >> drwxr-xr-x 3 root root 4096 2012-10-11 17:22 site_ruby >> >> >> It's clearly a link error but I know nothing about cmake so wouldn't know >> where to begin looking. >> >> My system previously had a (working :-)) install of qpid 0.20 built with >> automake which I did "sudo make uninstall" on before trying to cmake the >> trunk and I checked the /usr/local/* directories were empty before I started >> with cmake so ld *ought* to be behaving OK. >> >> >> I'd appreciate any help to get this working. Rob (Godfrey) have you tried >> cmake on your Ubuntu box yet? > > So... my Ubuntu laptop is still failing with the cmake build as I > detailed in an earlier mail. I just tried on my Ubuntu desktop and it > did build to completion, and ran fine from the builld/src directory; > however running make install and attempting to run the installed > binary I get the same error as you. > > -- Rob > >> >> Cheers, >> Frase >> >> >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
