Subject: pkg/36775: net/vino: fails to build without ipv6 infrastructure
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Yakovetsky Vladimir <yx@x.ua>
List: pkgsrc-bugs
Date: 08/13/2007 08:00:00
>Number: 36775
>Category: pkg
>Synopsis: net/vino fails to build without ipv6 infrastructure
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 13 08:00:00 +0000 2007
>Originator: Yakovetsky Vladimir
>Release: NetBSD 4.99.27
>Environment:
System: NetBSD lrou.x.ua 4.99.27 NetBSD 4.99.27 (lrou_odd-1.840) #0: Wed Aug 8 16:16:50 EEST 2007 yx@lrou.x.ua:/sys/arch/i386/compile/lrou_odd i386
Architecture: i386
Machine: i386
>Description:
net/vino fails to build without ipv6 infrastructure
>How-To-Repeat:
% grep -i inet6 /etc/mk.conf
MKINET6= no
PKG_DEFAULT_OPTIONS+= -inet6
% nm -o --defined-only /usr/lib/*.so* | grep in6addr || echo 'not found'
not found
% cd /usr/pkgsrc/net/vino
% make -V USE_INET6
NO
% make
...
cc -O2 -march=pentium4 -mfpmath=sse -msse -finline-functions -fomit-frame-pointer -ffast-math -I/usr/obj/net/vino/work/.buildlink/include -I/usr/obj/net/vino/work/.buildlink/include/freetype2 -Wl,-R/usr/pkg/lib -o vino-server vino-cursor.o vino-enums.o vino-fb.o vino-input.o vino-main.o vino-marshal.o vino-mdns.o vino-prefs.o vino-prompt.o vino-server.o vino-shell.o vino-util.o vino-status-icon.o vino-dbus-listener.o GNOME_RemoteDesktop-skels.o GNOME_RemoteDesktop-common.o -Wl,--rpath -Wl,/usr/pkg/lib -pthread -Wl,--export-dynamic -L/usr/obj/net/vino/work/.buildlink/lib /usr/obj/net/vino/work/.buildlink/lib/libglade-2.0.so /usr/obj/net/vino/work/.buildlink/lib/libgnomeui-2.so /usr/obj/net/vino/work/.buildlink/lib/libbonoboui-2.so /usr/obj/net/vino/work/.buildlink/lib/libgnome-keyring.so /usr/obj/net/vino/work/.buildlink/lib/libgnomecanvas-2.so /usr/obj/net/vino/work/.buildlink/lib/libgnome-2.so /usr/obj/net/vino/work/.buildlink/lib/libgnomevfs-2.so /usr/obj/net/vino/work/.b!
uildlink/lib/libxml2.so -lutil -lrt /usr/obj/net/vino/work/.buildlink/lib/libesd.so -lossaudio /usr/obj/net/vino/work/.buildlink/lib/libaudiofile.so /usr/obj/net/vino/work/.buildlink/lib/libpopt.so /usr/obj/net/vino/work/.buildlink/lib/libart_lgpl_2.so /usr/obj/net/vino/work/.buildlink/lib/libgtk-x11-2.0.so /usr/obj/net/vino/work/.buildlink/lib/libgdk-x11-2.0.so /usr/obj/net/vino/work/.buildlink/lib/libatk-1.0.so /usr/obj/net/vino/work/.buildlink/lib/libgdk_pixbuf-2.0.so /usr/obj/net/vino/work/.buildlink/lib/libpangocairo-1.0.so /usr/obj/net/vino/work/.buildlink/lib/libXinerama.so /usr/obj/net/vino/work/.buildlink/lib/libXi.so /usr/obj/net/vino/work/.buildlink/lib/libXrandr.so /usr/obj/net/vino/work/.buildlink/lib/libXcursor.so /usr/obj/net/vino/work/.buildlink/lib/libXfixes.so /usr/obj/net/vino/work/.buildlink/lib/libcairo.so /usr/obj/net/vino/work/.buildlink/lib/libglitz.so /usr/obj/net/vino/work/.buildlink/lib/libpng12.so /usr/obj/net/vino/work/.buildlink/lib/libXrender.!
so /usr/obj/net/vino/work/.buildlink/lib/libpangoft2-1.0.so /u!
sr/obj/n
et/vino/work/.buildlink/lib/libfontconfig.so /usr/obj/net/vino/work/.buildlink/lib/libexpat.so /usr/obj/net/vino/work/.buildlink/lib/libfreetype.so /usr/obj/net/vino/work/.buildlink/lib/libpango-1.0.so -lm /usr/obj/net/vino/work/.buildlink/lib/libbonobo-2.so /usr/obj/net/vino/work/.buildlink/lib/libbonobo-activation.so /usr/obj/net/vino/work/.buildlink/lib/libORBitCosNaming-2.so /usr/obj/net/vino/work/.buildlink/lib/libgconf-2.so /usr/obj/net/vino/work/.buildlink/lib/libORBit-2.so /usr/obj/net/vino/work/.buildlink/lib/libgmodule-2.0.so /usr/obj/net/vino/work/.buildlink/lib/libgthread-2.0.so /usr/obj/net/vino/work/.buildlink/lib/libdbus-glib-1.so /usr/obj/net/vino/work/.buildlink/lib/libdbus-1.so -lpthread /usr/obj/net/vino/work/.buildlink/lib/libgobject-2.0.so /usr/obj/net/vino/work/.buildlink/lib/libglib-2.0.so /usr/obj/net/vino/work/.buildlink/lib/libSM.so /usr/obj/net/vino/work/.buildlink/lib/libICE.so /usr/obj/net/vino/work/.buildlink/lib/libXext.so /usr/obj/net/vino/wor!
k/.buildlink/lib/libX11.so /usr/obj/net/vino/work/.buildlink/lib/libXdmcp.so /usr/obj/net/vino/work/.buildlink/lib/libXau.so ../server/libvncserver/.libs/libvncserver.a /usr/obj/net/vino/work/.buildlink/lib/libgnutls.so /usr/obj/net/vino/work/.buildlink/lib/libtasn1.so /usr/obj/net/vino/work/.buildlink/lib/libgcrypt.so /usr/obj/net/vino/work/.buildlink/lib/libgpg-error.so -lintl /usr/obj/net/vino/work/.buildlink/lib/libjpeg.so -lz -Wl,--rpath -Wl,/usr/obj/net/vino/work/.buildlink/lib -Wl,--rpath -Wl,/usr/obj/net/vino/work/.buildlink/lib
../server/libvncserver/.libs/libvncserver.a(sockets.o): In function `ListenOnTCPPort':
sockets.c:(.text+0x743): undefined reference to `in6addr_loopback'
gmake[4]: *** [vino-server] Error 1
gmake[4]: Leaving directory `/usr/obj/net/vino/work/vino-2.18.1/server'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/obj/net/vino/work/vino-2.18.1/server'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/obj/net/vino/work/vino-2.18.1/server'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/obj/net/vino/work/vino-2.18.1'
gmake: *** [all] Error 2
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/net/vino
*** Error code 1
>Fix:
--- net/vino/Makefile.orig
+++ net/vino/Makefile
@@ -20,6 +20,11 @@
BUILDLINK_DEPMETHOD.libXt?= build
+.include "../../mk/bsd.fast.prefs.mk"
+.if !empty(USE_INET6:M[nN][oO])
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
.include "../../devel/GConf2/schemas.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/libbonobo/buildlink3.mk"