Re: [Exim] Building a static eximon.bin

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Vadim Vygonets
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] Building a static eximon.bin
Quoth Sheldon Hearn on Tue, May 22, 2001:
> Has anyone had any joy trying to build a static eximon.bin?


Not me.

> I've never been very good at wrestling with linkers, and the closest
> thing I've come up with is to prepend -pthread -static to the linker
> command (gcc), and to insert -lSM -lICE immediately preceding -lX11.


-pthread is probably not needed, but I don't know. If you find
you need libSM and libICE, include them. To find out which
shared libraries a shared library uses, run ldd, like this:

netsys:~> ldd /usr/X11R6/lib/libXaw.so
        libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x18090000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x180a2000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x180e4000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x180ed000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x18102000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x1810d000)
        libc.so => /shlib/libc.so (0x181ab000)


Of course, this varioes between different operating systems.

> This gets me down to only a handful of error messages, surrounding
> duplicate symbols from libXaw.


This should not be critical, I think. What libraries have the
other duplicates?

In any case, your approach is the correct one. If it builds, it
should be useable.

Vadik.

--
Time sharing: The use of many people by the computer.