Build fails if openssl is installed from ports: kmk[1]: Entering directory `/usr/home/wash/VBOX/virtualbox/work/virtualbox-2.2.51r20457' kmk[2]: Entering directory `/usr/home/wash/VBOX/virtualbox/work/virtualbox-2.2.51r20457' kBuild: Linking tstAPI /usr/local/lib/libssl.so.5: undefined reference to `d2i_X509_EXTENSIONS' /usr/local/lib/libssl.so.5: undefined reference to `ENGINE_get_ssl_client_cert_function' /usr/local/lib/libssl.so.5: undefined reference to `HMAC_CTX_set_flags' /usr/local/lib/libssl.so.5: undefined reference to `i2d_X509_EXTENSIONS' /usr/local/lib/libssl.so.5: undefined reference to `ENGINE_load_ssl_client_cert' /usr/local/lib/libssl.so.5: undefined reference to `EVP_idea_cbc' kmk[2]: *** [/usr/home/wash/VBOX/virtualbox/work/virtualbox-2.2.51r20457/out/freebsd.x86/release/obj/tstAPI/tstAPI] Error 1 The failing command: @g++ '-Wl,-rpath,/usr/local/lib/virtualbox' -m32 -o /usr/home/wash/VBOX/virtualbox/work/virtualbox-2.2.51r20457/out/freebsd.x86/release/obj/tstAPI/tstAPI /usr/home/wash/VBOX/virtualbox/work/virtualbox-2.2.51r20457/out/freebsd.x86/release/obj/tstAPI/tstAPI.o -L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib /usr/home/wash/VBOX/virtualbox/work/virtualbox-2.2.51r20457/out/freebsd.x86/release/bin/VBoxRT.so /usr/home/wash/VBOX/virtualbox/work/virtualbox-2.2.51r20457/out/freebsd.x86/release/lib/VBoxCOM.a /usr/home/wash/VBOX/virtualbox/work/virtualbox-2.2.51r20457/out/freebsd.x86/release/bin/VBoxXPCOM.so kmk[2]: Leaving directory `/usr/home/wash/VBOX/virtualbox/work/virtualbox-2.2.51r20457' kmk[1]: *** [pass_binaries_this] Error 2 kmk[1]: Leaving directory `/usr/home/wash/VBOX/virtualbox/work/virtualbox-2.2.51r20457' kmk: *** [pass_binaries_order] Error 2 *** Error code 2
State Changed From-To: open->closed follow the instruction from pkg-messages.
State Changed From-To: closed->open Submitter provided a patch for this problem.
Responsible Changed From-To: freebsd-ports-bugs->beat I'll take it.
Hi, You still use 2.2.51r20457 which is obsolete. Could you please try it with the latest virtualbox version from ports. With this one I was not able to reproduce the problem. If you are still not able to build the latest version of virtualbox please provide this information: # uname -a # pkg_info -Ix virtualbox # pkg_info -Ix openssl # cd /usr/ports/security/openssl && make showconfig # cd /usr/ports/emulators/virtualbox && make showconfig # cat /etc/make.conf Thanks, Beat
# uname -a FreeBSD mad-nb 8.0-RC1 FreeBSD 8.0-RC1 #4: Fri Sep 25 10:42:00 EEST 2009 root@mad-fs:/usr/obj/usr/src/sys/MAD-FS i386 [root@mad-nb /]# pkg_info -Ix virtualbox virtualbox-3.0.51.r22902_1 A general-purpose full virtualizer for x86 hardware [root@mad-nb /]# pkg_info -Ix openssl linux-f10-openssl-0.9.8g The OpenSSL toolkit (Linux Fedora 10) openssl-0.9.8k_5 SSL and crypto library # cd /usr/ports/security/openssl && make showconfig ===> The following configuration options are available for openssl-0.9.8k_5: I386=off "Use optimzed assembler for 80386" SSE2=on "Use runtime SSE2 detection" ZLIB=on "Build with zlib compression" SCTP=off "Build with SCTP support" ===> Use 'make config' to modify these settings # cd /usr/ports/emulators/virtualbox && make showconfig ===> The following configuration options are available for virtualbox-3.0.51.r22902_1: QT4=on "Build with QT4 Frontend" DEBUG=off "Build with debugging symbols" GUESTADDITIONS=on "Build with Guest Additions" DBUS=on "Build with D-Bus and HAL support" PULSEAUDIO=off "Build with PulseAudio" X11=on "Build with X11 support" NLS=on "Native language support" ===> Use 'make config' to modify these settings # cat /etc/make.conf NO_DOCUPDATE= yes NO_PORTSUPDATE= yes SUPFILE= /etc/cvsupfile SUPHOST= cvsup2.freebsd.org SUP_UPDATE= yes DOC_LANG= en_US.ISO8859-1 ru_RU.KOI8-R KERNCONF= MAD-FS GENERIC CPUTYPE?= core WITH_BDB_VER= 47 #BATCH= yes # added by use.perl 2009-09-14 18:13:29 PERL_VERSION=5.8.9
that what we have when a trying to build virtualbox on that machine (from previous message) without patch kBuild: Compiling VBoxDD2R0 - /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Devices/PC/DevAPIC.cpp echo > /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/opt_netgraph.h kBuild: Compiling vboxnetflt - /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c kBuild: Compiling VBoxNetAdp - /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c kBuild: Compiling VBoxNetAdp - /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/HostDrivers/VBoxNetAdp/VBoxNetAdp.c /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/HostDrivers/VBoxNetAdp/VBoxNetAdp.c:1138: warning: no previous prototype for 'vboxNetAdpComposeMACAddress' kBuild: awk FreeBSDGeneratedKernelHeaders - /sys/dev/pci/pci_if.m kBuild: Compiling vboxdrv - /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c kBuild: Compiling vboxdrv - /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/HostDrivers/Support/SUPDrv.c /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/HostDrivers/Support/SUPDrv.c: In function 'supdrvIOCtl': /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/HostDrivers/Support/SUPDrv.c:1427: warning: format '%#lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/HostDrivers/Support/SUPDrv.c:1610: warning: format '%#lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' kBuild: Linking tstAPI /usr/local/lib/libssl.so.6: undefined reference to `EVP_idea_cbc' kmk[2]: *** [/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/tstAPI/tstAPI] Error 1 The failing command: @c++ '-Wl,-rpath,/usr/local/lib/virtualbox' -m32 -o /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/tstAPI/tstAPI /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/tstAPI/tstAPI.o -L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/bin/VBoxRT.so /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/lib/VBoxCOM.a /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/bin/VBoxXPCOM.so kmk[2]: *** Waiting for unfinished jobs.... kmk[2]: Leaving directory `/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902' kmk[2]: Entering directory `/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902' kmk[2]: *** Exiting with status 2 kmk[1]: *** [pass_binaries_this] Error 2 kmk[1]: Leaving directory `/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902' kmk: *** [pass_binaries_order] Error 2 *** Error code 2 Stop in /usr/ports/emulators/virtualbox. *** Error code 1 Stop in /usr/ports/emulators/virtualbox.
Hi, I'm still not able to reproduce this problem on 8.0-RC1/i386 with openssl-0.9.8k_5 and virtualbox-3.0.51r22902_2. Could you please send me the compile log including the error you get when building virtualbox-3.0.51.r22902_1 with openssl-0.9.8k_5. Thanks, Beat
Y. A. wrote: > that what we have when a trying to build virtualbox on that machine (from > previous message) without patch [...] > /usr/local/lib/libssl.so.6: undefined reference to `EVP_idea_cbc' > kmk[2]: *** > [/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/tstAPI/tstAPI] > Error 1 > The failing command: > @c++ '-Wl,-rpath,/usr/local/lib/virtualbox' -m32 -o > /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/tstAPI/tstAPI > /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/tstAPI/tstAPI.o > -L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib > /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/bin/VBoxRT.so > /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/lib/VBoxCOM.a > /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/bin/VBoxXPCOM.so > kmk[2]: *** Waiting for unfinished jobs.... > kmk[2]: Leaving directory > `/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902' > kmk[2]: Entering directory > `/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902' > kmk[2]: *** Exiting with status 2 > kmk[1]: *** [pass_binaries_this] Error 2 > kmk[1]: Leaving directory > `/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902' > kmk: *** [pass_binaries_order] Error 2 > *** Error code 2 > > Stop in /usr/ports/emulators/virtualbox. > *** Error code 1 > > Stop in /usr/ports/emulators/virtualbox. I see. Could you please also send me the output of: # cat /etc/src.conf Thanks Beat
# cat /etc/src.conf cat: /etc/src.conf: No such file or directory 2009/10/8 Beat Gaetzi <beat@freebsd.org> > > I see. Could you please also send me the output of: > # cat /etc/src.conf > > Thanks Beat
beat 2009-10-23 14:29:50 UTC FreeBSD ports repository Modified files: emulators/virtualbox Makefile emulators/virtualbox/files patch-configure Log: - Fix build if OpenSSL is installed from ports. [1] - Some options require other ones. Add check for them. [2] PR: ports/139391 [1] Submitted by: "Y.A." <nexther0 AT gmail.com> [1] Tested by: Yuri Gorchakov <yuri.gorchakov AT point-group.ru> [1] Reported by: Maxim <maksims.k AT gmail.com> [2] On behalf of: vbox@ (decke, dhn, itetcu, miwi, nox) Revision Changes Path 1.11 +8 -1 ports/emulators/virtualbox/Makefile 1.2 +9 -0 ports/emulators/virtualbox/files/patch-configure _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!