Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10970 - Problem compiling mjpegtools
Summary: Problem compiling mjpegtools
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: phoen][x
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-19 13:16 UTC by SandMan
Modified: 2003-02-09 17:28 UTC (History)
4 users (show)

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


Attachments
New ebuild for mjpegtools (mjpegtools-1.6.1.ebuild,2.38 KB, text/plain)
2003-01-06 21:25 UTC, Mathew Alexander (Marsupilami23)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SandMan 2002-11-19 13:16:59 UTC
/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc -mcpu=i686 -march=i686 -
march=i686 -mcpu=i686 -O3 -pipe -Wall -Wunused -o y4mcolorbars y4mcolorbars.o 
colorspace.o subsample.o -L../utils -lmjpegutils 
./.libs/liblavplay.so: undefined reference to `SDL_Quit' 
./.libs/liblavplay.so: undefined reference to `SDL_WM_SetCaption' 
./.libs/liblavplay.so: undefined reference to `SDL_CreateYUVOverlay' 
./.libs/liblavplay.so: undefined reference to `SDL_LockYUVOverlay' 
./.libs/liblavplay.so: undefined reference to `SDL_EventState' 
./.libs/liblavplay.so: undefined reference to `SDL_UnlockSurface' 
./.libs/liblavplay.so: undefined reference to `SDL_LockSurface' 
./.libs/liblavplay.so: undefined reference to `SDL_DisplayYUVOverlay' 
./.libs/liblavplay.so: undefined reference to `SDL_UpdateRect' 
./.libs/liblavplay.so: undefined reference to `SDL_Init' 
./.libs/liblavplay.so: undefined reference to `SDL_GetError' 
./.libs/liblavplay.so: undefined reference to `SDL_UnlockYUVOverlay' 
./.libs/liblavplay.so: undefined reference to `SDL_FreeYUVOverlay' 
./.libs/liblavplay.so: undefined reference to `SDL_SetVideoMode' 
collect2: ld returned 1 exit status 
make[2]: *** [divxdec] Error 1 
make[2]: *** Se espera a que terminen otras tareas.... 
i686-pc-linux-gnu-gcc -mcpu=i686 -march=i686 -march=i686 -mcpu=i686 -O3 -pipe -
Wall -Wunused -o y4mcolorbars y4mcolorbars.o colorspace.o subsample.o -
L/var/tmp/portage/mjpegtools-1.6.0-r4/work/mjpegtools-1.6.0/utils -lmjpegutils 
make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.0-
r4/work/mjpegtools-1.6.0/lavtools' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.0-
r4/work/mjpegtools-1.6.0' 
make: *** [all] Error 2 

!!! ERROR: media-video/mjpegtools-1.6.0-r4 failed. 
!!! Function src_compile, Line -97, Exitcode 2 
!!! (no error message) 


SOLUTION:
Apply this patch :  http://www.stillhq.com/jpeg2mpeg/make-compile.diff
Comment 1 phoen][x 2002-11-25 03:32:36 UTC
Heyas,

could you paste an "emerge info" please?

-phoen][x-
Comment 2 phoen][x 2002-11-25 08:49:08 UTC
Got an idea, mkennedy?

-phoen][x-
Comment 3 SandMan 2002-11-26 10:39:01 UTC
Portage 2.0.44 (default-x86-1.4, gcc-3.2, glibc-2.2.5-r6,2.2.5-r7)
=================================================================
System uname: 2.4.19-gentoo-r9 i686 Celeron (Mendocino)
USE="x86 oss 3dnow apm arts avi crypt cups encode gif jpeg kde libg++ libwww 
mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms 
xv zlib gdbm berkdb slang readline svga tcltk java X sdl gpm tcpd pam ssl perl 
python esd imlib oggvorbis gnome gtk qt motif opengl mozilla ldap cdr"
ARCH="x86"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -mcpu=i686 -O3 -pipe"
CXXFLAGS="-march=i686 -mcpu=i686 -O3 -pipe"
ACCEPT_KEYWORDS="x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME=""
JAVA_HOME="/opt/blackdown-jre-1.3.1"
AUTOCLEAN="no"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
Comment 4 Ian Smith 2002-11-30 15:27:59 UTC
r6 still fails here
Comment 5 Ian Smith 2002-12-10 06:18:53 UTC
Is there a patched ebuild in the pipeline?
Comment 6 Ian Smith 2002-12-14 07:02:53 UTC
Suddenly worked today - avifile update ???????  Some other package at any rate.
Comment 7 Peter Ruskin 2002-12-27 21:04:41 UTC
1.6.0-r5 fails for me with:
lav_io.c: In function `check_DV2_input':
lav_io.c:1385: too many arguments to function `dv_decoder_new'
lav_io.c:1415: warning: implicit declaration of function `dv_decoder_free'

-r5 and -r7 both fail because they can't find -ldirectfb - I'm not installing
directfb because it breaks too much stuff.
Comment 8 Mathew Alexander (Marsupilami23) 2003-01-06 17:51:13 UTC
I am having some problems as well installing: 

lav_io.c:1385: too many arguments to function `dv_decoder_new'
lav_io.c:1415: warning: implicit declaration of function `dv_decoder_free'
make[2]: *** [lav_io.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .libs/editlist.lo editlist.lo
Comment 9 Mathew Alexander (Marsupilami23) 2003-01-06 21:25:07 UTC
Created attachment 7033 [details]
New ebuild for mjpegtools

Just renamed the latest ebuild media-video/mjpegtools-1.6.0-r7.ebuild to
mjpegtools-1.6.1.ebuild.
Comment 10 Mathew Alexander (Marsupilami23) 2003-01-06 21:25:46 UTC
Mines fixed!
Comment 11 Martin Holzer (RETIRED) gentoo-dev 2003-01-08 08:37:41 UTC
-r5 and -r6 compiles fine on my gcc 2.95
-r7 fails with   avilib.c -Wp,-MD,.deps/avilib.TPlo  -fPIC -DPIC -o avilib.o
make[2]: *** [lav_io.lo] Error 1
make[2]: *** Waiting for unfinished jobs....

-r5 fails on my gcc 3.2.1
-r6 and -r7 compiles find on my gcc 3.2.1
Comment 12 Andreas Kotowicz 2003-01-10 15:25:57 UTC
-r5 failed on my gcc 3.2.1 system aswell. -r7 works fine.
Comment 13 Szathmari Gabor 2003-01-13 01:16:32 UTC
ch=i686 -Wall -Wunused -c editlist.c -MT editlist.lo -MD -MP -MF
.deps/editlist.TPlo -o editlist.o >/dev/null 2>&1
lav_io.c: In function `check_DV2_input':
lav_io.c:1385: too many arguments to function `dv_decoder_new'
lav_io.c:1415: warning: implicit declaration of function `dv_decoder_free'
make[2]: *** [lav_io.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .libs/editlist.lo editlist.lo
make[2]: Leaving directory
`/var/tmp/portage/mjpegtools-1.6.0-r5/work/mjpegtools-1.6.0/lavtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/mjpegtools-1.6.0-r5/work/mjpegtools-1.6.0'
make: *** [all] Error 2

!!! ERROR: media-video/mjpegtools-1.6.0-r5 failed.


1.6.0-r7 works well, please unmask it!!!
Comment 14 Martin Holzer (RETIRED) gentoo-dev 2003-01-13 06:03:44 UTC
-r7 should only be unmasked in gcc3 profile
Comment 15 Tobias Sager 2003-01-25 06:48:14 UTC
-r5, -r6, -r7 does not work here.

The posted ebuild for 1.6.1 does! Why not include  it in portage?


# emerge info
Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="3dnow acpi alsa apm avi crypt dga directfb dvd encode fbcon gd gif gpm gtk gtkhtml imlib ipv6 java jpeg mmx motif mozilla mpeg ncurses nls opengl oss pam perl png qt quicktime readline samba sse ssl svga tiff truetype X xml xml2 xmms zlib x86"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CXXFLAGS=""
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 16 Martin Holzer (RETIRED) gentoo-dev 2003-02-09 17:28:54 UTC
-r5 is now gcc 2.95 default
-r7 is now masked as stable (should work with all gcc 3)
1.6.1 is masked in cvs now