GNOME Bugzilla – Bug 140994
[mplex] configure failure
Last modified: 2004-12-22 21:47:04 UTC
[...] checking for mjpegtools >= 1.6.1.93... yes checking MPLEX_CFLAGS... -I/usr/local/include/mjpegtools -I/usr/local/include/mjpegtools/mpeg2enc -I/usr/local/include/mjpegtools/mplex checking MPLEX_LIBS... -L/usr/local/lib -lmjpegutils checking interact.hpp usability... yes checking interact.hpp presence... yes checking for interact.hpp... yes checking for valid mplex objects... no configure: *** These plugins will not be built: mplex [...] In the config.log file : [...] configure:41475: checking for mjpegtools >= 1.6.1.93 configure:41479: result: yes configure:41483: checking MPLEX_CFLAGS configure:41486: result: -I/usr/local/include/mjpegtools -I/usr/local/include/mjpegtools/mpeg2enc -I/usr/local/include/mjpegtools/mplex configure:41489: checking MPLEX_LIBS configure:41492: result: -L/usr/local/lib -lmjpegutils configure:41531: checking interact.hpp usability configure:41544: g++ -c -s -O3 -march=i686 -I/usr/local/include/mjpegtools -I/usr/local/include/mjpegtools/mpeg2enc -I/usr/local/include/mjpegtools/mplex conftest.cc >&5 configure:41547: $? = 0 configure:41550: test -s conftest.o configure:41553: $? = 0 configure:41563: result: yes configure:41567: checking interact.hpp presence configure:41578: g++ -E -I/usr/local/include/mjpegtools -I/usr/local/include/mjpegtools/mpeg2enc -I/usr/local/include/mjpegtools/mplex conftest.cc configure:41584: $? = 0 configure:41603: result: yes configure:41639: checking for interact.hpp configure:41646: result: yes configure:41655: checking for valid mplex objects configure:41699: g++ -o conftest -s -O3 -march=i686 -I/usr/local/include/mjpegtools -I/usr/local/include/mjpegtools/mpeg2enc -I/usr/local/include/mjpegtools/mplex conftest.cc -L/usr/local/lib -lmjpegutils -lmplex2 -lm >&5 configure:41702: $? = 0 configure:41704: ./conftest INFO: [conftest] Found 0 audio streams and 0 video streams INFO: [conftest] Selecting generic MPEG1 output profile INFO: [conftest] Multiplexing video program stream! ./configure: line 1: 17938 Segmentation fault ./conftest$ac_exeext configure:41707: $? = 139 configure: program exited with status 139 configure: failed program was: [...] I have mjpegtools 1.6.2 installed.
Does mplex itself run?
Yes : # mplex mjpegtools mplex-2 version 1.6.2 (2.2.3) Usage: mplex [params] -o <output filename pattern> <input file>... %d in the output file name is by segment count [...]
Also if you try to mux an audio and video file into a system stream? ;).
# mplex test.mp2 /usr/local/share/xine/skins/xine_logo.mpv -o test.mpg INFO: [mplex] mplex version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $) INFO: [mplex] File test.mp2 looks like an MPEG Audio stream. INFO: [mplex] File /usr/local/share/xine/skins/xine_logo.mpv looks like an MPEG Video stream. INFO: [mplex] Found 1 audio streams and 1 video streams INFO: [mplex] Selecting generic MPEG1 output profile INFO: [mplex] Multiplexing video program stream! [...]
*** Bug 140969 has been marked as a duplicate of this bug. ***
Are you sure it is the same problem ?
It seems like the same problem. Can you give some details on architecture, OS etc.? Maybe glibc & kernel versions?
LFS on i686 kernel 2.6.5 glibc 2.2.5
Could you retry with glibc-2.3.x? I know there's a memory alignment bug in several glibc-2.2.x versions that affected mjpegtools. If 2.3.x works, the bug might not have been fully fixed after all, in which case I'd have to forward this to the mjpegtools team (which includes me as well, but it's not GStreamer).
Ok I will try to update my glibc.
Oh, and something else - I noticed your bug report in mjpegtools and continued on their mailinglist, can you provide a backtrace of the segfault?
How can I execute the conftest without the configure ?
Copy the code belonging to it from configure.ac (search for "mplex") to a separate .cpp file, compile it using "g++ -o test test.cpp $(pkg-config --cflags --libs mjpegtools)", then run it.
(gdb) run Starting program: /tmp/conftest INFO: [conftest] Found 0 audio streams and 0 video streams INFO: [conftest] Selecting generic MPEG1 output profile INFO: [conftest] Multiplexing video program stream! Program received signal SIGSEGV, Segmentation fault. 0x401da2fc in free () from /lib/libc.so.6 (gdb) bt
+ Trace 47018
Created attachment 33729 [details] [review] patch fixing the configure check This patch fixes it for me, should I apply it Ronald?
Thanks for fixing, although I still don't understand it. ;).
*** Bug 151287 has been marked as a duplicate of this bug. ***
i had the same problem twice, for mplex and its twin (which test is close to this one) shouldn't the 2 case be fixed ? (i see only one affected by this patch)