https://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2016-12-03T21:59:43ZCeph devops - Backport #18133: jewel: undefined references when building unit tests with --with-xiohttps://tracker.ceph.com/issues/18133?journal_id=824822016-12-03T21:59:43ZNathan Cutlerncutler@suse.cz
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/82482/diff?detail_id=79537">diff</a>)</li></ul><a name="description"></a>
<h3 >description<a href="#description" class="wiki-anchor">¶</a></h3>
<p>This kind of thing happens when linking several of the unit tests. As far as I can tell, it only happens when building RPMs with --with-xio:</p>
<pre>
[ 3451s] ./.libs/libcommon.a(Crypto.o): In function `CryptoAESKeyHandler::init(ceph::buffer::ptr const&, std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >&)':
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:280: undefined reference to `PK11_GetBestSlot'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:291: undefined reference to `PK11_ImportSymKey'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:304: undefined reference to `PK11_ParamFromIV'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:282: undefined reference to `PR_GetError'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:293: undefined reference to `PR_GetError'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:306: undefined reference to `PR_GetError'
[ 3451s] ./.libs/libcommon.a(Crypto.o): In function `nss_aes_operation(unsigned long, unsigned long, PK11SymKeyStr*, SECItemStr*, ceph::buffer::list const&, ceph::buffer::list&, std::string*)':
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:222: undefined reference to `PK11_CreateContextBySymKey'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:229: undefined reference to `PK11_CipherOp'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:231: undefined reference to `PK11_DestroyContext'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:234: undefined reference to `PR_GetError'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:243: undefined reference to `PK11_DigestFinal'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:244: undefined reference to `PK11_DestroyContext'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:248: undefined reference to `PR_GetError'
[ 3451s] ./.libs/libcommon.a(Crypto.o): In function `CryptoAESKeyHandler::~CryptoAESKeyHandler()':
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:272: undefined reference to `SECITEM_FreeItem'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:273: undefined reference to `PK11_FreeSymKey'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:274: undefined reference to `PK11_FreeSlot'
[ 3451s] ./.libs/libcommon.a(Crypto.o): In function `CryptoAESKeyHandler::~CryptoAESKeyHandler()':
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:272: undefined reference to `SECITEM_FreeItem'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:273: undefined reference to `PK11_FreeSymKey'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/auth/Crypto.cc:274: undefined reference to `PK11_FreeSlot'
[ 3451s] ./.libs/libcommon.a(ceph_crypto.o): In function `ceph::crypto::init(CephContext*)':
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/common/ceph_crypto.cc:59: undefined reference to `SECMOD_RestartModules'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/common/ceph_crypto.cc:74: undefined reference to `NSS_InitContext'
[ 3451s] ./.libs/libcommon.a(ceph_crypto.o): In function `ceph::crypto::shutdown()':
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/common/ceph_crypto.cc:85: undefined reference to `NSS_ShutdownContext'
[ 3451s] ./.libs/libcommon.a(ceph_crypto.o): In function `ceph::crypto::HMAC::~HMAC()':
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/common/ceph_crypto.cc:94: undefined reference to `PK11_DestroyContext'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/common/ceph_crypto.cc:95: undefined reference to `PK11_FreeSymKey'
[ 3451s] /home/abuild/rpmbuild/BUILD/ceph-10.2.0+git.1462026398.3f40fbb/src/common/ceph_crypto.cc:96: undefined reference to `PK11_FreeSlot'
[ 3451s] collect2: error: ld returned 1 exit status
[ 3451s] Makefile:18094: recipe for target 'unittest_log' failed
</pre> devops - Backport #18133: jewel: undefined references when building unit tests with --with-xiohttps://tracker.ceph.com/issues/18133?journal_id=825232016-12-05T08:56:15ZLoïc Dacharyloic@dachary.org
<ul><li><strong>Subject</strong> changed from <i>Undefined references when building unit tests with --with-xio</i> to <i>jewel: undefined references when building unit tests with --with-xio</i></li></ul> devops - Backport #18133: jewel: undefined references when building unit tests with --with-xiohttps://tracker.ceph.com/issues/18133?journal_id=826052016-12-06T13:10:26ZNathan Cutlerncutler@suse.cz
<ul><li><strong>Status</strong> changed from <i>7</i> to <i>Resolved</i></li></ul> devops - Backport #18133: jewel: undefined references when building unit tests with --with-xiohttps://tracker.ceph.com/issues/18133?journal_id=833782016-12-22T10:16:31ZLoïc Dacharyloic@dachary.org
<ul><li><strong>Target version</strong> set to <i>v10.2.6</i></li></ul>