Subject: pkg/32576: x11/xorg-server fails to build under amd64/current
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <martijnb@atlas.ipv6.stack.nl>
List: pkgsrc-bugs
Date: 01/19/2006 21:20:01
>Number:         32576
>Category:       pkg
>Synopsis:       x11/xorg-server fails to build under amd64/current
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 19 21:20:01 +0000 2006
>Originator:     martijnb@atlas.ipv6.stack.nl
>Release:        NetBSD 3.99.15
>Organization:
	
>Environment:
	
	
System: NetBSD atlas.ipv6.stack.nl 3.99.15 NetBSD 3.99.15 (ATLAS) #0: Thu Jan 19 07:19:29 CET 2006 root@atlas.ipv6.stack.nl:/usr/obj/sys/arch/amd64/compile/ATLAS amd64
Architecture: x86_64
Machine: amd64
>Description:
    [ I apologise if this yields a duplicate PR; my first attempt got lost
      somewhere, probably because of a triggerhappy spamfilter and me not
      using a smarthost ]

    x11/xorg-server fails to build. I suspect an Imake issue.

    Abbrivated (and annotated) build.log; full log available upon request.

===> Creating toolchain wrappers for xorg-server-6.9.0
===> Configuring for xorg-server-6.9.0
In file included from /usr/pkgobjdir/x11/xorg-server/work/xc/config/cf/Imake.tmpl:2197,
                 from Imakefile.c:16:
Imakefile:45: warning: "UnsharedLibObjCompile" redefined
In file included from /usr/pkgobjdir/x11/xorg-server/work/xc/config/cf/Imake.tmpl:316,
                 from Imakefile.c:16:
/usr/pkgobjdir/x11/xorg-server/work/xc/config/cf/Imake.rules:2312: warning: this is the location of the previous definition
making Makefiles in include/bitmaps...
making Makefiles in include/extensions...
making Makefiles in include/fonts...
making Makefiles in include/GL...
[..build continues, some suspicious warnings like : ...]

cc -O2 -ansi -Dasm=__asm -Wall -Wpointer-arith -Wstrict-prototypes 			  -Wmissing-prototypes -Wmissing-declarations 			  -Wredundant-decls -Wnested-externs -Wundef  -fPIC  -I/usr/pkgobjdir/x11/xorg-server/work/xc/include/fonts -I../../include -I/usr/pkgobjdir/x11/xorg-server/work/xc/programs/Xserver/include 		   -I/usr/pkgobjdir/x11/xorg-server/work/xc/exports/include/X11 -I../  -I/usr/pkgobjdir/x11/xorg-server/work/xc -I/usr/pkgobjdir/x11/xorg-server/work/xc/exports/include  -I/usr/pkgobjdir/x11/xorg-server/work/.buildlink/include -DCSRG_BASED -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP 	-DXCSECURITY -DTOGCUP  	-DXF86BIGFONT -DDPMSExtension 	-DXPRINT -DPIXPRIV -DPANORAMIX 	 -DRENDER -DRANDR 	-DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE 	 -DGCCUSESGAS -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module -DFONTMODULE -DBDFFORMAT -DSNFFORMAT -DPCFFORMAT   -c bdfread.c
bdfread.c: In function `bdfReadBitmap':
bdfread.c:124: warning: implicit declaration of function `strncmp'
bdfread.c:124: warning: implicit declaration of function `strlen'
bdfread.c: In function `bdfReadCharacters':
bdfread.c:277: warning: implicit declaration of function `bzero'
bdfread.c: In function `bdfReadHeader':
bdfread.c:546: warning: implicit declaration of function `strcmp'
bdfread.c: In function `bdfReadProperties':
bdfread.c:654: warning: implicit declaration of function `atoi'
rm -f bdfutils.o
[...Until it breaks the first time, due to a similiar issue: ]
rm -f bitscale.o
cc -O2 -ansi -Dasm=__asm -Wall -Wpointer-arith -Wstrict-prototypes 			  -Wmissing-prototypes -Wmissing-declarations 			  -Wredundant-decls -Wnested-externs -Wundef  -fPIC  -I/usr/pkgobjdir/x11/xorg-server/work/xc/include/fonts -I../../include -I/usr/pkgobjdir/x11/xorg-server/work/xc/programs/Xserver/include 		   -I/usr/pkgobjdir/x11/xorg-server/work/xc/exports/include/X11 -I../  -I/usr/pkgobjdir/x11/xorg-server/work/xc -I/usr/pkgobjdir/x11/xorg-server/work/xc/exports/include  -I/usr/pkgobjdir/x11/xorg-server/work/.buildlink/include -DCSRG_BASED -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP 	-DXCSECURITY -DTOGCUP  	-DXF86BIGFONT -DDPMSExtension 	-DXPRINT -DPIXPRIV -DPANORAMIX 	 -DRENDER -DRANDR 	-DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE 	 -DGCCUSESGAS -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module -DFONTMODULE -DBDFFORMAT -DSNFFORMAT -DPCFFORMAT   -c bitscale.c
bitscale.c: In function `initFontPropTable':
bitscale.c:291: warning: implicit declaration of function `strlen'
bitscale.c: In function `get_matrix_horizontal_component':
bitscale.c:316: warning: implicit declaration of function `hypot'
bitscale.c: In function `ComputeScaleFactors':
bitscale.c:352: warning: implicit declaration of function `fabs'
bitscale.c: In function `FindBestToScale':
bitscale.c:451: error: `HUGE_VAL' undeclared (first use in this function)
bitscale.c:451: error: (Each undeclared identifier is reported only once
bitscale.c:451: error: for each function it appears in.)
bitscale.c:452: warning: implicit declaration of function `memcpy'
bitscale.c: In function `ComputeScaledProperties':
bitscale.c:785: warning: implicit declaration of function `strchr'
bitscale.c: In function `ScaleFont':
bitscale.c:1153: warning: implicit declaration of function `floor'
bitscale.c:1155: warning: implicit declaration of function `ceil'
bitscale.c:1194: warning: implicit declaration of function `abs'
bitscale.c: In function `ScaleBitmap':
bitscale.c:1368: warning: implicit declaration of function `bzero'
bitscale.c:1442: warning: implicit declaration of function `memmove'
bitscale.c: In function `BitmapOpenScalable':
bitscale.c:1900: warning: implicit declaration of function `strcpy'
*** Error code 1

Stop.
make: stopped in /usr/pkgobjdir/x11/xorg-server/work/xc/lib/font/bitmap/module
*** Error code 1

Stop.
make: stopped in /usr/pkgobjdir/x11/xorg-server/work/xc/lib/font/bitmap
*** Error code 1

Stop.
make: stopped in /usr/pkgobjdir/x11/xorg-server/work/xc/lib/font
making all in lib/lbxutil/lbx_zlib...

[.. build tries to continue anyway ..]

rm -f xres.o
cc -c -O2 -ansi -Dasm=__asm -Wall -Wpointer-arith -Wstrict-prototypes 			  -Wmissing-prototypes -Wmissing-declarations 			  -Wredundant-decls -Wnested-externs -Wundef    -I. -I../include -I/usr/pkgobjdir/x11/xorg-server/work/xc/exports/include/X11 -I/usr/pkgobjdir/x11/xorg-server/work/xc/include/extensions 		-I/usr/pkgobjdir/x11/xorg-server/work/xc/include/fonts -I../mi -I../render -I/usr/pkgobjdir/x11/xorg-server/work/xc/programs/Xserver/hw/xfree86/common -I/usr/pkgobjdir/x11/xorg-server/work/xc/include/fonts 		   -I/usr/pkgobjdir/x11/xorg-server/work/xc -I/usr/pkgobjdir/x11/xorg-server/work/xc/exports/include  -I/usr/pkgobjdir/x11/xorg-server/work/.buildlink/include -DCSRG_BASED -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP 	-DXCSECURITY -DTOGCUP  	-DXF86BIGFONT -DDPMSExtension 	-DXPRINT -DPIXPRIV -DPANORAMIX 	 -DRENDER -DRANDR 	-DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE 	 -DGCCUSESGAS -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO   -DMITMISC -DXTEST -DXTRAP 	-DXSYNC -DXCMISC -DXRECORD 	-D
 MITSHM -DBIGREQS -DXF86VIDMODE 	-DXF86MISC -DDBE -DDPMSExtension -DEVI 	-DSCREENSAVER -DXV -DXVMC 	-DGLXEXT  -DGLX_USE_MESA -D__GLX_ALIGN64 -DFONTCACHE          -DRES -DHAS_XVMCSHM   xres.c
xres.c: In function `ProcXResQueryClientResources':
xres.c:165: error: `ResourceNames' undeclared (first use in this function)
xres.c:165: error: (Each undeclared identifier is reported only once
xres.c:165: error: for each function it appears in.)
xres.c:168: warning: implicit declaration of function `RegisterResourceName'
*** Error code 1

Stop.
make: stopped in /usr/pkgobjdir/x11/xorg-server/work/xc/programs/Xserver/Xext
*** Error code 1

Stop.
make: stopped in /usr/pkgobjdir/x11/xorg-server/work/xc/programs/Xserver
*** Error code 1

Stop.
make: stopped in /usr/export/pkgsrc/x11/xorg-server
===> 
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkgobjdir/x11/xorg-server/work/.work.log
===> 
*** Error code 1

>How-To-Repeat:
  Try to build x11/xorg-server on an amd64 system with fresh (this morning)
  sources.
>Fix:
  Unknown; I'm utterly clueless regarding Imake (And I'm actually not really
  planning to do something about that fact). A simple "#include <math.h>" 
  in the very top of bitscale.c makes it compile, making me believe that 
  apperently the configuration is off. However, it'll break a little bit
  further down the road with :

cc -O2 -ansi -Dasm=__asm -Wall -Wpointer-arith -Wstrict-prototypes 			  -Wmissing-prototypes -Wmissing-declarations 			  -Wredundant-decls -Wnested-externs -Wundef  -fPIC  -I/usr/export/pkgsrc/x11/xorg-server/work/xc/include/fonts -I../../include -I/usr/export/pkgsrc/x11/xorg-server/work/xc/programs/Xserver/include 		   -I/usr/export/pkgsrc/x11/xorg-server/work/xc/exports/include/X11 -I../  -I/usr/export/pkgsrc/x11/xorg-server/work/xc -I/usr/export/pkgsrc/x11/xorg-server/work/xc/exports/include  -I/usr/export/pkgsrc/x11/xorg-server/work/.buildlink/include -DCSRG_BASED -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP 	-DXCSECURITY -DTOGCUP  	-DXF86BIGFONT -DDPMSExtension 	-DXPRINT -DPIXPRIV -DPANORAMIX 	 -DRENDER -DRANDR 	-DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE 	 -DGCCUSESGAS -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module -DFONTMODULE -DBDFFORMAT -DSNFFORMAT -DPCFFORMAT   -c bitmapmod.c
bitmapmod.c:50: error: `XORG_VERSION_CURRENT' undeclared here (not in a function)
bitmapmod.c:50: error: initializer element is not constant
bitmapmod.c:50: error: (near initialization for `VersRec.xf86version')
bitmapmod.c:55: error: initializer element is not constant
bitmapmod.c:55: error: (near initialization for `VersRec.checksum')
*** Error code 1

  At that point I gave up, realising that I was just stabbing in the dark,
  and whatever I would end up "fixing" surely won't be the real cause of the
  problem.

>Unformatted: