From owner-freebsd-toolchain@freebsd.org Sun Mar 3 11:50:08 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 696F11507601 for ; Sun, 3 Mar 2019 11:50:08 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [176.74.240.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AEA9E819B9; Sun, 3 Mar 2019 11:50:06 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router.digiware.nl (localhost.digiware.nl [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id EE86217A06; Sun, 3 Mar 2019 12:50:04 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.com Received: from smtp.digiware.nl ([127.0.0.1]) by router.digiware.nl (router.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CuJ9Cpowru0c; Sun, 3 Mar 2019 12:50:04 +0100 (CET) Received: from [192.168.10.9] (vaio [192.168.10.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id E791E17A05; Sun, 3 Mar 2019 12:50:03 +0100 (CET) Subject: Re: Linking problem with lld To: =?UTF-8?Q?T=c4=b3l_Coosemans?= Cc: FreeBSD Toolchain , Ed Maste References: <71079fbc-c3c0-9b93-0ae4-8ceda5d1f751@digiware.nl> <20190222223456.5d7840b7@kalimero.tijl.coosemans.org> <29a75c78-f2df-e80b-d013-631584e0fc71@digiware.nl> <20190302162142.2bf23551@kalimero.tijl.coosemans.org> <9f659c4b-d542-b610-8e29-1341a00b43b7@digiware.nl> <20190302183501.478d29e8@kalimero.tijl.coosemans.org> From: Willem Jan Withagen Message-ID: <492f6e8c-166d-a3ba-c4ed-f042a9c73072@digiware.nl> Date: Sun, 3 Mar 2019 12:50:03 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190302183501.478d29e8@kalimero.tijl.coosemans.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: nl X-Rspamd-Queue-Id: AEA9E819B9 X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of wjw@digiware.nl designates 176.74.240.9 as permitted sender) smtp.mailfrom=wjw@digiware.nl X-Spamd-Result: default: False [-7.09 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[digiware.nl]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; IP_SCORE(-3.63)[ip: (-9.74), ipnet: 176.74.224.0/19(-4.87), asn: 28878(-3.55), country: NL(0.02)]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[9.240.74.176.list.dnswl.org : 127.0.9.2]; MX_GOOD(-0.01)[cached: smtp.digiware.nl]; NEURAL_HAM_SHORT(-0.95)[-0.949,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:28878, ipnet:176.74.224.0/19, country:NL]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Mar 2019 11:50:08 -0000 On 2-3-2019 18:35, Tijl Coosemans wrote: > On Sat, 2 Mar 2019 17:49:25 +0100 Willem Jan Withagen > wrote: >> On 2-3-2019 16:21, Tijl Coosemans wrote: >>> On Sat, 2 Mar 2019 14:21:57 +0100 Willem Jan Withagen >>> wrote: >>>> Now if I look in librados.so for rados_create that gives: >>>> ==== >>>> > objdump -t librados.so.2.0.0 | grep rados_create >>> You want to look at dynamic symbols so "objdump -T". >> Right, that list is empty. >> >> So I'm wondering what I can do to get them in that list. > Try the command that creates librados.so.2.0.0 without the > --version-script argument. Right, When I see the output, I know I tried that before. But then the versioning goes wrong, I think... Might need to rewrite the map-file? --WjW [ 43%] Linking CXX shared library ../../lib/librados.so cd /home/jenkins/workspace/ceph-master/build/src/librados && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/librados.dir/link.txt --verbose=1 ccache /usr/bin/c++ -fPIC  -Wall -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -Werror=format-security -fno-strict-aliasing -fsigned-char -Wno-unknown-pragmas -Wno-unused-function -Wno-unused-local-typedef -Wno-varargs -Wno-gnu-designator -Wno-missing-braces -Wno-parentheses -Wno-deprecated-register -ftemplate-depth-1024 -Wnon-virtual-dtor -Wno-unknown-pragmas -Wno-ignored-qualifiers -Wno-inconsistent-missing-override -Wno-mismatched-tags -Wno-unused-private-field -Wno-address-of-packed-member -DCEPH_DEBUG_MUTEX -fdiagnostics-color=auto -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free  -O0 -g -fvisibility=default  -Wl,--exclude-libs,ALL -shared -Wl,-soname,librados.so.2 -o ../../lib/librados.so.2.0.0 CMakeFiles/librados.dir/librados_c.cc.o CMakeFiles/librados.dir/librados_cxx.cc.o ../common/CMakeFiles/common_buffer_obj.dir/buffer.cc.o -L/usr/local/lib -Wl,-rpath,/usr/local/lib:/home/jenkins/workspace/ceph-master/build/lib:/usr/local/lib/nss: ../../lib/liblibrados_impl.a ../../lib/libosdc.a ../../lib/libceph-common.so.0 ../../lib/libcls_lock_client.a /usr/local/lib/nss/libssl3.so /usr/local/lib/nss/libsmime3.so /usr/local/lib/nss/libnss3.so /usr/local/lib/nss/libnssutil3.so /usr/local/lib/libplds4.so /usr/local/lib/libplc4.so /usr/local/lib/libnspr4.so /usr/local/lib/libcrypto.so -lrt ../../lib/libjson_spirit.a ../../lib/libcommon_utf8.a ../../lib/liberasure_code.a ../../lib/libcrc32.a ../../lib/libarch.a /usr/local/lib/libboost_thread.so /usr/local/lib/libboost_chrono.so /usr/local/lib/libboost_atomic.so /usr/local/lib/libboost_random.so /usr/local/lib/libboost_system.so /usr/local/lib/libboost_program_options.so /usr/local/lib/libboost_date_time.so /usr/local/lib/libboost_iostreams.so /usr/local/lib/libboost_regex.so /usr/lib/libexecinfo.so /usr/local/lib/nss/libssl3.so /usr/local/lib/nss/libsmime3.so /usr/local/lib/nss/libnss3.so /usr/local/lib/nss/libnssutil3.so /usr/local/lib/libplds4.so /usr/local/lib/libplc4.so /usr/local/lib/libnspr4.so -lpthread ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_append@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_cancel@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_cmpext@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_create_completion@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_exec@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_flush@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_flush_async@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_get_return_value@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_get_version@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_getxattr@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_getxattrs@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_ioctx_selfmanaged_snap_create@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_ioctx_selfmanaged_snap_remove@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_is_complete@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_is_complete_and_cb@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_is_safe@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_is_safe_and_cb@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_notify@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_read@@ has undefined version ld: error: CMakeFiles/librados.dir/librados_c.cc.o: symbol rados_aio_read_op_operate@@ has undefined version ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors) c++: error: linker command failed with exit code 1 (use -v to see invocation)