Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204505 - media-video/mpeg4ip-1.5.0.1-r2 freezes in configure with nasm-2.00
Summary: media-video/mpeg4ip-1.5.0.1-r2 freezes in configure with nasm-2.00
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Olivier Crete (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-06 02:08 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2008-01-20 17:41 UTC (History)
0 users

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


Attachments
mpeg4ip-1.5.0.1-nasm-r.patch (mpeg4ip-1.5.0.1-nasm-r.patch,975 bytes, patch)
2008-01-06 02:09 UTC, Alexandre Rostovtsev (RETIRED)
Details | Diff
Patch for mpeg4ip-1.5.0.1 (nasm.patch,1.66 KB, patch)
2008-01-20 17:39 UTC, Veit Nachtmann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2008-01-06 02:08:06 UTC
mpeg4ip-1.5.0.1-r2 gets into an infinite loop during configure due to a badly written check for nasm. Namely:

# emerge mpeg4ip
[...]
checking for glib.h... yes
checking for nasm... true
checking nasm version...... nasm: error: unrecognised option `-r'
nasm: error: no input file specified
type `nasm -h' for help
util/testnasm.sh: line 8: test: =: unary operator expected
util/testnasm.sh: line 8: test: =: unary operator expected
util/testnasm.sh: line 8: test: =: unary operator expected
util/testnasm.sh: line 8: test: =: unary operator expected
util/testnasm.sh: line 8: test: =: unary operator expected
util/testnasm.sh: line 8: test: =: unary operator expected
util/testnasm.sh: line 8: test: =: unary operator expected
util/testnasm.sh: line 8: test: =: unary operator expected
[ ... and so forth to infinity]

The problem is that mpeg4ip checks for the nasm version by running "nasm -r". However, the "-r" option has been deprecated for a while, and does not exist in nasm-2. The correct solution is to call "nasm -v", which works for every version of nasm in portage (both 2.00 and 0.98.39)
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2008-01-06 02:09:12 UTC
Created attachment 140244 [details, diff]
mpeg4ip-1.5.0.1-nasm-r.patch

Patch to fix nasm detection
Comment 2 Steve Dibb (RETIRED) gentoo-dev 2008-01-09 18:25:01 UTC
Alex, thanks for the report and patch, fixed in -r3.
Comment 3 Veit Nachtmann 2008-01-20 17:39:00 UTC
Created attachment 141390 [details, diff]
Patch for mpeg4ip-1.5.0.1

since -r* are not in portage, and the patch packed with -r3 is not sufficient, this is.

(terribly sorry about the file: it's DOS! use dos2unix)
Comment 4 Veit Nachtmann 2008-01-20 17:41:01 UTC
damn, it fails with the following, should I open a new bug? (n00b at b.g.o.):

checking whether c++ compiler accepts -Wmissing-prototypes... no
checking whether c++ compiler accepts -Wno-char-subscripts... yes
checking whether c++ compiler accepts -Woverloaded-virtual... yes
checking whether c++ compiler accepts -Wno-unknown-pragmas... yes
checking whether c++ compiler accepts -Wno-deprecated... yes
checking whether c++ compiler accepts -Wformat=2... yes
./configure: line 25376: sdl-config: command not found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating mpeg4-2000.h
config.status: executing depfiles commands
cd ../.. && make  am--refresh
make[1]: Entering directory `/var/tmp/portage/media-libs/libmp4v2-1.5.0.1/work/mpeg4ip-1.5.0.1'
cd . && /bin/sh /var/tmp/portage/media-libs/libmp4v2-1.5.0.1/work/mpeg4ip-1.5.0.1/missing --run aclocal-1.9
aclocal:configure.in:644: warning: macro `AM_PATH_GTK_2_0' not found in library
cd . && /bin/sh /var/tmp/portage/media-libs/libmp4v2-1.5.0.1/work/mpeg4ip-1.5.0.1/missing --run autoconf
 cd . && /bin/sh /var/tmp/portage/media-libs/libmp4v2-1.5.0.1/work/mpeg4ip-1.5.0.1/missing --run automake-1.9 --foreign
configure.in:644: error: possibly undefined macro: AM_PATH_GTK_2_0
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
make[1]: *** [configure] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/media-libs/libmp4v2-1.5.0.1/work/mpeg4ip-1.5.0.1'
make: *** [../../aclocal.m4] Error 2
 *
 * ERROR: media-libs/libmp4v2-1.5.0.1 failed.
 * Call stack:
 *               ebuild.sh, line   46:  Called src_compile
 *             environment, line 2319:  Called die
 * The specific snippet of code:
 *       emake || diefunc "$FUNCNAME" "$LINENO" "$?" "emake failed"
 *  The die message:
 *   emake failed