bugGnash - The GNU Flash player - Bugs: bug #16045, gnash cvs (2006-03-09) build...

 
 

bug #16045: gnash cvs (2006-03-09) build failure

Submitter:  Claudio Fontana <sick_soul>
Submitted:  Thu 09 Mar 2006 07:23:12 PM UTC
   
 
Category:  None Severity:  3 - Normal
Release:  None Status:  Fixed
Privacy:  Public Assigned to:  rsavoye
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 09 Mar 2006 07:38:04 PM UTC, comment #1: 

I just checked in a fix for this. $(ZLIB_LIBS) needed to be added to the linker flags.

Rob Savoye <rsavoye>
Group administrator
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


Claudio Fontana <sick_soul>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #1533:  config.log added by sick_soul (132KiB - application/octet-stream - Configuration log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-03-09 rsavoye StatusNone Fixed
    Assigned toNone rsavoye
    Open/ClosedOpen Closed
2006-03-09 sick_soul Attached File- Added config.log, #3484

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code