Everyday closer to 0.5 release :) Hi,
Thanks to phh, I found why I get those strange bugs. It was because the order of the libs in my command. So, I finally get a static wormux binary : 60 MB and 5.6 MB stripped But ... it crashes because of a OpenGL bug. The bug should come from problem with my tuning X.org + ATI driver under Debian : /usr/lib/libGL.so and /usr/lib/libGL.a were differents ... I compiled the correct one (for my video card with a new Mesa version), but it get a lot of link error (missings libs). I'm tired and have to go sleeping. Bye, Haypo Le lundi 25 octobre 2004 à 01:42 +0200, Victor STINNER a écrit : > 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 -- Victor STINNER <[EMAIL PROTECTED]>
static.sh
Description: application/shellscript