Subject: pango, pkgsrc, openbsd
To: None <tech-pkg@netbsd.org>
From: m. kolb <muk@bender.cl.msu.edu>
List: tech-pkg
Date: 11/01/2004 11:48:38
I really like pkgsrc on my netbsd boxen, so I decided to try it out on my
openbsd box. While trying to build pango, it poops out:
Seems like it is a problem where openbsd's xbase includes a libXft (and
possibly, due to the way the linker works, is trying to use the libXft
in /usr/X11R6/lib instead of the one in /usr/pkg...this seems unlikely
as:
nibbler:pango {215} strings /usr/X11R6/lib/libXft.so.4.0 | grep
XftCharExists
XftCharExists
).
Anyways, if there is some magic I can do in my
/usr/pkg/etc/mk.conf or something else I am missing I would appreciate
any insight.
Pertinent info:
nibbler:pango {191} cat /usr/pkg/etc/mk.conf
# Example /usr/pkg/etc/mk.conf file produced by bootstrap-pkgsrc
# Fri Oct 29 08:25:55 EDT 2004
.ifdef BSD_PKG_MK # begin pkgsrc settings
PKG_DBDIR=/var/db/pkgsrcdb
LOCALBASE=/usr/pkg
FETCH_CMD=/usr/pkg/bin/ftp
PAX=/usr/pkg/bin/pax
.endif # end pkgsrc settings
Build failure:
gcc -O -I/usr/pkgsrc/devel/pango/work/.buildlink/include
-I/usr/pkgsrc/devel/pango/work/.buildlink/include/freetype2 -Wall
-Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -o .libs/pango-querymodules
querymodules.o -L/usr/pkgsrc/devel/pango/work/.buildlink/lib
-L/usr/pkgsrc/devel/pango/work/.x11-buildlink/lib -L./.libs -lpangox-1.0
-L/usr/pkgsrc/devel/pango/work/pango-1.6.0/pango/.libs -lpangoxft-1.0
/usr/pkgsrc/devel/pango/work/.buildlink/lib/libXft.a
/usr/pkgsrc/devel/pango/work/.buildlink/lib/libXrender.a -lX11
-lpangoft2-1.0 -lfontconfig -lexpat -lfreetype -lz -lpango-1.0 -lm
-lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv
-Wl,-rpath,/usr/pkg/lib
-Wl,-rpath,/usr/pkgsrc/devel/pango/work/.buildlink/lib
./.libs/libpangoxft-1.0.so.0.600: undefined reference to `XftDrawRect'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to
`XftGlyphExtents'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to `XftCharIndex'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to
`XftTextExtents8'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to
`XftGlyphSpecRender'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to
`XRenderComposite'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to
`XftDrawGlyphSpec'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to
`XftDefaultSubstitute'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to
`XftFontOpenPattern'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to `XftLockFace'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to `XftUnlockFace'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to
`XftDrawCharSpec'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to
`XftCharSpecRender'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to `XftCharExists'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to `XftFontClose'
./.libs/libpangoxft-1.0.so.0.600: undefined reference to `XftFontOpen'
collect2: ld returned 1 exit status
nibbler:pango {195} pkg_info|grep -i xft
Xft2-2.1.6nb1 Library for configuring and customizing font access
nibbler:pango {196} ls -l /usr/pkg/lib/libXft.*
-rw-r--r-- 1 root wheel 116942 Oct 29 11:13 /usr/pkg/lib/libXft.a
-rwxr-xr-x 1 root wheel 875 Oct 29 11:13 /usr/pkg/lib/libXft.la*
nibbler:pango {197} ls -l /usr/X11R6/lib/libXft.*
-rw-r--r-- 1 root wheel 116574 Aug 31 22:52 /usr/X11R6/lib/libXft.a
-rw-r--r-- 1 root wheel 96695 Aug 31 22:52
/usr/X11R6/lib/libXft.so.4.0
nibbler:pango {198} uname -a
OpenBSD nibbler.cl.msu.edu 3.6 FARNSWORTH#2 sparc64
pkgsrc updated this morning (11/01/2004) from anoncvs.netbsd.org
Thanks.
./matt
--
m. kolb <muk@msu.edu> <muk@bender.cl.msu.edu>