Thanks Michal.

It turns out that the error is due to a change in gcc (4.5) that ships with 
Ubuntu, see here:

https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition

I explicitly added the library to the makefile in cinelerra source (attached). 
This issue is in the source of Cinelerra, and I think the patch should be 
applied to the main tree (previous testing, of course).

Even with the patch, I still have errors in compilation of Cinelerra under 
Oneiric. This time the error message is:


playback3d.o: In function `Playback3D::do_mask_sync(Playback3DCommand*)':
playback3d.C:(.text+0x1fd1): undefined reference to `gluNewTess'
playback3d.C:(.text+0x1ff4): undefined reference to `gluTessProperty'
playback3d.C:(.text+0x2012): undefined reference to `gluTessCallback'
playback3d.C:(.text+0x2030): undefined reference to `gluTessCallback'
playback3d.C:(.text+0x204b): undefined reference to `gluTessCallback'
playback3d.C:(.text+0x2066): undefined reference to `gluTessCallback'
playback3d.C:(.text+0x2114): undefined reference to `gluTessBeginPolygon'
playback3d.C:(.text+0x2123): undefined reference to `gluTessBeginContour'
playback3d.C:(.text+0x272b): undefined reference to `gluTessVertex'
playback3d.C:(.text+0x2754): undefined reference to `gluTessEndContour'
playback3d.C:(.text+0x2763): undefined reference to `gluTessEndPolygon'
playback3d.C:(.text+0x27ff): undefined reference to `gluDeleteTess'
collect2: ld returned 1 exit status

Suggestions?

Thanks again,
Nicola

 

> From: michal.fa...@gmail.com
> Subject: Re: [CinCV] Compiling Cinelerra on Ubuntu Oneiric (11.10)
> To: cinelerra@skolelinux.no
> Date: Fri, 21 Oct 2011 07:55:50 +0200
> 
> It seems that you need to add "-lmp3lame" to the linker command line.
> A similar issue is described here:
> 
> http://stackoverflow.com/questions/3476869/g-linker-usr-lib-libgl-so-1-could-not-read-symbols-invalid-operation
> 
> Michal
> 
> On 21 October 2011 07:15, Nicola Ferralis <feran...@hotmail.com> wrote:
> > Hi,
> >
> > thanks for the response, the error was due to an improper use of a flag
> > during compilation. I still have issues though (and this has been going on
> > for a while in my builds for Oneiric), which seem related to libmp3lame:
> >
> > Here's the error log:
> >
> > /usr/bin/ld: filempeg.o: undefined reference to symbol
> > 'lame_encode_buffer_float'
> > /usr/bin/ld: note: 'lame_encode_buffer_float' is defined in DSO
> > /usr/lib/libmp3lame.so.0 so try adding it to the linker command line
> > /usr/lib/libmp3lame.so.0: could not read symbols: Invalid operation
> > collect2: ld returned 1 exit status
> >
> > Did anybody encounter this error? Any suggestions on how to deal with this?
> >
> > Thanks again,
> > Nicola
> >
> >
> >
> >
> >> From: michal.fa...@gmail.com
> >> Subject: Re: [CinCV] Compiling Cinelerra on Ubuntu Oneiric (11.10)
> >> To: cinelerra@skolelinux.no
> >> Date: Thu, 20 Oct 2011 07:31:52 +0200
> >>
> >> Hi Nicola,
> >>
> >> try to look inside the config.log ...there should be more details
> >> about the problem or send the whole file here.
> >>
> >> Michal
> >>
> >> On 20 October 2011 06:02, Nicola Ferralis <feran...@hotmail.com> wrote:
> >> > Hi,
> >> >
> >> > I keep having compilation issues of my ubuntu packages, in what seems a
> >> > configuration issue. Essentially the error message in the compile log
> >> > looks
> >> > like this:
> >> >
> >> > checking whether the C compiler works... no
> >> > configure: error: in `/build/buildd/cinelerra-2.1.5':
> >> > configure: error: C compiler cannot create executables
> >> >
> >> >
> >> > Ubuntu 11.10 uses gcc 4.6, I wonder if anybody experienced similar
> >> > issues
> >> > with it.
> >> >
> >> > Thanks for any insight,
> >> > Nicola
> >> >
> >> >
> >>
> >> _______________________________________________
> >> Cinelerra mailing list
> >> Cinelerra@skolelinux.no
> >> https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra
> >
> 
> _______________________________________________
> Cinelerra mailing list
> Cinelerra@skolelinux.no
> https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra
                                          
diff -Nru cinelerra.orig//cinelerra/Makefile.am cinelerra/cinelerra/Makefile.am
--- cinelerra.orig//cinelerra/Makefile.am	2010-11-24 18:18:03.000000000 -0500
+++ cinelerra/cinelerra/Makefile.am	2011-10-22 18:58:12.395221105 -0400
@@ -683,7 +683,7 @@
 	$(XIPH_LIBS) \
 	$(A52DEC_LIBS) \
 	$(OPENEXR_LIBS) \
-	-lsndfile \
+	-lsndfile -lmp3lame\
 	-lpng -ljpeg -ltiff -lz \
 	$(SOUND_LDFLAGS) \
 	$(FIREWIRE_LDFLAGS) \

Reply via email to