bugGnash - The GNU Flash player - Bugs: bug #18061, cvs build fails: libavcodec

 
 

bug #18061: cvs build fails: libavcodec

Submitted by:  Mo X <mo_xx>
Submitted on:  Thu 19 Oct 2006 04:46:31 PM UTC  
 
Category: buildSeverity: 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.

 

(Jump to the original submission Jump to the original submission)

Sun 22 Oct 2006 12:02:35 PM UTC, comment #12:

I confirm all is working ok again now with last cvs, thanks.

al gomez <kellogs>
Sat 21 Oct 2006 02:14:37 PM UTC, comment #11:

I just checked in a patch where libgsm and libvorbisenc are found along with libavcodec. This should work automatically now in CVS.

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Sat 21 Oct 2006 09:48:15 AM UTC, comment #10:

:~$ gnash
gnash: error while loading shared libraries: /usr/local/lib/libgnashbackend.so.0: R_PPC_REL24 relocation at 0x0fd0bd68 for symbol `memset' out of range

doh! error again... but this time it does compile ok.

al gomez <kellogs>
Sat 21 Oct 2006 08:36:48 AM UTC, comment #9:

I confirm Adding -lgsm -lvorbisenc to /usr/lib/pkgconfig/libavcodec.pc Solves the problem here, with CVS as of today. thank you all and Mo X for your support.

al gomez <kellogs>
Fri 20 Oct 2006 08:12:10 PM UTC, comment #8:

There was already a bug report for Ubuntu:
https://launchpad.net/distros/ubuntu/+source/ffmpeg/+bug/53557
I added a comment.
Adding -lgsm -lvorbisenc to /usr/lib/pkgconfig/libavcodec.pc resolved the problem.

Mo X <mo_xx>
Fri 20 Oct 2006 07:56:49 PM UTC, comment #7:

I worked around the libavcodec problem by editting the libavcodec.pc and libavutil.pc pkg-config files to use the pic version. This looks like an Ubuntu or ffmpeg bug.
I now also have the undefined reference to gsm_destroy and some other functions. Maybe this is also a pkg-config problem, there is no libgsm in the command.

g++ -g -O2 -march=athlon64 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wl,--export-dynamic -o .libs/gnash gnash.o -L/usr/lib ./.libs/libgnashgui.so -L/usr/share/qt3/lib -L/usr/X11R6/lib ../libamf/.libs/libgnashamf.so ../backend/.libs/libgnashbackend.so ../server/.libs/libgnashserver.so ../server/asobj/.libs/libgnashasobjs.a ../libgeometry/.libs/libgnashgeo.so ../libbase/.libs/libgnashbase.so ./.libs/libgnashplayer.so /home/guido/src/gnash/gui/.libs/libgnashgui.so /home/guido/src/gnash/backend/.libs/libgnashbackend.so /home/guido/src/gnash/server/.libs/libgnashserver.so /home/guido/src/gnash/libamf/.libs/libgnashamf.so /home/guido/src/gnash/libbase/.libs/libgnashbase.so /usr/lib/libjpeg.so /usr/lib/libcurl.so -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv /usr/lib/libidn.so -lssl -lcrypto /usr/lib/libSDL.so /usr/lib/libasound.so /usr/lib/libartsc.so /usr/lib/libgthread-2.0.so /usr/lib/libesd.so /usr/lib/libaudiofile.so -laudio /usr/lib/libaa.so -lncurses -lslang -lpthread /usr/lib/libxml2.so /usr/lib/libgtkglext-x11-1.0.so /usr/lib/libgdkglext-x11-1.0.so /usr/lib/libpangox-1.0.so -lGLU /usr/lib/libGL.so -lXmu -lXt -lSM -lICE /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpangoft2-1.0.so -lXext -lXinerama -lXrandr -lXcursor -lXfixes /usr/lib/libpango-1.0.so /usr/lib/libcairo.so -lXrender -lpng12 -lfontconfig /usr/lib/libfreetype.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so -lavcodec_pic -ldts_pic -lz -ldl /usr/lib/libvorbis.so /usr/lib/libtheora.so -lavutil_pic /usr/lib/libogg.so -lboost_thread -lrt -lX11 -lXi -lm -Wl,--rpath -Wl,/usr/local/lib
../backend/.libs/libgnashbackend.so: undefined reference to `gsm_destroy'
../backend/.libs/libgnashbackend.so: undefined reference to `gsm_encode'
../backend/.libs/libgnashbackend.so: undefined reference to `gsm_create'
../backend/.libs/libgnashbackend.so: undefined reference to `gsm_decode'
../backend/.libs/libgnashbackend.so: undefined reference to `vorbis_encode_init'
../backend/.libs/libgnashbackend.so: undefined reference to `vorbis_encode_init_vbr'

Mo X <mo_xx>
Fri 20 Oct 2006 03:12:30 PM UTC, comment #6:

I wiped out my cvs directory and downloaded a fresh one.

keeps saying the same:

A bunch of warnings with different directories like this:
libtool: link: warning: `/usr/lib/gcc/powerpc-linux-gnu/4.0.3/../../..//libjpeg.la' seems to be moved

and A bunch of errors at the end with the same libgnashbackend.so:
../backend/.libs/libgnashbackend.so: undefined reference to `gsm_destroy'
collect2: ld returned 1 exit status

Im on powerpc, but I suspect it has nothing to do with this, as previous cvs versions did compile well.

al gomez <kellogs>
Fri 20 Oct 2006 03:01:08 PM UTC, comment #5:

My guess is the following:
Gnash tries to build the shared library libgnashbackend.so but links libavcodec.a which is not compiled with -fPIC (position independent code). There is also a libavcode_pic.a in /usr/lib that probably needs to be used for this. How to tell the build system which one to use?

Mo X <mo_xx>
Fri 20 Oct 2006 02:56:55 PM UTC, comment #4:

tried --with-pic parameter to configure and same results. sorry I dont understand more todo with fPIC. (the -fPIC param appears at configure (as YES) and at compilation phase).

al gomez <kellogs>
Fri 20 Oct 2006 01:51:15 PM UTC, comment #3:

by "same error" you mean the -fPIC suggestion ?
can you try adding -fPIC as suggested ?

Sandro Santilli <strk>
Project Member
Fri 20 Oct 2006 01:09:06 PM UTC, comment #2:

I've got the errors on same lib here:
../backend/.libs/libgnashbackend.so: undefined reference to .... collect2: ld returned 1 exit status
make[3]: *** [gnash] Error 1

I've got libavcodec-dev and libavcodec installed.
Ubuntu dapper.

al gomez <kellogs>
Fri 20 Oct 2006 10:10:43 AM UTC, comment #1:

do you have libavcodec.so somewhere?

Sandro Santilli <strk>
Project Member
Thu 19 Oct 2006 04:46:31 PM UTC, original submission:

Current cvs doesn't build for me, there seems to be a problem with libavcodec. This is on Kubuntu 6.06 AMD64 whith the libavcodec-dev package installed.

g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../lib64/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.0.3/crtbeginS.o .libs/render_handler_ogl.o .libs/render_handler_tri.o .libs/sound_handler_sdl.o -Wl,--rpath -Wl,/home/guido/src/gnash/libbase/.libs -Wl,--rpath -Wl,/home/guido/src/gnash/server/.libs -Wl,--rpath -Wl,/usr/local/lib -L/home/guido/src/gnash/libbase/.libs /usr/lib/libjpeg.so /usr/lib/libSDL.so -L/usr/lib -L/usr/share/qt3/lib /usr/lib/libpango-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libatk-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so -L/usr/X11R6/lib /usr/lib/libGL.so -lGLU -lavcodec -ldts -lz -ldl /usr/lib/libvorbis.so /usr/lib/libtheora.so -lavutil /usr/lib/libogg.so ../libbase/.libs/libgnashbase.so ../server/.libs/libgnashserver.so -L/home/guido/src/gnash/libamf/.libs -L/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../ -lboost_thread -lrt -lX11 -lXi -L/usr/lib/gcc/x86_64-linux-gnu/4.0.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../lib64 -L/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../.. -L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.0.3/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../lib64/crtn.o -march=athlon64 -Wl,-soname -Wl,libgnashbackend.so.0 -o .libs/libgnashbackend.so.0.0.0
/usr/bin/ld: /usr/lib/libavcodec.a(utils.o): relocation R_X86_64_32 against `first_avcodec' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libavcodec.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libgnashbackend.la] Error 1
make[2]: Leaving directory `/home/guido/src/gnash/backend'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/guido/src/gnash'
make: *** [all] Error 2

Mo X <mo_xx>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

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
Sun 22 Oct 2006 12:41:02 PM UTCstrkStatusReady For Test=>Fixed
  Open/ClosedOpen=>Closed
Sun 22 Oct 2006 11:41:42 AM UTCstrkStatusNone=>Ready For Test
  Assigned toNone=>rsavoye

Back to the top


Powered by Savane 3.1-cleanup1