aMule Forum

English => aMule Help => Topic started by: lennynero on September 16, 2004, 06:20:23 PM

Title: amule cvs compiling problem
Post by: lennynero on September 16, 2004, 06:20:23 PM
i can't compile amule-cvs-20040916, i have a problem during make;

i paste my backtrace:

Code: [Select]
.
.
.
.
.
.
g++  -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__ -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2   -lpthread -o ed2k  ED2KLinkParser.o
gcc  -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2   -lpthread -o amulegui   -pthread -lwx_gtk-2.4 -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm -lz -L/usr/lib -lcurl -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lcryptopp
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make[4]: *** [amulegui] Error 1
make[4]: Leaving directory `/home/lenny/download/amule-cvs/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/lenny/download/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/lenny/download/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lenny/download/amule-cvs'
make: *** [all] Error 2
lenny@linux:~/download/amule-cvs$

please help me! i think that  there is a linking error, but i dont know how compile souce, if my library are broken please help me about them.

i using a amd thunderbird(is very old :) )750Mhz, 512MB ram on slackware 9.1 upgraded to current
Title: Re: amule cvs compiling problem
Post by: lfroen on September 16, 2004, 06:40:09 PM
Pls supply configure parameters !
Title: Re: amule cvs compiling problem
Post by: Kry on September 16, 2004, 06:45:11 PM
Do NOT compile core/gui separated.
Title: my configure parameters
Post by: lennynero on September 16, 2004, 09:58:06 PM
sorry...my configure parameters are:

./configure --enable-optimize --enable-amulecmdgui --enable-amule-gui --enable-amule-daemon --enable-webserver --enable-amulecmd --prefix=/home/lenny/download/amule-cvs/tgz/ prefix in included for creating a tgz package.
Title: Re: amule cvs compiling problem
Post by: Jacobo221 on September 17, 2004, 03:28:23 AM
remove " --enable-amule-gui --enable-amule-daemon" from that configure command. Those are the core/GUI split specific code.
Greetings!
Title: Re: amule cvs compiling problem
Post by: lfroen on September 17, 2004, 09:31:33 AM
You can leave --enable-amule-daemon - this one working (since yesterday)
Title: thank you all
Post by: lennynero on September 17, 2004, 02:48:55 PM
thank you all, leaving amule-gui and daemon it working, but how i can use amule like mldonkey( :) ) using a local core and remote gui....; it is possible?
Title: Re: amule cvs compiling problem
Post by: Jacobo221 on September 17, 2004, 06:38:27 PM
use aMule's webserver or amulecmd
to do so, compile with --enable-webserver --enable-amulecmd
if you have wxGTK 2.4, make sure you have wxbase also installed. On wxGTK 2.5 wxBase is no longer needed.
Greetings!
Title: Re: amule cvs compiling problem
Post by: crazycat on September 19, 2004, 01:15:56 PM
I was able to compile latest cvs on gentoo-amd64 using gcc3.4 and wxgtk2.5.1 (using gtk1) .I had to edit some wx headers because it somhow missed to include some files. Surprisingly it runs more stable than rc5 i've tried. Great job, guys! I can also start amule daemon but it just refuses all my connections.
The daemon sais that external connections are disabled in .eMule file , but i have AcceptExternalConnections=1 there! Anyway, it runs and thats great :D
Title: Re: amule cvs compiling problem
Post by: stefanero on September 19, 2004, 01:34:43 PM
hey
great job,
could you maybe post the includes you had to made!? so we can include thm in cvs and make it work for other people aswell?

thnx
stefanero
Title: Re: amule cvs compiling problem
Post by: crazycat on September 19, 2004, 02:39:16 PM
It has something to do with wx and not with amule i think:
I have wx headers in /usr/inlcude/wx

kernel     2.6.8.1-ck7
gcc        3.4.1
wxWidgets  2.5.1 (wxGTK-2.5.1-r1 gentoo ebuild)
GTK        1.2.10

configure:
Code: [Select]
./configure --prefix=/usr  --disable-debug --enable-optimize --enable-amule-daemon --enable-amulecmd --enable-webserver
The error i had:
Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/lib/wx/include/gtk-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA -DwxUSE_GUI=0 -I/usr/include/ -D__CRYPTO_DEBIAN_GENTOO__  -O2  -MT amuleweb-ExternalConnector.o -MD -MP -MF ".deps/amuleweb-ExternalConnector.Tpo" \
  -c -o amuleweb-ExternalConnector.o `test -f 'ExternalConnector.cpp' || echo './'`ExternalConnector.cpp; \
then mv -f ".deps/amuleweb-ExternalConnector.Tpo" ".deps/amuleweb-ExternalConnector.Po"; \
else rm -f ".deps/amuleweb-ExternalConnector.Tpo"; exit 1; \
fi
In file included from /usr/include/wx/textfile.h:27,
                 from /usr/include/wx/fileconf.h:24,
                 from /usr/include/wx/config.h:13,
                 from ExternalConnector.cpp:38:
/usr/include/wx/file.h:117: error: `wxSeekMode' has not been declared
/usr/include/wx/file.h:117: error: `wxFromStart' was not declared in this scope
/usr/include/wx/file.h: In member function `off_t wxFile::SeekEnd(off_t)':
/usr/include/wx/file.h:119: error: `wxFromEnd' undeclared (first use this function)
/usr/include/wx/file.h:119: error: (Each undeclared identifier is reported only once for each function it appears in.)
make[4]: *** [amuleweb-ExternalConnector.o] Error 1
make[4]: Leaving directory `/WORK/amule-cvs/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/WORK/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/WORK/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/WORK/amule-cvs'
make: *** [all] Error 2
so i just searched for wxSeekMode in /usr/include/wx directory. The first file i found was stream.h . So I added #include "stream.h" to file.h in the same directory and it worked. There are also some lines below in this file:
Code: [Select]
#ifndef WX_PRECOMP
  #include  "wx/string.h"
  #include  "wx/filefn.h"
  #include  "wx/strconv.h"
#endif
but i suppose they were not included and there is no another "wx" directory in /usr/include/wx