aMule Forum

English => Compilation problems => Topic started by: GrayFox.i0n on February 28, 2008, 11:06:19 PM

Title: aMule 20080228 compile crash
Post by: GrayFox.i0n on February 28, 2008, 11:06:19 PM
Sorry because most of my posts are about crashes, but i hope this helps to fix them:

Configured on a Ubuntu Machine with this flags:

Code: [Select]
./configure --prefix=/usr --enable-amule-gui --enable-alc --enable-alcc --enable-utf8-systray --enable-debug --enable-optimize --enable-amulecmd --enable-amule-daemon --enable-cas --enable-wxcas --enable-webserver --enable-ccache  --enable-geoip --enable-remote
I get this error while compiling:

Code: [Select]
make[5]: Entering directory `/home/bigboss/amule-cvs/src/utils/cas'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I/usr/include -D__GD__ -g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -DUSE_WX_EXTENSIONS -MT cas-cas.o -MD -MP -MF ".deps/cas-cas.Tpo" -c -o cas-cas.o `test -f 'cas.c' || echo './'`cas.c; \
        then mv -f ".deps/cas-cas.Tpo" ".deps/cas-cas.Po"; else rm -f ".deps/cas-cas.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I/usr/include -D__GD__ -g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -DUSE_WX_EXTENSIONS -MT cas-configfile.o -MD -MP -MF ".deps/cas-configfile.Tpo" -c -o cas-configfile.o `test -f 'configfile.c' || echo './'`configfile.c; \
        then mv -f ".deps/cas-configfile.Tpo" ".deps/cas-configfile.Po"; else rm -f ".deps/cas-configfile.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I/usr/include -D__GD__ -g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -DUSE_WX_EXTENSIONS -MT cas-functions.o -MD -MP -MF ".deps/cas-functions.Tpo" -c -o cas-functions.o `test -f 'functions.c' || echo './'`functions.c; \
        then mv -f ".deps/cas-functions.Tpo" ".deps/cas-functions.Po"; else rm -f ".deps/cas-functions.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I/usr/include -D__GD__ -g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -DUSE_WX_EXTENSIONS -MT cas-graphics.o -MD -MP -MF ".deps/cas-graphics.Tpo" -c -o cas-graphics.o `test -f 'graphics.c' || echo './'`graphics.c; \
        then mv -f ".deps/cas-graphics.Tpo" ".deps/cas-graphics.Po"; else rm -f ".deps/cas-graphics.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I/usr/include -D__GD__ -g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -DUSE_WX_EXTENSIONS -MT cas-html.o -MD -MP -MF ".deps/cas-html.Tpo" -c -o cas-html.o `test -f 'html.c' || echo './'`html.c; \
        then mv -f ".deps/cas-html.Tpo" ".deps/cas-html.Po"; else rm -f ".deps/cas-html.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I/usr/include -D__GD__ -g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -DUSE_WX_EXTENSIONS -MT cas-lines.o -MD -MP -MF ".deps/cas-lines.Tpo" -c -o cas-lines.o `test -f 'lines.c' || echo './'`lines.c; \
        then mv -f ".deps/cas-lines.Tpo" ".deps/cas-lines.Po"; else rm -f ".deps/cas-lines.Tpo"; exit 1; fi
gcc  -g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -DUSE_WX_EXTENSIONS  -L/usr/lib  -lpthread -o cas  cas-cas.o cas-configfile.o cas-functions.o cas-graphics.o cas-html.o cas-lines.o  -L/usr/lib -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm  -lz  -lGeoIP
cas-graphics.o: In function `createimage':
/home/bigboss/amule-cvs/src/utils/cas/graphics.c:62: undefined reference to `gdImageCreateFromPng'
/home/bigboss/amule-cvs/src/utils/cas/graphics.c:63: undefined reference to `gdImageColorResolve'
/home/bigboss/amule-cvs/src/utils/cas/graphics.c:88: undefined reference to `gdImagePng'
/home/bigboss/amule-cvs/src/utils/cas/graphics.c:95: undefined reference to `gdImageDestroy'
/home/bigboss/amule-cvs/src/utils/cas/graphics.c:67: undefined reference to `gdImageStringFT'
/home/bigboss/amule-cvs/src/utils/cas/graphics.c:90: undefined reference to `gdImageJpeg'
collect2: ld returned 1 exit status
make[5]: *** [cas] Error 1
make[5]: Leaving directory `/home/bigboss/amule-cvs/src/utils/cas'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/bigboss/amule-cvs/src/utils/cas'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/bigboss/amule-cvs/src/utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/bigboss/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bigboss/amule-cvs'
make: *** [all] Error 2

There it is.
Cheers!
Title: Re: aMule 20080228 compile crash
Post by: wuischke on February 28, 2008, 11:53:34 PM
Confirmed, thanks for the report!

If you want to hack around it, add "-lgd" to the above command and it will build.

As far as I understand the problem, it tries use the variable GDLIB_LIBS in Makefile.am. This is a problem, as this variable will be first defined by configure - but configure uses the from Makefile.am generated file Makefile.in. I'm not sure how to solve this.
Title: Re: aMule 20080228 compile crash
Post by: Festor on March 01, 2008, 10:07:25 AM
Same problem in aMule 20080301 tarball in Ubuntu 7.10 :(

"-lgd" seems not work
Title: Re: aMule 20080228 compile crash
Post by: AnimAlf on March 02, 2008, 04:16:31 PM
is possible that only happens with the statistics? I have compiled it this way:

./configure --enable-webserver --enable-amule-daemon --disable-monolithic

And the error appeared with  --enable-cas

In gentoo with GD re-compiled it solved, in Debian I don't know
Title: Re: aMule 20080228 compile crash
Post by: wuischke on March 02, 2008, 05:14:00 PM
Yes, this only happens with cas and should be fixed tomorrow. (Thanks to EastWind for his patch)
Title: Re: aMule 20080228 compile crash
Post by: GrayFox.i0n on March 02, 2008, 05:17:45 PM
Thanks! So, i will wait..... Tomorrow will be compiled and tested

Cheers!