Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174716 - media-libs/mlt-0.2.2 does not compile with media-sound/sox-13.0.0
Summary: media-libs/mlt-0.2.2 does not compile with media-sound/sox-13.0.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL: http://qa.mandriva.com/show_bug.cgi?i...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-15 20:57 UTC by Jabari R. Roberts
Modified: 2007-04-26 16:05 UTC (History)
0 users

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


Attachments
emerge --info (Emerge_Info_20070415T2100.txt,5.10 KB, text/plain)
2007-04-15 21:01 UTC, Jabari R. Roberts
Details
Build log (build.log,22.37 KB, text/plain)
2007-04-15 21:01 UTC, Jabari R. Roberts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jabari R. Roberts 2007-04-15 20:57:43 UTC
There seems to be an ABI change with SoX 13.0.0, as the compilation of mlt looks for two variables in filter_sox.c but only gets one:

*****************
make[2]: Entering directory `/var/tmp/portage/media-libs/mlt-0.2.2/work/mlt-0.2.2/src/modules/sox'
cc -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall -fPIC -DPIC    -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -Wall -fPIC -DPIC    -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -Wall -fPIC -DPIC    -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread `libst-config --cflags` -I../../    -c -o factory.o factory.c
cc -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall -fPIC -DPIC    -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -Wall -fPIC -DPIC    -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -Wall -fPIC -DPIC    -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread `libst-config --cflags` -I../../    -c -o filter_sox.o filter_sox.c
filter_sox.c:232:39: error: macro "ST_SIGNED_WORD_TO_SAMPLE" requires 2 arguments, but only 1 given
filter_sox.c: In function ‘filter_get_audio’:
filter_sox.c:232: error: ‘ST_SIGNED_WORD_TO_SAMPLE’ undeclared (first use in this function)
filter_sox.c:232: error: (Each undeclared identifier is reported only once
filter_sox.c:232: error: for each function it appears in.)
filter_sox.c:323:42: error: macro "ST_SAMPLE_TO_SIGNED_WORD" requires 2 arguments, but only 1 given
filter_sox.c:323: error: ‘ST_SAMPLE_TO_SIGNED_WORD’ undeclared (first use in this function)
make[2]: *** [filter_sox.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/mlt-0.2.2/work/mlt-0.2.2/src/modules/sox'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/mlt-0.2.2/work/mlt-0.2.2/src/modules'
make: *** [all] Error 1

!!! ERROR: media-libs/mlt-0.2.2 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  mlt-0.2.2.ebuild, line 65:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/media-libs/mlt-0.2.2/temp/build.log'.
*****************

Some Googling turned up a couple of links:

http://qa.mandriva.com/show_bug.cgi?id=29207
http://www.google.com/search?q=cache:A5NnMwbADNEJ:rpmfind.net/linux/RPM/mandriva/devel/2007.1/x86_64/media/main/release/lib64mlt0.2.2-0.2.2-9mdv2007.1.x86_64.html+Mandriva,+bug+29207&hl=en&ct=clnk&cd=1&gl=us

The first link (it's also in the URL field for this bug) shows that there was a bug logged for this same problem in Mandriva, and the second link shows it was integrated as a patch.  Unfortunately, I can't find the specific patch that solves the problem.

Emerging with
USE="-sox" emerge mlt
compiles fine (see "Steps to Reproduce" for USEflags used).

Reproducible: Always

Steps to Reproduce:
1. Emerge mlt with the following config:
[ebuild  N    ] media-libs/mlt-0.2.2  USE="dv gtk jack lame mmx ogg quicktime sdl sox theora vorbis xine xml" 0 kB
Actual Results:  
Compile fails.

Expected Results:  
Compile succeeds.
Comment 1 Jabari R. Roberts 2007-04-15 21:01:12 UTC
Created attachment 116334 [details]
emerge --info
Comment 2 Jabari R. Roberts 2007-04-15 21:01:49 UTC
Created attachment 116336 [details]
Build log
Comment 3 Alexis Ballier gentoo-dev 2007-04-26 16:05:21 UTC
thanks for reporting, it's fixed in 0.2.3 that is now in cvs