pkgsrc-Users archive

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

Building X11 tools on opensolaris?

I'm using the 2008Q2 pkgsrc tarball on OpenSolaris SXCE b96. I've
installed the SXCE X11 builds, on the (possibly false) assumption that
the low level drivers would work better.

Building non-X things seems to work fine.

Building X things seem to want x11/xcursor built, which tries to build
x11/XFixes, which fails like so:

===> Building for Xfixes-2.0.1nb4
/usr/pkg/bin/bmake  all-am
source='Cursor.c' object='Cursor.lo' libtool=yes  depfile='.deps/Cursor.Plo' 
tmpdepfile='.deps/Cursor.TPlo'  depmode=none /usr/pkg/bin/pdksh ./depcomp  
/usr/pkg/bin/pdksh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.    
-I/usr/pkg/include -I/usr/include -I/usr/X11/include -I/usr/openwin/include 
-DXTHREADS -O -I/usr/pkg/include -I/usr/include -c -o Cursor.lo `test -f 
'Cursor.c' || echo './'`Cursor.c
 gcc -DHAVE_CONFIG_H -I. -I/usr/pkg/src/x11/Xfixes/work/.buildlink/include 
-I/usr/pkg/src/x11/Xfixes/work/.x11-buildlink/include -DXTHREADS -O -c Cursor.c 
 -KPIC -DPIC -o .libs/Cursor.o
"/usr/pkg/src/x11/Xfixes/work/.buildlink/include/X11/Xlibint.h", line 45: 
cannot find include file: <X11/XlibConf.h>
"Xfixes.h", line 28: cannot find include file: <X11/extensions/xfixeswire.h>
"Xfixesint.h", line 35: cannot find include file: <X11/extensions/xfixesproto.h>
"Cursor.c", line 33: undefined symbol: xXFixesSelectCursorInputReq

Ok, the reason for the failure is obvious - the gcc command isn't
getting the -I/usr/X11/include flag, as the missing files are there.

What I'm confused about is - why is this trying to build xcursor in
the first place? According to the pkgsrc users guide, X11BASE defaults
to /usr/X11R6, and xcursor provides link libraries and header files -
which are in /usr/X11R6 already. So why is xcursor being rebuilt?

mk.conf is below. Are the docs wrong and I need to set X11BASE? Should
I just use the xorg from pkgsrc?


.ifdef BSD_PKG_MK       # begin pkgsrc settings

ABI=                    64
PKGSRC_COMPILER=        sunpro

PKG_DBDIR=              /usr/pkg/db
LOCALBASE=              /usr/pkg
VARBASE=                /var
PKG_TOOLS_BIN=          /usr/pkg/sbin
PKGMANDIR=              man             /usr/pkg/bin/pdksh
TOOLS_PLATFORM.ksh?=            /usr/pkg/bin/pdksh
TOOLS_PLATFORM.awk?=            /usr/pkg/bin/nawk
TOOLS_PLATFORM.sed?=            /usr/pkg/bin/nbsed
TOOLS_PLATFORM.pax?=            /usr/pkg/bin/pax
TOOLS_PLATFORM.tar?=            /usr/pkg/bin/tar

.endif                  # end pkgsrc settings

Mike Meyer <>   
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail -

Home | Main Index | Thread Index | Old Index