Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379075 - media-sound/aqualung-0.9_beta11-r1 w/ media-video/libav-0.7.1 - dec_lavc.c:127:57: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
Summary: media-sound/aqualung-0.9_beta11-r1 w/ media-video/libav-0.7.1 - dec_lavc.c:12...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Daniel Pielmeier
URL: http://aqualung.factorial.hu/mantis/b...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-13 15:28 UTC by Vladimir
Modified: 2011-11-10 18:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
aqualung-0.9_beta11-r1-build.log (aqualung-0.9_beta11-r1-build.log,19.15 KB, text/plain)
2011-08-13 15:28 UTC, Vladimir
Details
aqualung-0.9_beta11-r1-emerge.info (aqualung-0.9_beta11-r1-emerge.info,5.67 KB, text/plain)
2011-08-13 15:29 UTC, Vladimir
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir 2011-08-13 15:28:30 UTC
Created attachment 283187 [details]
aqualung-0.9_beta11-r1-build.log

Hello!
  The problems is that aqualung-0.9_beta11-r1 refuses to build. The build log and 'emerge --info' output are attached.
Comment 1 Vladimir 2011-08-13 15:29:11 UTC
Created attachment 283189 [details]
aqualung-0.9_beta11-r1-emerge.info

'emerge --info' output
Comment 2 Daniel Pielmeier gentoo-dev 2011-08-15 09:33:02 UTC
Can you please add the following command to the ebuild:
sed -i -e 's/CODEC_TYPE_AUDIO/AVMEDIA_TYPE_AUDIO/' src/decoder/dec_lavc.c

Place it within the src_prepare function before eautoreconf. Test if this modifictions work in a local overlay and report back here.
Comment 3 Daniel Pielmeier gentoo-dev 2011-08-16 18:41:28 UTC
I have tried the above replacement myself with ffmpeg-0.7.3 and libav-0.7.1. It builds fine with ffmpeg but libav fails at linking stage with:

i686-pc-linux-gnu-gcc  -march=native -O2 -pipe -fomit-frame-pointer  -Wall  -DAQUALUNG_SKINDIR=\"/usr/share/aqualung/skin\" -DAQUALUNG_LOCALEDIR=\"/usr/share/locale\" -DAQUALUNG_DATADIR=\"/usr/share/aqualung\" -D_GNU_SOURCE  -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu -o aqualung about.o build_store.o cdda.o cddb_lookup.o cd_ripper.o core.o cover.o export.o ext_title_format.o file_info.o gui_main.o httpc.o ifp_device.o loop_bar.o metadata.o metadata_api.o metadata_ape.o metadata_flac.o metadata_id3v1.o metadata_id3v2.o metadata_ogg.o music_browser.o options.o playlist.o plugin.o podcast.o ports.o rb.o search.o search_playlist.o segv.o skin.o store_cdda.o store_file.o store_podcast.o transceiver.o trashlist.o utils.o utils_gui.o volume.o  decoder/libdecoder.a encoder/libencoder.a -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng14 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -pthread -lgthread-2.0 -lrt -lglib-2.0   -lxml2 -lz -lm  -llrdf   -lsamplerate   -lasound     -lsndfile   -lFLAC -logg -lvorbis -lvorbisfile -lwavpack -lm   -loggz -logg -lspeex -lmad -lmodplug   -lmpcdec -lstdc++ -lmac -lstdc++ -lavformat -lavcodec -lavutil -lz -logg -lvorbis -lvorbisenc -lmp3lame -lcdio_paranoia -lcdio_cdda -lcdio   -lcddb     -lz -lbz2 -llua 
decoder/libdecoder.a(libdecoder_a-dec_lavc.o): In function `decode_lavc':
dec_lavc.c:(.text+0x53b): undefined reference to `avcodec_decode_audio2'
collect2: ld returned 1 exit status
make[3]: *** [aqualung] Error 1
make[3]: Leaving directory `/media/system/tmp/portage/media-sound/aqualung-0.9_beta11-r1/work/aqualung-0.9beta11/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/media/system/tmp/portage/media-sound/aqualung-0.9_beta11-r1/work/aqualung-0.9beta11/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/system/tmp/portage/media-sound/aqualung-0.9_beta11-r1/work/aqualung-0.9beta11'
make: *** [all] Error 2

It looks like avcodec_decode_audio2 has been removed from libav-0.7.1 while ffmpeg-0.7.3 still has it but marked as deprecated.

Aqualung needs to be patched to use avcodec_decode_audio3 but I am not able to fix this myself. I will report this issue upstream.
Comment 4 Vladimir 2011-10-28 20:10:55 UTC
(In reply to comment #3)
> 
> Aqualung needs to be patched to use avcodec_decode_audio3 but I am not able to
> fix this myself. I will report this issue upstream.
  So has it been reported? I cannot find in in Aqualung's bugzilla, but this bugzilla doesn't seem to be active at all.
Comment 5 Daniel Pielmeier gentoo-dev 2011-10-28 20:16:40 UTC
(In reply to comment #4)
>   So has it been reported?

It has been reported http://aqualung.factorial.hu/mantis/bug_view_page.php?bug_id=0000177

> I cannot find in in Aqualung's bugzilla, but this bugzilla doesn't seem to be active at all.

Patience is a virtue!
Comment 6 Vladimir 2011-10-28 20:26:41 UTC
(In reply to comment #5)
> (In reply to comment #4)
> >   So has it been reported?
> 
> It has been reported
> http://aqualung.factorial.hu/mantis/bug_view_page.php?bug_id=0000177
> 
> > I cannot find in in Aqualung's bugzilla, but this bugzilla doesn't seem to be active at all.
> 
> Patience is a virtue!
  Thanks a lot! :)
  For some unknown reason, the search in Aqualung bugzilla give me only very very old bugs. But now I'll watch this one.

  Regards,
    Vladimir
Comment 7 Alexis Ballier gentoo-dev 2011-11-10 12:19:05 UTC
committed a patch to fix this
Comment 8 Alexis Ballier gentoo-dev 2011-11-10 12:19:55 UTC
(In reply to comment #7)
> committed a patch to fix this

i dont have an account on their bug tracker, could someone plz post the patch there ?
Comment 9 Daniel Pielmeier gentoo-dev 2011-11-10 18:31:22 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > committed a patch to fix this
> 
> i dont have an account on their bug tracker, could someone plz post the patch
> there ?

Thanks Alexis, I will attach the patch to the upstream bug tracker.