aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: --enable-static !  (Read 3666 times)

goutnet

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
--enable-static !
« on: June 26, 2005, 02:28:56 PM »

I try to build a static executable from the stable release :

 ./configure --enable-optimize  --enable-static  --enable-webserver  --enable-webservergui

but I get some compilation errors :

here is the end of the make output :

g++  -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2   -static  -lpthread -o amulewebDLG  amulewebDLG-WebServer.o amulewebDLG-WebInterface.o amulewebDLG-WebSocket.o amulewebDLG-MD5Sum.o amulewebDLG-ECSocket.o amulewebDLG-ExternalConnector.o amulewebDLG-ECPacket.o amulewebDLG-OtherFunctions.o amulewebDLG-ECSpecialTags.o amulewebDLG-StringFunctions.o amulewebDLG-NetworkFunctions.o amulewebDLG-Format.o -pthread    /usr/lib/libwx_gtk-2.4.a -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lgthread -lglib -lpthread -ldl -lXi -lXext -lX11 -lm -lpng -ljpeg -ltiff -lz -ldl -lm  -lz -lpng12 -lpng12 -lpng  
/usr/lib/libgmodule.a(gmodule.o)(.text+0x42): In function `_g_module_open':
: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libwx_gtk-2.4.a(utilsunx.o)(.text+0x121a): In function `wxGetUserHome(wxString const&)':
: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libwx_gtk-2.4.a(utilsunx.o)(.text+0x1240): In function `wxGetUserHome(wxString const&)':
: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libglib.a(gutils.o)(.text+0x90d): In function `g_get_any_init':
: warning: Using 'setpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libglib.a(gutils.o)(.text+0x922): In function `g_get_any_init':
: warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libglib.a(gutils.o)(.text+0x7ce): In function `g_get_any_init':
: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/X11R6/lib/libX11.a(x11trans.o)(.text+0x2e3): In function `_X11TransSocketOpen':
: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libwx_gtk-2.4.a(gsocket.o)(.text+0x1a69): In function `GAddress_INET_GetHostName':
: warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libwx_gtk-2.4.a(gsocket.o)(.text+0x179b): In function `GAddress_INET_SetHostName':
: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libwx_gtk-2.4.a(gsocket.o)(.text+0x18e7): In function `GAddress_INET_SetPortName':
: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libwx_gtk-2.4.a(textctrl.o)(.gnu.linkonce.r._ZTV10wxTextCtrl+0x2b0): undefined reference to `std::basic_streambuf >::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode)'
/usr/lib/libwx_gtk-2.4.a(textcmn.o)(.gnu.linkonce.r._ZTV14wxTextCtrlBase+0x2b0): undefined reference to `std::basic_streambuf >::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode)'
/usr/lib/libwx_gtk-2.4.a(listctrl.o)(.gnu.linkonce.r._ZTV14wxListTextCtrl+0x2b0): undefined reference to `std::basic_streambuf >::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode)'
collect2: ld a retourné 1 code d'état d'exécution
make[3]: *** [amulewebDLG] Erreur 1
make[3]: Leaving directory `/home/fdelizy/upgrades/aMule-2.0.3/src'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/home/fdelizy/upgrades/aMule-2.0.3/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/fdelizy/upgrades/aMule-2.0.3'
make: *** [all] Erreur 2

somebody an idea ?
Logged

Eleksir

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
Re: --enable-static !
« Reply #1 on: July 04, 2005, 04:57:49 PM »

maybe you should link statically wxWdgets, after that I successfully built static amulecmdgui (amule binary size = 7530598 bytes) but I'm not sure that it will work in your case
« Last Edit: July 04, 2005, 05:00:11 PM by Eleksir »
Logged