axiom-developer
[Top][All Lists]
Advanced

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

RE: [Axiom-developer] sman and X libraries


From: Page, Bill
Subject: RE: [Axiom-developer] sman and X libraries
Date: Wed, 22 Nov 2006 20:25:49 -0500

 

> -----Original Message-----
> From: 
> address@hidden
.org [mailto:axiom-developer-bounces+bill.page1>
address@hidden On Behalf Of Waldek Hebisch
> Sent: Wednesday, November 22, 2006 7:31 PM
> To: address@hidden
> Subject: [Axiom-developer] sman and X libraries
> 
> in version 288 I see:
> 
> 2006-11-18  Bill Page  <address@hidden>
> 
>        * Makefile.pamphlet (LDFLAGS): Add X11 libraries flags.
>        * Makefile.in: Regenerate.
> 
> Why do we need this: AFAIK sman should not use any X libraries.
> In recent build 'ldd sman' gives me:
> 
>         libXpm.so.4 => /usr/X11R6/lib64/libXpm.so.4 
> (0x0000002a9566c000)
>         libSM.so.6 => /usr/X11R6/lib64/libSM.so.6 (0x0000002a95780000)
>         libICE.so.6 => /usr/X11R6/lib64/libICE.so.6 
> (0x0000002a9588d000)
>         libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 
> (0x0000002a959af000)
>         libc.so.6 => /lib/libc.so.6 (0x0000002a95bc4000)
>         libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 
> (0x0000002a95dea000)
>         libXau.so.6 => /usr/X11R6/lib64/libXau.so.6 
> (0x0000002a95efe000)
>         libXdmcp.so.6 => /usr/X11R6/lib64/libXdmcp.so.6 
> (0x0000002a96001000)
>         libdl.so.2 => /lib/libdl.so.2 (0x0000002a96104000)
>         /lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
> 
> so now sman will refuse to run on a machine without X libraries.
> 
> -- 

I think this change:

http://axiom.svn.sourceforge.net/viewvc/axiom/branches/build-improvement
s/src/sman/Makefile.in?view=diff&pathrev=288&r1=287&r2=288

is not correct. The patch I sent to Gaby is here:

http://lists.nongnu.org/archive/html/axiom-developer/2006-09/msg00297.ht
ml

includes the line:

+LDFLAGS= -L${LIB} -lspad ${LDF} -lspad ${AXIOM_X11_LDFLAGS}

and

 <<sman>>=
 ${OUT}/sman: ${SMANOBJS} ${MIDOBJ}/sman.o
        @ echo 13 linking sman
-       @ ${CC} -o ${OUT}/sman ${MIDOBJ}/sman.o ${SMANOBJS}
+       @ ${CC} -o ${OUT}/sman ${MIDOBJ}/sman.o ${SMANOBJS} ${LDFLAGS}

but in fact ${AXIOM_X11_LDFLAGS} is not needed for sman.

I think we need a more "delicate" approach to providing the right
libraries in the right place, i.e. more autoconf variables.

Regards,
Bill Page.




reply via email to

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