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

 
 

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

Submitted by:  Claudio Fontana <sick_soul>
Submitted on:  Thu 09 Mar 2006 07:23:12 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Rob Savoye <rsavoye>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 09 Mar 2006 07:38:04 PM UTCrsavoyeStatusNone=>Fixed
  Assigned toNone=>rsavoye
  Open/ClosedOpen=>Closed
Thu 09 Mar 2006 07:23:12 PM UTCsick_soulAttached File-=>Added config.log, #3484

Back to the top


Powered by Savane 3.1-cleanup1