Subject: pkg/33606: xorg-server broken with new freetype2
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <b1ff@fr33.b33r.net>
List: pkgsrc-bugs
Date: 05/30/2006 23:50:01
>Number:         33606
>Category:       pkg
>Synopsis:       xorg-server broken with new freetype2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 30 23:50:00 +0000 2006
>Originator:     Mathieu
>Release:        NetBSD 3.0
>Organization:
>Environment:
System: NetBSD sal.lan 3.0 NetBSD 3.0 (SPECIFIC) #0: Tue May 30 00:06:45 EDT 2006 mathieu@sal.lan:/src/src/sys/arch/i386/compile/SPECIFIC i386
Architecture: i386
Machine: i386
>Description:
Hi. Trying to build x11/xorg-server gives:

cc -c -ansi -Dasm=__asm -Wall -Wpointer-arith -Wstrict-prototypes 			  -Wmissing-prototypes -Wmissing-declarations 			  -Wredundant-decls -Wnested-externs -Wundef  -I/src/pkgsrc/x11/xorg-server/work/xc/include/fonts -I../include  -I/src/pkgsrc/x11/xorg-server/work/xc -I/src/pkgsrc/x11/xorg-server/work/xc/exports/include  -I/src/pkgsrc/x11/xorg-server/work/.buildlink/include -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBDFFORMAT -DPCFFORMAT -DSNFFORMAT  	-O2 -fno-strict-aliasing   bdfread.c -o unshared/bdfread.o
bdfread.c:66:30: X11/fonts/bdfint.h: No such file or directory
bdfread.c: In function `bdfReadBitmap':
bdfread.c:101: warning: implicit declaration of function `bdfError'
bdfread.c:119: warning: implicit declaration of function `bdfGetLine'
bdfread.c:119: warning: assignment makes pointer from integer without a cast
bdfread.c:124: warning: implicit declaration of function `bdfIsPrefix'
bdfread.c:133: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:101: warning: previous declaration of `bdfError'
bdfread.c:142: warning: implicit declaration of function `bdfHexByte'
bdfread.c:164: warning: redundant redeclaration of `bdfIsPrefix' in same scope
bdfread.c:124: warning: previous declaration of `bdfIsPrefix'
bdfread.c:165: warning: redundant redeclaration of `bdfGetLine' in same scope
bdfread.c:119: warning: previous declaration of `bdfGetLine'
bdfread.c:165: warning: assignment makes pointer from integer without a cast
bdfread.c:168: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:101: warning: previous declaration of `bdfError'
bdfread.c:172: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:101: warning: previous declaration of `bdfError'
bdfread.c: In function `bdfSkipBitmap':
bdfread.c:204: warning: assignment makes pointer from integer without a cast
bdfread.c: At top level:
bdfread.c:249: error: parse error before "bdfFileState"
bdfread.c:251: warning: function declaration isn't a prototype
bdfread.c: In function `bdfReadCharacters':
bdfread.c:267: error: `pFont' undeclared (first use in this function)
bdfread.c:267: error: (Each undeclared identifier is reported only once
bdfread.c:267: error: for each function it appears in.)
bdfread.c:281: error: `file' undeclared (first use in this function)
bdfread.c:281: warning: assignment makes pointer from integer without a cast
bdfread.c:288: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:293: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:303: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:311: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:316: warning: assignment makes pointer from integer without a cast
bdfread.c:337: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:341: warning: implicit declaration of function `bdfForceMakeAtom'
bdfread.c:343: warning: assignment makes pointer from integer without a cast
bdfread.c:345: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:349: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:361: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:378: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:391: warning: assignment makes pointer from integer without a cast
bdfread.c:393: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:397: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:406: warning: assignment makes pointer from integer without a cast
bdfread.c:408: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:412: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:415: warning: assignment makes pointer from integer without a cast
bdfread.c:417: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:421: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:425: warning: assignment makes pointer from integer without a cast
bdfread.c:432: warning: assignment makes pointer from integer without a cast
bdfread.c:437: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:443: error: `pState' undeclared (first use in this function)
bdfread.c:456: error: `bit' undeclared (first use in this function)
bdfread.c:456: error: `byte' undeclared (first use in this function)
bdfread.c:456: error: `glyph' undeclared (first use in this function)
bdfread.c:456: error: `scan' undeclared (first use in this function)
bdfread.c:462: warning: assignment makes pointer from integer without a cast
bdfread.c:467: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:473: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:477: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c:481: warning: implicit declaration of function `bdfWarning'
bdfread.c:489: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:284: warning: previous declaration of `bdfError'
bdfread.c: At top level:
bdfread.c:538: error: parse error before "bdfFileState"
bdfread.c:539: warning: function declaration isn't a prototype
bdfread.c: In function `bdfReadHeader':
bdfread.c:544: error: `file' undeclared (first use in this function)
bdfread.c:544: warning: assignment makes pointer from integer without a cast
bdfread.c:546: warning: implicit declaration of function `bdfStrEqual'
bdfread.c:550: warning: assignment makes pointer from integer without a cast
bdfread.c:551: error: `pState' undeclared (first use in this function)
bdfread.c:552: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:547: warning: previous declaration of `bdfError'
bdfread.c:555: warning: assignment makes pointer from integer without a cast
bdfread.c:557: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:547: warning: previous declaration of `bdfError'
bdfread.c:562: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:547: warning: previous declaration of `bdfError'
bdfread.c:567: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:547: warning: previous declaration of `bdfError'
bdfread.c:570: warning: assignment makes pointer from integer without a cast
bdfread.c:572: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:547: warning: previous declaration of `bdfError'
bdfread.c: At top level:
bdfread.c:581: error: parse error before "bdfFileState"
bdfread.c:582: warning: function declaration isn't a prototype
bdfread.c: In function `bdfReadProperties':
bdfread.c:592: error: `pFont' undeclared (first use in this function)
bdfread.c:594: error: `file' undeclared (first use in this function)
bdfread.c:594: warning: assignment makes pointer from integer without a cast
bdfread.c:600: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:596: warning: previous declaration of `bdfError'
bdfread.c:607: error: `BDF_GENPROPS' undeclared (first use in this function)
bdfread.c:610: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:596: warning: previous declaration of `bdfError'
bdfread.c:617: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:596: warning: previous declaration of `bdfError'
bdfread.c:626: warning: assignment makes pointer from integer without a cast
bdfread.c:628: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:596: warning: previous declaration of `bdfError'
bdfread.c:637: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:596: warning: previous declaration of `bdfError'
bdfread.c:648: warning: implicit declaration of function `bdfGetPropertyValue'
bdfread.c:652: warning: implicit declaration of function `bdfIsInteger'
bdfread.c:669: warning: redundant redeclaration of `bdfGetPropertyValue' in same scope
bdfread.c:648: warning: previous declaration of `bdfGetPropertyValue'
bdfread.c:680: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:596: warning: previous declaration of `bdfError'
bdfread.c:683: warning: implicit declaration of function `bdfSpecialProperty'
bdfread.c:684: error: `pState' undeclared (first use in this function)
bdfread.c:688: warning: assignment makes pointer from integer without a cast
bdfread.c:690: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:596: warning: previous declaration of `bdfError'
bdfread.c:694: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:596: warning: previous declaration of `bdfError'
bdfread.c:702: warning: redundant redeclaration of `bdfForceMakeAtom' in same scope
bdfread.c:678: warning: previous declaration of `bdfForceMakeAtom'
bdfread.c:709: warning: redundant redeclaration of `bdfForceMakeAtom' in same scope
bdfread.c:678: warning: previous declaration of `bdfForceMakeAtom'
bdfread.c:716: warning: redundant redeclaration of `bdfForceMakeAtom' in same scope
bdfread.c:678: warning: previous declaration of `bdfForceMakeAtom'
bdfread.c:724: warning: redundant redeclaration of `bdfForceMakeAtom' in same scope
bdfread.c:678: warning: previous declaration of `bdfForceMakeAtom'
bdfread.c:731: warning: redundant redeclaration of `bdfForceMakeAtom' in same scope
bdfread.c:678: warning: previous declaration of `bdfForceMakeAtom'
bdfread.c:738: warning: redundant redeclaration of `bdfForceMakeAtom' in same scope
bdfread.c:678: warning: previous declaration of `bdfForceMakeAtom'
bdfread.c:745: warning: redundant redeclaration of `bdfForceMakeAtom' in same scope
bdfread.c:678: warning: previous declaration of `bdfForceMakeAtom'
bdfread.c:752: warning: redundant redeclaration of `bdfForceMakeAtom' in same scope
bdfread.c:678: warning: previous declaration of `bdfForceMakeAtom'
bdfread.c:770: warning: assignment makes pointer from integer without a cast
bdfread.c: At top level:
bdfread.c:786: warning: no previous prototype for `bdfReadFont'
bdfread.c: In function `bdfReadFont':
bdfread.c:787: error: `bdfFileState' undeclared (first use in this function)
bdfread.c:787: error: parse error before "state"
bdfread.c:794: error: `state' undeclared (first use in this function)
bdfread.c:816: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:802: warning: previous declaration of `bdfError'
bdfread.c:860: warning: redundant redeclaration of `bdfError' in same scope
bdfread.c:802: warning: previous declaration of `bdfError'
bdfread.c: At top level:
bdfread.c:898: warning: no previous prototype for `bdfReadFontInfo'
bdfread.c: In function `bdfPadToTerminal':
bdfread.c:942: warning: implicit declaration of function `FontCharReshape'
*** Error code 1

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

Stop.
make: stopped in /src/pkgsrc/x11/xorg-server/work/xc/lib/font



But the build doesn't stop completely yet, it continues and then
fails a long time after with:

ar clq libdamage.a damage.o
ranlib libdamage.a
make: don't know how to make /src/pkgsrc/x11/xorg-server/work/xc/lib/font/fontbase.o. Stop

make: stopped in /src/pkgsrc/x11/xorg-server/work/xc/programs/Xserver
*** Error code 2

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

Stop.
make: stopped in /usr/pkgsrc/x11/xorg-server




And I also get the same error as in PR 33601 with the new freetype.

>How-To-Repeat:
Happened with an up-to-date pkgsrc (one with a graphics/freetype2 v2.2.1).
>Fix:
Dunno. Xorg wants to use freetype's "internal headers" which don't
seem to be installed anymore. Giving it access to them yields a
bunch of other errors about structure fields / function signatures
mismatch.