axiom-mail
[Top][All Lists]
Advanced

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

[Axiom-mail] Re: Options for building GCL from Axiom


From: root
Subject: [Axiom-mail] Re: Options for building GCL from Axiom
Date: Fri, 4 Aug 2006 19:30:59 -0400

> In my conversion to Autoconf, I just call the Autoconf macro
> AC_PATH_XTRA.  It has knowledge to find the "right" include and
> library paths for X11 and set them in X_CFLAGS and X_LDFLAGS
> respectively.  That way, there is no need to worry whether the lib64
> path should come before or after.


It's not that simple unfortunately (or maybe it is and I just
don't understand it). For instance, the current conflict between
the "linux" branch and the "fedora5" branch is libXpm. Linux 
uses libXpm.a from /usr/X11R6/lib and fedora5 doesn't seem to 
have that file. Fedora5 wants -lXpm but when I feed THAT to the
"linux" build it fails thus:

           /tmp/axiom49/obj/fedora5/lib/bsdsignal.o 
-L/tmp/axiom49/obj/fedora5/lib -lspad  -L/usr/X11R6/lib -lXpm  -lX11 -lm 
-L/tmp/axiom49/obj/fedora5/lib )
linking /tmp/axiom49/mnt/fedora5/bin/htadd
/usr/X11R6/lib/libXpm.so: undefined reference to `XDefaultScreen'
/usr/X11R6/lib/libXpm.so: undefined reference to `XCreateImage'
/usr/X11R6/lib/libXpm.so: undefined reference to `XDefaultVisual'
/usr/X11R6/lib/libXpm.so: undefined reference to `XFreeGC'
/usr/X11R6/lib/libXpm.so: undefined reference to `XUngrabServer'
/usr/X11R6/lib/libXpm.so: undefined reference to `XGetImage'
/usr/X11R6/lib/libXpm.so: undefined reference to `XFreeColors'
/usr/X11R6/lib/libXpm.so: undefined reference to `XParseColor'
/usr/X11R6/lib/libXpm.so: undefined reference to `XGrabServer'
/usr/X11R6/lib/libXpm.so: undefined reference to `XQueryColors'
/usr/X11R6/lib/libXpm.so: undefined reference to `XAllocColor'
/usr/X11R6/lib/libXpm.so: undefined reference to `XGetGeometry'
/usr/X11R6/lib/libXpm.so: undefined reference to `XDefaultColormap'
/usr/X11R6/lib/libXpm.so: undefined reference to `XDefaultDepth'
/usr/X11R6/lib/libXpm.so: undefined reference to `XPutImage'
/usr/X11R6/lib/libXpm.so: undefined reference to `XCreatePixmap'
/usr/X11R6/lib/libXpm.so: undefined reference to `XCreateGC'

so I have:
    linux:  -l/usr/X11R6/lib/libXpm.a
  fedora5:  -l/usr/X11R6/lib -lXpm

I'm not sure how autoconf resovles that issue because the failure
occurs during linking. I suppose you could construct a special case
test for this. I'm just constructing the same case using the AXIOM
variable.

t




reply via email to

[Prev in Thread] Current Thread [Next in Thread]