pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/37101: x11/xdm fails to build without ipv6



>Number:         37101
>Category:       pkg
>Synopsis:       x11/xdm fails to build without ipv6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 10 15:35:00 +0000 2007
>Originator:     Yakovetsky Vladimir
>Release:        NetBSD 4.99.31
>Organization:
>Environment:
System: NetBSD lrou.x.ua 4.99.31 NetBSD 4.99.31 (lrou_odd-1.852) #0: Sun Sep 30 
18:16:16 EEST 2007 yx%lrou.x.ua@localhost:/sys/arch/i386/compile/lrou_odd i386
Architecture: i386
Machine: i386

>Description:
        x11/xdm fails to build without ipv6

>How-To-Repeat:
% grep -i inet6 /etc/mk.conf
MKINET6=                no
PKG_DEFAULT_OPTIONS+=   -inet6

% grep X11 /etc/mk.conf
X11_TYPE=               modular

% cd /usr/pkgsrc/x11/xdm && make update
...
checking if IPv6 support should be built... yes
...

cc -O2 -mfpmath=sse -msse2 -march=pentium4 -finline-functions 
-fomit-frame-pointer -ffast-math -fno-strict-aliasing 
-I/usr/obj/x11/xdm/work/.buildlink/include 
-I/usr/obj/x11/xdm/work/.buildlink/include/freetype2 -Wl,-R/usr/pkg/lib -o xdm 
xdm-auth.o xdm-daemon.o xdm-server.o xdm-dpylist.o xdm-dm.o xdm-error.o 
xdm-file.o xdm-netaddr.o xdm-reset.o xdm-resource.o xdm-protodpy.o xdm-policy.o 
xdm-session.o xdm-socket.o xdm-streams.o xdm-util.o xdm-xdmcp.o xdm-mitauth.o 
xdm-genauth.o xdm-access.o xdm-choose.o xdm-xdmauth.o -rdynamic  
-L/usr/obj/x11/xdm/work/.buildlink/lib 
/usr/obj/x11/xdm/work/.buildlink/lib/libXmu.so 
/usr/obj/x11/xdm/work/.buildlink/lib/libXt.so 
/usr/obj/x11/xdm/work/.buildlink/lib/libSM.so 
/usr/obj/x11/xdm/work/.buildlink/lib/libICE.so -lutil 
/usr/obj/x11/xdm/work/.buildlink/lib/libXinerama.so 
/usr/obj/x11/xdm/work/.buildlink/lib/libXext.so 
/usr/obj/x11/xdm/work/.buildlink/lib/libXpm.so 
/usr/obj/x11/xdm/work/.buildlink/lib/libX11.so /usr/obj/x11/xdm/work/.buildli!
 nk/lib/libXau.so /usr/obj/x11/xdm/work/.buildlink/lib/libXdmcp.so -lcrypt 
-lpam   -Wl,--rpath -Wl,/usr/obj/x11/xdm/work/.buildlink/lib -Wl,--rpath 
-Wl,/usr/obj/x11/xdm/work/.buildlink/lib
xdm-socket.o: In function `UpdateListener':
socket.c:(.text+0x5cd): undefined reference to `in6addr_any'
socket.c:(.text+0x5d6): undefined reference to `in6addr_any'
socket.c:(.text+0x5df): undefined reference to `in6addr_any'
socket.c:(.text+0x5e8): undefined reference to `in6addr_any'
*** Error code 1

Stop.


>Fix:
:r x11/xdm/options.mk

PKG_OPTIONS_VAR=        PKG_OPTIONS.xdm
PKG_SUPPORTED_OPTIONS+= inet6

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=        --enable-ipv6
.else
CONFIGURE_ARGS+=        --disable-ipv6
.endif

--- x11/xdm/Makefile.orig
+++ x11/xdm/Makefile
@@ -35,6 +35,8 @@
 CONFIGURE_ARGS+=       --with-random-device=/dev/urandom
 .endif
 
+.include "options.mk"
+
 .include "../../x11/libXaw/buildlink3.mk"
 .include "../../x11/libXft/buildlink3.mk"
 .include "../../x11/libXmu/buildlink3.mk"




Home | Main Index | Thread Index | Old Index