Subject: xsrc/24527: libfontconfig needs to link to libexpat
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <collver1@comcast.net>
List: netbsd-bugs
Date: 02/22/2004 07:09:58
>Number:         24527
>Category:       xsrc
>Synopsis:       libfontconfig needs to link to libexpat
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 22 15:11:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6ZK
>Organization:
Never wear your best pants when you go to fight for freedom.
>Environment:
System: NetBSD sanctum 1.6ZK NetBSD 1.6ZK (SANCTUM) #0: Sat Feb 21 02:26:05 PST 2004 root@sanctum:/usr/src/sys/arch/i386/compile/SANCTUM i386
Architecture: i386
Machine: i386
>Description:
	Current pkgsrc devel/pango fails to build against current xsrc,
	because libfontconfig doesn't automatically link against libexpat.
>How-To-Repeat:
	Update xsrc and pkgsrc/devel/pango, then try to build pango.

	$ ldd /usr/X11R6/lib/libfontconfig.so
	/usr/X11R6/lib/libfontconfig.so:

	$ ldd fonts/fontconfig/work/fontconfig-2.2.1/src/.libs/libfontconfig.so
	fonts/fontconfig/work/fontconfig-2.2.1/src/.libs/libfontconfig.so:
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.9 => /usr/pkg/lib/libfreetype.so.9
         -lexpat.4 => /usr/pkg/lib/libexpat.so.4

	$ cd /usr/pkgsrc/devel/pango && make
	...
	/bin/sh ../../libtool --mode=link gcc  -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Wall -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -o ottest  ottest.o disasm.o libpango-ot.la -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -lfontconfig   -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -lfreetype -lintl
	gcc -O2 -I/usr/pkgsrc/devel/pango/work/.buildlink/include -I/usr/pkgsrc/devel/pango/work/.x11-buildlink/include -I/usr/pkgsrc/devel/pango/work/.x11-buildlink/include/freetype2 -Wall -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -o ottest ottest.o disasm.o  ./.libs/libpango-ot.a -L/usr/pkgsrc/devel/pango/work/.buildlink/lib -L/usr/pkgsrc/devel/pango/work/.x11-buildlink/lib -lfontconfig -lfreetype -lintl
	/usr/pkgsrc/devel/pango/work/.buildlink/lib/libfontconfig.so: undefined reference to `XML_SetElementHandler'
	/usr/pkgsrc/devel/pango/work/.buildlink/lib/libfontconfig.so: undefined reference to `XML_SetDoctypeDeclHandler'
	/usr/pkgsrc/devel/pango/work/.buildlink/lib/libfontconfig.so: undefined reference to `XML_ParserFree'
	/usr/pkgsrc/devel/pango/work/.buildlink/lib/libfontconfig.so: undefined reference to `XML_SetCharacterDataHandler'
	/usr/pkgsrc/devel/pango/work/.buildlink/lib/libfontconfig.so: undefined reference to `XML_ErrorString'
	/usr/pkgsrc/devel/pango/work/.buildlink/lib/libfontconfig.so: undefined reference to `XML_ParseBuffer'
	/usr/pkgsrc/devel/pango/work/.buildlink/lib/libfontconfig.so: undefined reference to `XML_ParserCreate'
	/usr/pkgsrc/devel/pango/work/.buildlink/lib/libfontconfig.so: undefined reference to `XML_SetUserData'
	/usr/pkgsrc/devel/pango/work/.buildlink/lib/libfontconfig.so: undefined reference to `XML_GetErrorCode'
	/usr/pkgsrc/devel/pango/work/.buildlink/lib/libfontconfig.so: undefined reference to `XML_GetBuffer'
	/usr/pkgsrc/devel/pango/work/.buildlink/lib/libfontconfig.so: undefined reference to `XML_GetCurrentLineNumber'
>Fix:
	I am not familiar with Imake and am not sure how to fix this.
>Release-Note:
>Audit-Trail:
>Unformatted: