From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 7 14:20:04 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85B571065769 for ; Wed, 7 Apr 2010 14:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 496778FC0C for ; Wed, 7 Apr 2010 14:20:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o37EK4gZ071701 for ; Wed, 7 Apr 2010 14:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o37EK48k071700; Wed, 7 Apr 2010 14:20:04 GMT (envelope-from gnats) Resent-Date: Wed, 7 Apr 2010 14:20:04 GMT Resent-Message-Id: <201004071420.o37EK48k071700@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stacy Millions Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 392AC10656C1 for ; Wed, 7 Apr 2010 14:18:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 291C18FC1D for ; Wed, 7 Apr 2010 14:18:52 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o37EIpjR065198 for ; Wed, 7 Apr 2010 14:18:51 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o37EIpxL065195; Wed, 7 Apr 2010 14:18:51 GMT (envelope-from nobody) Message-Id: <201004071418.o37EIpxL065195@www.freebsd.org> Date: Wed, 7 Apr 2010 14:18:51 GMT From: Stacy Millions To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/145457: VBoxManage doesn't work X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2010 14:20:04 -0000 >Number: 145457 >Category: ports >Synopsis: VBoxManage doesn't work >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 07 14:20:03 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Stacy Millions >Release: 8.0-Release-p2 >Organization: >Environment: FreeBSD ent.millions.ca 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan 5 16:02:27 UTC 2010 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: virtualbox-ose-3.1.6_1 There is a conflict between the bundled version of libpng (libpng-1.2.8) and the current version in ports (png-1.4.1_1). VBoxManage exits with the following error (if you built the debug version) Executable: /usr/local/lib/virtualbox/VBoxSVC pr_LoadLibraryByPathname(): Failed to load '/usr/local/lib/virtualbox/components/VBoxC.so' nsNativeComponentLoader: GetFactory(VBoxC.so) Load FAILED with error: /usr/local/lib/virtualbox/components/VBoxC.so: Undefined symbol "png_set_longjmp_fn" ERROR: failed to create a session object! ERROR: code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not registered (extended info not available) ERROR: code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not registered (extended info not available) Most likely, the VirtualBox COM server is not running or failed to start. >How-To-Repeat: Highly repeatable; just install the port and run VBoxManage. >Fix: The attached patch for the port's files/patch-configure will cause the port to be built without the bundled libpng. Patch attached with submission follows: --- patch-configure.orig 2010-04-06 13:29:53.000000000 -0600 +++ patch-configure 2010-04-06 11:42:38.000000000 -0600 @@ -1,5 +1,5 @@ ---- configure.orig 2010-01-28 16:34:50.000000000 +0100 -+++ configure 2010-01-28 22:16:50.000000000 +0100 +--- configure.orig 2010-04-06 11:41:21.000000000 -0600 ++++ configure 2010-04-06 11:41:37.000000000 -0600 @@ -107,7 +107,7 @@ GENISOIMAGE="genisoimage" MKISOFS="mkisofs" @@ -9,16 +9,18 @@ LIBPTHREAD="-lpthread" LIBCAP="-lcap" GSOAP="" -@@ -125,6 +125,8 @@ +@@ -125,6 +125,10 @@ if [ "$OS" = "freebsd" ]; then INCCURL="-I/usr/local/include" LIBCURL="-L/usr/local/lib -lcurl" + INCPULSE="-I/usr/local/include" + LIBPULSE="-L/usr/local/lib" ++ INCPNG="-I/usr/local/include" ++ LIBPNG="-L/usr/local/lib -lpng" else INCCURL="" LIBCURL="-lcurl" -@@ -1181,7 +1183,7 @@ +@@ -1181,7 +1185,7 @@ #endif } EOF @@ -27,7 +29,25 @@ test_execute fi } -@@ -1773,7 +1775,7 @@ +@@ -1630,7 +1634,7 @@ + fi + echo "export PATH" >> $ENV + echo "unset path_kbuild_bin path_dev_bin" >> $ENV +- KBUILD_SED="$KBUILDDIR_BIN/kmk_sed" ++ KBUILD_SED="/usr/local/bin/kmk_sed" + elif [ "$OS.$BUILD_MACHINE" = "darwin.amd64" ]; then + # Currently there are no amd64 kBuild bins. So use the x86 variant in any case. + KBUILDDIR_BIN="$KBUILDDIR/bin/$OS.x86" +@@ -1643,7 +1647,7 @@ + echo "echo \"\$PATH\" | grep -q \"\$path_dev_bin\" || PATH=\"\$path_dev_bin:\$PATH\"" >> $ENV + echo "export PATH" >> $ENV + echo "unset path_kbuild_bin path_dev_bin" >> $ENV +- KBUILD_SED="$KBUILDDIR_BIN/kmk_sed" ++ KBUILD_SED="/usr/local/bin/kmk_sed" + elif check_avail "kmk" KBUILDDIR really; then + # check for installed kBuild + KBUILD_SED="`which_wrapper kmk_sed`" +@@ -1773,7 +1777,7 @@ cat $ODIR.tmp_src.cc >> $LOG echo "using the following command line:" >> $LOG echo "$CXX -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc -I$p/include/$d $p/$b/lib$d.so" >> $LOG @@ -36,7 +56,16 @@ if [ $? -eq 0 ]; then found=1 break -@@ -2318,6 +2320,15 @@ +@@ -2306,7 +2310,7 @@ + check_ssl + check_curl + [ "$OS" != "darwin" ] && check_z +-[ "$OS" != "darwin" -a "$OS" != "freebsd" ] && check_png ++[ "$OS" != "darwin" ] && check_png + [ $OSE -eq 0 -a "$OS" = "linux" ] && check_pam + [ $WITH_SDL -eq 1 ] && check_sdl + [ $WITH_SDL_TTF -eq 1 -a $OSE -eq 0 ] && check_sdl_ttf +@@ -2318,6 +2322,15 @@ [ $WITH_QT4 -eq 1 ] && check_qt4 [ $WITH_PYTHON -eq 1 ] && check_python @@ -52,7 +81,7 @@ # Linux-specific if [ "$OS" = "linux" ]; then # don't check for the static libstdc++ in the PUEL version as we build the -@@ -2335,11 +2346,6 @@ +@@ -2335,11 +2348,6 @@ else cnf_append "VBOX_WITH_ALSA" "" fi >Release-Note: >Audit-Trail: >Unformatted: