pkgsrc-Bugs archive

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

pkg/37154: x11/kdebase3 fails to build without ipv6



>Number:         37154
>Category:       pkg
>Synopsis:       x11/kdebase3 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:   Fri Oct 19 09:55:01 +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/kdebase3 fails to build without ipv6

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

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

% cd /usr/pkgsrc/x11/kdebase3 && make
...
/bin/sh ../../libtool --silent --tag=CC --mode=link cc  -DNDEBUG -O2  -O2 
-mfpmath=sse -msse2 -march=pentium4 -finline-functions -fomit-frame-pointer 
-ffast-math -I/usr/pkg/include -I/usr/include -DLDAP_DEPRECATED 
-I/usr/pkg/qt3/include -DGLX_GLXEXT_LEGACY -I/usr/pkg/include/freetype2 
-I/usr/include/krb5 -D_GNU_SOURCE  -L/usr/pkg/qt3/lib -L/usr/pkg/lib 
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/qt3/lib 
-L/usr/pkg/lib    -o kdm  access.o auth.o bootman.o choose.o client.o ctrl.o 
daemon.o dm.o dpylist.o error.o genauth.o inifile.o krb5auth.o mitauth.o 
netaddr.o policy.o process.o protodpy.o reset.o resource.o rpcauth.o server.o 
session.o sessreg.o socket.o streams.o util.o xdmauth.o xdmcp.o -lX11  -lXau 
-lXdmcp -lcrypt       -lresolv  -lutil  -Wl,-E
socket.o: In function `UpdateListener':
socket.c:(.text+0x756): undefined reference to `in6addr_any'
socket.c:(.text+0x75f): undefined reference to `in6addr_any'
socket.c:(.text+0x768): undefined reference to `in6addr_any'
socket.c:(.text+0x771): undefined reference to `in6addr_any'
gmake[3]: *** [kdm] Error 1
gmake[3]: Leaving directory 
`/usr/obj/x11/kdebase3/work/kdebase-3.5.7/kdm/backend'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/obj/x11/kdebase3/work/kdebase-3.5.7/kdm'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/obj/x11/kdebase3/work/kdebase-3.5.7'
gmake: *** [all] Error 2
*** Error code 2

Stop.


>Fix:
:r x11/kdebase3/hacks.mk

.if !defined(KDEBASE3_HACKS_MK)
KDEBASE3_SERVER_HACKS_MK=

### issue is specific to xproto IPv6 support
.if empty(PKG_OPTIONS:Minet6)
PKG_HACKS+=     X11_X_h
post-wrapper:
        ${SED} 's,^#define FamilyInternet6.*,/* undef FamilyInternet6 */,' \
                ${BUILDLINK_DIR}/include/X11/X.h 
>${BUILDLINK_DIR}/include/X11/X.h.new
        ${MV} ${BUILDLINK_DIR}/include/X11/X.h.new 
${BUILDLINK_DIR}/include/X11/X.h
.endif

.endif

--- x11/kdebase3/options.mk.orig
+++ x11/kdebase3/options.mk
@@ -2,6 +2,7 @@
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.kdebase
 PKG_SUPPORTED_OPTIONS= sasl samba debug pam
+PKG_SUPPORTED_OPTIONS+=        inet6
 PKG_SUGGESTED_OPTIONS= sasl
 
 .include "../../mk/bsd.options.mk"




Home | Main Index | Thread Index | Old Index