avimake.o(.text+0x83): In function `FatalError type_info function': /var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/../../include/avm_stl.h: undefined reference to `cerr' avimake.o(.text+0x88):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/../../include/avm_stl.h: undefined reference to `ostream::operator<<(char const *)' avimake.o(.text+0x91):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/../../include/avm_stl.h: undefined reference to `ostream::operator<<(char const *)' avimake.o(.text+0x9a):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/../../include/avm_stl.h: undefined reference to `ostream::operator<<(char const *)' avimake.o(.text+0xa3):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/../../include/avm_stl.h: undefined reference to `ostream::operator<<(char const *)' avimake.o(.text+0xaf):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/../../include/avm_stl.h: undefined reference to `endl (ostream &)' avimake.o(.text+0x1b5): In function `addFrame(char const *, avm::IVideoWriteStream *)': /var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:84: undefined reference to `cerr' avimake.o(.text+0x1ba):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:84: undefined reference to `ostream::operator<< (char const *)' avimake.o(.text+0x1c3):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:84: undefined reference to `ostream::operator<< (char const *)' avimake.o(.text+0x1cc):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:84: undefined reference to `ostream::operator<< (char const *)' avimake.o(.text+0x1d5):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:84: undefined reference to `ostream::operator<< (char const *)' avimake.o(.text+0x1e1): In function `addFrame(char const *, avm::IVideoWriteStream *)': /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/g++/iostream.h:106: undefined reference to `endl(ostream &)' avimake.o(.text+0x41e): In function `Usage(char const *)': /var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:135: undefined reference to `cerr' avimake.o(.text+0x423):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:135: undefined reference to `ostream::operator<< (char const *)' avimake.o(.text+0x42c):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:135: undefined reference to `ostream::operator<< (char const *)' avimake.o(.text+0x435):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:135: undefined reference to `ostream::operator<< (char const *)' avimake.o(.text+0x441): In function `Usage(char const *)': /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/g++/iostream.h:106: undefined reference to `endl(ostream &)' avimake.o(.text+0x63f): In function `main': /var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:191: undefined reference to `cout' avimake.o(.text+0x644):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:191: undefined reference to `ostream::operator<< (char const *)' avimake.o(.text+0x64d):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:191: undefined reference to `ostream::operator<< (int)' avimake.o(.text+0x656):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:191: undefined reference to `ostream::operator<< (char const *)' avimake.o(.text+0x65f):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:191: undefined reference to `ostream::operator<< (int)' avimake.o(.text+0x668):/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7- 0.7.29/samples/misc/avimake.cpp:191: undefined reference to `ostream::operator<< (char const *)' avimake.o(.text+0x674): In function `main': /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/g++/iostream.h:106: undefined reference to `endl(ostream &)' collect2: ld returned 1 exit status make[2]: *** [avimake] Error 1 make[2]: Leaving directory `/mnt/hdc/tmp/portage/avifile- 0.7.29.20030204/work/avifile0.7-0.7.29/samples/misc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/hdc/tmp/portage/avifile- 0.7.29.20030204/work/avifile0.7-0.7.29/samples' make: *** [all-recursive] Error 1 !!! ERROR: media-video/avifile-0.7.29.20030204 failed. !!! Function src_compile, Line -194, Exitcode 2 !!! (no error message) It's kinda strange, but I don't think my headers or c++ are broken. Portage 2.0.47-r2 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r7) ================================================================= System uname: 2.4.20-pre6 i686 Pentium III (Coppermine) GENTOO_MIRRORS="ftp://ftp.dale.ro/pub/mirrors/ftp.ibiblio.org/pub/Linux/distribu tions/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://ftp.rez- gif.supelec.fr/pub/Linux/distrib/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles " CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share /config /usr/X11R6/lib/X11/xkb /usr/share/config" 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="x86 arts avi crypt jpeg libg++ mikmod mmx mpeg ncurses pdflib qtmt quicktime spell truetype xmms xv bonobo gif gnome-libs gpm gtk guile imlib java libwww motif nls oggvorbis opengl pam png python qt readline sdl slang ssl svga tcltk tcpd X maildir -apache2 -3dnow -apm -cups ldap xml xml2 curl berkdb sse dga -gnome -kde evo gtkhtml aalib lcms tiff gd esd oss flash freetype encode imap mozilla mozctl mozxmlterm mznoirc tetex perl mysql postgres odbc innodb gdbm samba" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops - frerun-cse-after-loop -frerun-loop-opt -malign-functions=4" CXXFLAGS="-march=i686 -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll- loops -frerun-cse-after-loop -frerun-loop-opt -malign-functions=4" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
CFLAGS="-march=i686 -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -malign-functions=4" Hrm... You are forcing quite a few things.. And even duplicating unneeded flags. http://freshmeat.net/articles/view/730/ I think the latest version of avifile require gcc3... As I don't have a gcc2 system to test on I cannot verify this. I will look into this more and let you know if I come up with anything conclusive.
avifile-0.7.32.20030219 is now in portage. Please let me know if you have problems with this new version.
Unfortunately it doesn't work, not even with CFLAGS="-march=i686 -O3 -pipe", so it indeed seems like it requires gcc3. What annoys me is that the compilation fails in the samples directory, but the rest compiles fine... :(
compiles fine on my gcc 2.95 system
It seems it compiles after I downgraded to portage-2.0.46-r12...
Good to hear things are working for you. I have had good experiences so far with 0.7.29 and 0.7.32 of avifile, I hope you do as well. :)