Hi,

I tryed to compile Wormux in static version under my Debian distro. I
(mis?)understood that I have to add -static to last link command and
also add missing libs (with -l<lib name>).

To find missing libs, I used a bash script : find_liba.sh (atteched on
this email).

File "/usr/[X11R6/]/lib/*.a" are archives which contain some objects. nm
read this object and list all functions.

After installing some "-dev" missing Debian packages and a long time to
find all missing libs, I finished with static.sh attached script (should
be run in wormux/src/ directory).

I don't know why, but dlopen, dlclose, (...) miss, but does exist in my
/usr/lib/libdl.a !?! Same problem witg oggpack_* functions which exist
in my /usr/lib/libogg.a. I also get 3 warnings :

<< Using 'getaddrinfo' in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking >>
(from /usr/lib/libxml2.a, and same message with gethostbyname and
getservbyname functions)

Bye, Haypo

Attachment: find_liba.sh
Description: application/shellscript

Attachment: static.sh
Description: application/shellscript

Répondre à