Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 409961

Summary: app-emulation/virtualbox [vboxwebsrv] with net-libs/gsoap [gnutls] - /usr/lib64/libgsoapssl++.a(libgsoapssl___a-stdsoap2_ssl_cpp.o): In function `soap_ssl_ init': (.text+0x47df): undefined reference to `gcry_control'
Product: Gentoo Linux Reporter: jospezial <jospezial>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED OBSOLETE    
Severity: normal CC: adaptee, alonbl, patrick, proxy-maint, swapon
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: failed virtualbox build.log zipped

Description jospezial 2012-03-28 08:28:00 UTC
gsoap-2.8.8 has two new USE flags. gnutls and ipv6 were not there in gsoap-2.8.1


emerge -pv gsoap

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] net-libs/gsoap-2.8.8  USE="gnutls* ipv6 ssl -debug -doc -examples" 0 kB


When gsoap is installed with enabled gnutls
then the later emerge of virtualbox fails:



  LD      vboxwebsrv
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../lib64/libgsoapssl++.a(libgsoapssl___a-stdsoap2_ssl_cpp.o): In function `soap_ssl_init':
(.text+0x47df): undefined reference to `gcry_control'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../lib64/libgsoapssl++.a(libgsoapssl___a-stdsoap2_ssl_cpp.o): In function `soap_ssl_init':
(.text+0x47ed): undefined reference to `gcry_control'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../lib64/libgsoapssl++.a(libgsoapssl___a-stdsoap2_ssl_cpp.o): In function `soap_ssl_init':
(.text+0x47fb): undefined reference to `gcry_control'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../lib64/libgsoapssl++.a(libgsoapssl___a-stdsoap2_ssl_cpp.o): In function `soap_ssl_init':
(.text+0x4809): undefined reference to `gcry_control'
collect2: ld gab 1 als Ende-Status zurück
kmk: *** [/var/tmp/portage/app-emulation/virtualbox-4.1.10/work/VirtualBox-4.1.10/out/linux.amd64/release/obj/vboxwebsrv/vboxwebsrv] Error 1
The failing command:
@x86_64-pc-linux-gnu-g++                     '-Wl,-rpath,/usr/lib64/virtualbox'  -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -m64   -o /var/tmp/portage/app-emulation/virtualbox-4.1.10/work/VirtualBox-4.1.10/out/linux.amd64/release/obj/vboxwebsrv/vboxwebsrv /var/tmp/portage/app-emulation/virtualbox-4.1.10/work/VirtualBox-4.1.10/out/linux.amd64/release/obj/vboxwebsrv/vboxweb.o /var/tmp/portage/app-emulation/virtualbox-4.1.10/work/VirtualBox-4.1.10/out/linux.amd64/release/obj/vboxwebsrv/gen/webservice/methodmaps.o /var/tmp/portage/app-emulation/virtualbox-4.1.10/work/VirtualBox-4.1.10/out/linux.amd64/release/obj/vboxwebsrv/gen/webservice/soapServer.o /var/tmp/portage/app-emulation/virtualbox-4.1.10/work/VirtualBox-4.1.10/out/linux.amd64/release/obj/vboxwebsrv/gen/webservice/vboxweb-wsdl.o     /var/tmp/portage/app-emulation/virtualbox-4.1.10/work/VirtualBox-4.1.10/out/linux.amd64/release/lib/vboxsoap.a   -lgsoapssl++   /var/tmp/portage/app-emulation/virtualbox-4.1.10/work/VirtualBox-4.1.10/out/linux.amd64/release/
bin/VBoxRT.so   -lpthread   -lm   -lrt   /var/tmp/portage/app-emulation/virtualbox-4.1.10/work/VirtualBox-4.1.10/out/linux.amd64/release/bin/VBoxRT.so   -ldl   /var/tmp/portage/app-emulation/virtualbox-4.1.10/work/VirtualBox-4.1.10/out/linux.amd64/release/lib/VBoxCOM.a   /var/tmp/portage/app-emulation/virtualbox-4.1.10/work/VirtualBox-4.1.10/out/linux.amd64/release/bin/VBoxXPCOM.so   -lssl   -lcrypto 
kmk: *** Waiting for unfinished jobs..



When gsoap is installed with disabled gnutls
then the later emerge of virtualbox goes fine.

Tested on two different computers (P3 and AMD64)
Comment 1 jospezial 2012-03-28 08:34:47 UTC
Created attachment 306929 [details]
failed virtualbox build.log zipped
Comment 2 jospezial 2014-04-04 12:56:17 UTC
I gave that thing a new try but still does not work.
With:

net-libs/gsoap-2.8.17 was built with the following:
USE="gnutls ipv6 ssl -debug -doc -examples" ABI_X86="64"


app-emulation/virtualbox-4.3.10-r1 was built with the following:
USE="additions alsa extensions java opengl pam pulseaudio qt4 sdk vboxwebsrv vnc -doc -headless -python" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"


net-libs/gnutls-3.2.12.1 was built with the following:
USE="crywrap cxx nls zlib -dane -doc -examples -guile -pkcs11 -static-libs -test" LINGUAS="de -cs -en -fi -fr -it -ms -nl -pl -sv -uk -vi -zh_CN"


I had to emerge virtualbox with

emerge -va virtualbox --nodeps
(because the ebuild correctly does depend on gsoap -gnutls)

  LD webtest
kmk_builtin_rm -f -- /var/tmp/portage/app-emulation/virtualbox-4.3.10-r1/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/webtest/webtest.dep /var/tmp/portage/app-emulation/virtualbox-4.3.10-r1/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/webtest/webtest  /var/tmp/portage/app-emulation/virtualbox-4.3.10-r1/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/webtest/webtest.map 
x86_64-pc-linux-gnu-g++                     '-Wl,-rpath,/usr/lib64/virtualbox'  -Wl,-z,noexecstack -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -m64   -o /var/tmp/portage/app-emulation/virtualbox-4.3.10-r1/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/webtest/webtest /var/tmp/portage/app-emulation/virtualbox-4.3.10-r1/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/webtest/webtest.o /var/tmp/portage/app-emulation/virtualbox-4.3.10-r1/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/webtest/gen/webservice/soapClient.o     /var/tmp/portage/app-emulation/virtualbox-4.3.10-r1/work/VirtualBox-4.3.10/out/linux.amd64/release/lib/vboxsoap.a   -lgsoapssl++   -lz   /var/tmp/portage/app-emulation/virtualbox-4.3.10-r1/work/VirtualBox-4.3.10/out/linux.amd64/release/bin/VBoxRT.so   -lpthread   -lm   -lrt   -ldl   -lssl   -lcrypto 
  INST VBoxDD => {C}/out/linux.amd64/release/bin/VBoxDD.so
kmk_builtin_install --hard-link-files-when-possible    -- /var/tmp/portage/app-emulation/virtualbox-4.3.10-r1/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/VBoxDD/VBoxDD.so /var/tmp/portage/app-emulation/virtualbox-4.3.10-r1/work/VirtualBox-4.3.10/out/linux.amd64/release/bin/VBoxDD.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64/libgsoapssl++.a(libgsoapssl___a-stdsoap2_ssl_cpp.o): undefined reference to symbol 'gnutls_x509_crt_get_expiration_time@@GNUTLS_1_4'
/usr/lib64/libgnutls.so.28: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
kmk: *** [/var/tmp/portage/app-emulation/virtualbox-4.3.10-r1/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/vboxwebsrv/vboxwebsrv] Error 1
kmk: *** Waiting for unfinished jobs....



As you can see the error message is a different. The difference could be because of MAKEOPTS="-j3"
But later at "Waiting for unfinished jobs...." I see the old message again.
And a lot of other gnutls related "undefined references".

/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64/libgsoapssl++.a(libgsoapssl___a-stdsoap2_ssl_cpp.o): In function `soap_ssl_init.part.17':
(.text+0x14db): undefined reference to `gcry_control'
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2017-03-11 20:23:49 UTC
These versions are no longer in tree, please reopen if you experience issues with recent ones.