Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32801 - mpeg-tools-1.5b doesn't compile
Summary: mpeg-tools-1.5b doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-05 08:58 UTC by Dennis Nienhüser (RETIRED)
Modified: 2003-11-07 10:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Nienhüser (RETIRED) gentoo-dev 2003-11-05 08:58:01 UTC
mpeg-tools-1.5b doesn't compile, giving the error message

gcc -o ppmtoeyuv ppmtoeyuv.c
ppmtoeyuv.c: In function `main':
ppmtoeyuv.c:69: warning: return type of `main' is not `int'
gcc -O -g -Wall -W -Wreturn-type -Wunused -Wmissing-prototypes     eyuvtoppm.c 
 -o eyuvtoppm
eyuvtoppm.c:47: warning: return type of `main' is not `int'
eyuvtoppm.c: In function `main':
eyuvtoppm.c:51: warning: implicit declaration of function `strcmp'
eyuvtoppm.c:62: warning: implicit declaration of function `strcpy'
gcc -O -g -Wall -W -Wreturn-type -Wunused -Wmissing-prototypes     eyuvtojpeg.c
  -o eyuvtojpeg
eyuvtojpeg.c:47: warning: return type of `main' is not `int'
eyuvtojpeg.c: In function `main':
eyuvtojpeg.c:52: warning: implicit declaration of function `strcmp'
eyuvtojpeg.c:63: warning: implicit declaration of function `strcpy'
gcc -o jmovie2jpeg jmovie2jpeg.c
jmovie2jpeg.c: In function `main':
jmovie2jpeg.c:286: error: too few arguments to function `exit'
jmovie2jpeg.c:291: error: too few arguments to function `exit'
make: *** [jmovie2jpeg] Error 1

!!! ERROR: media-video/mpeg-tools-1.5b failed.
!!! Function src_compile, Line 29, Exitcode 2
!!! (no error message)

the problem is quite easy to fix when correcting exit() in jmovie2jpeg.c to
exit(1) at lines 286 and 291.

Reproducible: Always
Steps to Reproduce:




Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.6.0-test6-mm1)
=================================================================
System uname: 2.6.0-test6-mm1 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.4.3.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer -ffast-math  -funroll-loops
-fforce-addr -falign-functions=4"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/3.2/share/config /usr/kde/3.1/share/config
/usr/kde/3/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer -ffast-math 
-funroll-loops -fforce-addr -falign-functions=4"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb
alsa gdbm berkdb slang readline arts tetex aalib bonobo svga tcltk java guile
ruby X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt
kde motif opengl mozilla snmp cdr"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-07 10:54:58 UTC
Should be fixed in -r1.