Thu 09 Mar 2006 07:23:12 PM UTC, original submission:
Hello,
I get a build failure on GNU/Linux x86/32 (kernel 2.6.14), gcc-3.3.4, ld 2.15.92.0.2, aclocal and automake 1.9.4, autoconf 2.59, make 3.80.
Buildin the backend module fails, because during linking the z library is not used to resolve some missing symbols:
make[2]: Entering directory `/home/claudio/src/gnash/gnash/backend'
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -ljpeg -lpng -logg -lSDL -L/usr/local/lib -lSDL_mixer -lGL -lGLU -L/usr/X11R6/lib -lpthread -o gnash -module -avoid-version -no-undefined gnash.o -ljpeg -lpng -logg -lSDL -L/usr/local/lib -lSDL_mixer -lGL -lGLU -L/usr/X11R6/lib -lpthread ../backend/libgnashbackend.la ../server/libgnashserver.la ../server/libgnashasobjs.la ../libgeometry/libgnashgeo.la ../libbase/libgnashbase.la -lSDL_mixer -lrt
g++ -g -O2 -o .libs/gnash gnash.o -L/usr/local/lib -L/usr/X11R6/lib /usr/lib/libogg.so /usr/lib/libSDL.so /usr/lib/libGL.so ../backend/.libs/libgnashbackend.so ../server/.libs/libgnashserver.so ../server/.libs/libgnashasobjs.so ../libgeometry/.libs/libgnashgeo.so ../libbase/.libs/libgnashbase.so /usr/local/lib/libSDL_mixer.so -L/usr/i486-slackware-linux/bin -L/usr/i486-slackware-linux/lib -L/usr/lib/gcc-lib/i486-slackware-linux/../../../i486-slackware-linux/lib -L/usr/lib/gcc-lib/i486-slackware-linux/../.. -ljpeg -lpng -lGLU -L/usr/lib -lrt -ldl -lX11 -lXext -lpthread -Wl,--rpath -Wl,/home/claudio/tmp/lib -Wl,--rpath -Wl,/usr/lib/.
/usr/lib/gcc-lib/i486-slackware-linux/../../libpng.so: undefined reference to `deflate'
../server/.libs/libgnashserver.so: undefined reference to `inflate'
../server/.libs/libgnashserver.so: undefined reference to `inflateInit_'
/usr/lib/gcc-lib/i486-slackware-linux/../../libpng.so: undefined reference to `crc32'
/usr/lib/gcc-lib/i486-slackware-linux/../../libpng.so: undefined reference to `deflateInit2_'
../libbase/.libs/libgnashbase.so: undefined reference to `inflateReset'
/usr/lib/gcc-lib/i486-slackware-linux/../../libpng.so: undefined reference to `deflateReset'
../server/.libs/libgnashserver.so: undefined reference to `inflateEnd'
/usr/lib/gcc-lib/i486-slackware-linux/../../libpng.so: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
make[2]: *** [gnash] Error 1
make[2]: Leaving directory `/home/claudio/src/gnash/gnash/backend'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/claudio/src/gnash/gnash'
make: *** [all] Error 2
Hand editing
Makefile
backend/Makefile
utilities/Makefile
adding -lz -lm to PNG_LIBS works around most problems.
Makefiles contain both LIBPNG and PNG_LIBS, of which only the second is actually used. The contents of the first variable seem correct instead. Maybe the source of the problem is in macros/png.m4?
However, even with these corrections the story ends for me in backend/ with:
Making all in backend
make[2]: Entering directory `/home/claudio/src/gnash/gnash/backend'
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -ljpeg -lpng -lz -lm -logg -lSDL -L/usr/local/lib -lSDL_mixer -lGL -lGLU -L/usr/X11R6/lib -lpthread -o gnash -module -avoid-version -no-undefined -z gnash.o -ljpeg -lpng -lz -lm -logg -lSDL -L/usr/local/lib -lSDL_mixer -lGL -lGLU -L/usr/X11R6/lib -lpthread ../backend/libgnashbackend.la ../server/libgnashserver.la ../server/libgnashasobjs.la ../libgeometry/libgnashgeo.la ../libbase/libgnashbase.la -lSDL_mixer -lrt
g++ -g -O2 -o .libs/gnash -z gnash.o -L/usr/local/lib -L/usr/X11R6/lib -lz -lm /usr/lib/libogg.so /usr/lib/libSDL.so /usr/lib/libGL.so ../backend/.libs/libgnashbackend.so ../server/.libs/libgnashserver.so ../server/.libs/libgnashasobjs.so ../libgeometry/.libs/libgnashgeo.so ../libbase/.libs/libgnashbase.so /usr/local/lib/libSDL_mixer.so -L/usr/i486-slackware-linux/bin -L/usr/i486-slackware-linux/lib -L/usr/lib/gcc-lib/i486-slackware-linux/../../../i486-slackware-linux/lib -L/usr/lib/gcc-lib/i486-slackware-linux/../.. -ljpeg -lpng -lGLU -L/usr/lib -lrt -ldl -lX11 -lXext -lpthread -Wl,--rpath -Wl,/home/claudio/tmp/lib -Wl,--rpath -Wl,/usr/lib/.
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:115: undefined reference to `main'
collect2: ld returned 1 exit status
make[2]: *** [gnash] Error 1
make[2]: Leaving directory `/home/claudio/src/gnash/gnash/backend'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/claudio/src/gnash/gnash'
make: *** [all] Error 2
I attach my config.log .
CLaudio
|