Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 3052

Summary: drip fails to compile
Product: Gentoo Linux Reporter: Gwenn <gentoo-bugs2>
Component: Current packagesAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.1a   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gwenn 2002-05-26 16:13:48 UTC
drip-0.8.1-r3 fails to compile because of errors on encoder/demuxer.cpp and
encoder/encoder.cpp.

It looks like includes are missing for stdio and stdlib : FILE, printf...
are undefined.
Comment 1 Gwenn 2002-05-26 16:17:00 UTC
Trace for demuxer.cpp:

demuxer.cpp:30: syntax error before `*'
demuxer.cpp: In function `gint drip_mpeg_seek_percentage(float)':
demuxer.cpp:154: `in_file' undeclared (first use this function)
demuxer.cpp:154: (Each undeclared identifier is reported only once
demuxer.cpp:154: for each function it appears in.)
demuxer.cpp:154: implicit declaration of function `int fseek(...)'
demuxer.cpp:155: implicit declaration of function `int ftell(...)'
demuxer.cpp: In function `void * drip_demux(void *, int)':
demuxer.cpp:523: implicit declaration of function `int fread(...)'
demuxer.cpp:525: implicit declaration of function `int fopen(...)'
demuxer.cpp:623: implicit declaration of function `int printf(...)'
demuxer.cpp:701: implicit declaration of function `int fclose(...)'
make[2]: *** [dripencoder-demuxer.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-05-26 19:16:54 UTC
what version of gcc?
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2002-05-26 21:20:52 UTC
never mind, I get this error as well with 2.95.3
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-27 12:17:59 UTC
What version/versions of avifile ?  Also, what version of divx4linux ?
Lastly, what version of glibc, as /usr/include/stdio.h is part of glibc,
and defines those functions.
Comment 5 Gwenn 2002-05-27 12:39:10 UTC
Versions used :

gcc-2.95.3-r5
avifile-0.7.4.20020426
avifile-0.7.4.20020426-r2
divx4linux-20020418
glibc-2.2.5-r2
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-27 14:42:40 UTC
Ok, fixed in -r4.  Also please test if the problem on startup due to
non absolute /dev/dvd symlink are fixed.