X building problems
Pelle Johansson
morth at morth.org
Wed Jan 24 23:50:28 PST 2007
Hi,
Sorry if these are all know problems, but I didn't find anything
recent in the archives at least.
I figured I'd learn the X sources a bit and started out by trying to
build the current sources from scratch.
My machine is a MacBook Pro (intel cpu) running OS X 10.4.x. It's
gone pretty well, but I've run into a few problems, running the
build.sh script like this:
# util/modular/build.sh -m ~/Unix/gitsrc/mesa -D -/opt/xorg
The biggest problem is that drivers can't find all headers (4. below).
1. lib/liblbxutil won't link:
gcc -dynamiclib -o .libs/liblbxutil.1.0.0.dylib .libs/
lbx_zlib_io.o .libs/lbx_zlib.o .libs/reqstats.o .libs/misc.o .libs/
dpackbits.o .libs/epackbits.o .libs/dfaxg42d.o .libs/efaxg42d.o .libs/
lbxdelta.o -lz -install_name /opt/xorg/lib/liblbxutil.1.dylib -Wl,-
compatibility_version -Wl,2 -Wl,-current_version -Wl,2.0
ld: Undefined symbols:
_Xalloc
_Xfree
Since there's several implementations of these functions, I'm not
sure what to add to the makefile to make it work.
2. app/xload got a conflict on nlist, which I resolved like this:
--- a/get_load.c
+++ b/get_load.c
@@ -928,7 +928,7 @@ void InitLoadPoint()
nl[i].n_value = (int)nl[i].n_value - v.v_kvoffset;
}
#else /* not macII */
-#if !defined(SVR4) && !defined(sgi) && !defined(MOTOROLA) && !defined
(AIXV5) && !(BSD >= 199103)
+#if !defined(SVR4) && !defined(sgi) && !defined(MOTOROLA) && !defined
(AIXV5) && !(BSD >= 199103) && !defined(__APPLE__)
extern void nlist();
#endif
It's not a very good solution though, Apple recommends not to use
that define. __DARWIN__ did not work (it's not defined).
3. Xdmx doesn't link:
/usr/bin/ld: Undefined symbols:
_DDXRingBell
___glXBadContext
___glXBadContextState
___glXBadContextTag
___glXBadCurrentWindow
___glXBadDrawable
___glXBadFBConfig
___glXBadLargeRequest
___glXBadPbuffer
___glXBadPixmap
___glXBadRenderRequest
___glXClientRes
___glXClients
___glXContextRes
___glXLastContext
___glXPbufferRes
___glXPixmapRes
___glXUnsupportedPrivateRequest
___glXWindowRes
___glXerrorBase
___glXVersionMajor
___glXVersionMinor
_miPointerGetMotionBufferSize
_miPointerGetMotionEvents
_miRegisterPointerDevice
collect2: ld returned 1 exit status
I didn't look into this one so much yet, instead just skipping this
directory.
4. No drivers can build, they can't find their headers:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -I -I/opt/xorg/include -I../
src -MT acecad.lo -MD -MP -MF .deps/acecad.Tpo -c acecad.c -fno-
common -DPIC -o .libs/acecad.o
In file included from acecad.c:29:
../config.h:4:25: error: xorg-server.h: No such file or directory
acecad.c:48:18: error: misc.h: No such file or directory
acecad.c:49:18: error: xf86.h: No such file or directory
acecad.c:51:25: error: xf86_OSproc.h: No such file or directory
acecad.c:52:18: error: xisb.h: No such file or directory
acecad.c:53:24: error: xf86Xinput.h: No such file or directory
acecad.c:54:22: error: exevents.h: No such file or directory
acecad.c:55:24: error: xf86Module.h: No such file or directory
I noticed these headers are around in the xserver/ directory but are
not installed... What should I do to resolve this problem?
Thanks in advance,
--
Pelle Johansson
More information about the xorg
mailing list