NetBSD-Bugs archive

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

xsrc/51494: X fails to build with MKINET6=no



>Number:         51494
>Category:       xsrc
>Synopsis:       X fails to build with MKINET6=no
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 21 16:55:00 +0000 2016
>Originator:     scole_mail
>Release:        7.0.1
>Organization:
none
>Environment:
NetBSD dstar 7.0.1_PATCH NetBSD 7.0.1_PATCH (GENERIC) #0: Mon Sep  5 13:24:11 PDT 2016  scole@dstar:/home/scole/nbsd/cvs/7_0/obj/sys/arch/i386/compile/GENERIC i386
>Description:
I was trying to build a distribution with x11 and MKINET6=no for stable 7.0.1

dependall ===> external/mit/xorg/bin/xfontsel
dependall ===> external/mit/xorg/bin/xfs
#    create  xfs/fsconfig
rm -f fsconfig
/home/scole/nbsd/cvs/7_0/src/../tools/bin/i486--netbsdelf-gcc -E -undef -traditional -  -DDEFAULTFONTPATH=/usr/X11R7/lib/X11/fonts/misc/,/usr/X11R7/lib/X11/fonts/Type1/,/usr/X11R7/lib/X11/fonts/75dpi/,/usr/X11R7/lib/X11/fonts/100dpi/  -DFSERRORS=/var/log/xfs.log -D__appmansuffix__=1  < fsconfig.cpp | /home/scole/nbsd/cvs/7_0/src/../tools/bin/nbsed   -e '/^#  *[0-9][0-9]*  *.*$/d'  -e '/^#line  *[0-9][0-9]*  *.*$/d'  -e '/^[     ]*XCOMM$/s/XCOMM/#/'  -e '/^[   ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/'  -e '/^[       ]*XHASH/s/XHASH/#/'  -e '/\@\@$/s/\@\@$/\\/' > fsconfig
<stdin>:1:0: error: invalid preprocessing directive #X
<stdin>:2:0: error: invalid preprocessing directive #See
<stdin>:8:0: error: invalid preprocessing directive #in
#      link  xfs/xfs
/home/scole/nbsd/cvs/7_0/src/../tools/bin/i486--netbsdelf-gcc    --sysroot=/home/scole/nbsd/cvs/7_0/src/../obj/destdir.i386 -Wl,-rpath,/usr/X11R7/lib -L=/usr/X11R7/lib     -o xfs  atom.o charinfo.o difsutils.o dispatch.o events.o extensions.o fontinfo.o fonts.o globals.o initfonts.o main.o resource.o swaprep.o swapreq.o tables.o access.o config.o connection.o daemon.o error.o io.o osglue.o osinit.o utils.o waitfor.o xfstrans.o  -Wl,-rpath-link,/home/scole/nbsd/cvs/7_0/src/../obj/destdir.i386/lib  -L=/lib -lXfont -lfontenc -lXfontcache -lXext -lX11 -lfreetype -lm -lz    
xfstrans.o: In function `_FontTransSocketINETCreateListener':
xfstrans.c:(.text+0xa34): undefined reference to `in6addr_any'
xfstrans.c:(.text+0xa3d): undefined reference to `in6addr_any'
xfstrans.c:(.text+0xa46): undefined reference to `in6addr_any'
xfstrans.c:(.text+0xa4f): undefined reference to `in6addr_any'
collect2: error: ld returned 1 exit status

*** Failed target:  xfs
*** Failed command: /home/scole/nbsd/cvs/7_0/src/../tools/bin/i486--netbsdelf-gcc --sysroot=/home/scole/nbsd/cvs/7_0/src/../obj/destdir.i386 -Wl,-rpath,/usr/X11R7/lib -L=/usr/X11R7/lib -o xfs atom.o charinfo.o difsutils.o dispatch.o events.o extensions.o fontinfo.o fonts.o globals.o initfonts.o main.o resource.o swaprep.o swapreq.o tables.o access.o config.o connection.o daemon.o error.o io.o osglue.o osinit.o utils.o waitfor.o xfstrans.o -Wl,-rpath-link,/home/scole/nbsd/cvs/7_0/src/../obj/destdir.i386/lib -L=/lib -lXfont -lfontenc -lXfontcache -lXext -lX11 -lfreetype -lm -lz 
*** Error code 1

Stop.
nbmake[9]: stopped in /home/scole/nbsd/cvs/7_0/src/external/mit/xorg/bin/xfs



Seems to be caused by xsrc/external/mit/xtrans/dist/Xtranssock.c around line 1044

	((struct sockaddr_in6 *)&sockname)->sin6_addr = in6addr_any;

with IPv6 or AF_INET6 not getting #undefine'd correctly.
>How-To-Repeat:
./build.sh -x 
 with mk.conf having 
MKINET6=no
>Fix:



Home | Main Index | Thread Index | Old Index