When running an emerge, i get the following output: ar cru .libs/libimlib2_filter.a imlib2_filter.o ranlib .libs/libimlib2_filter.a creating libimlib2_filter.la (cd .libs && rm -f libimlib2_filter.la && ln -s ../libimlib2_filter.la libimlib2_filter.la) gcc -march=athlon-xp -O3 -pipe -I/usr/X11R6/include -o camserv camconfig.o camserv.o filter.o main_loop.o picture_loop.o shm.o video.o -Wl,--export-dynamic ../libltdl/.libs/libltdlc.al -ldl ../common/libcommon.a -lnsl /usr/lib/libjpeg.so -lm camserv.o(.text+0x352): In function `main': : undefined reference to `errno' camserv.o(.text+0x503): In function `main': : undefined reference to `errno' main_loop.o(.text+0xc87): In function `main_loop': : undefined reference to `errno' main_loop.o(.text+0xcaf): In function `main_loop': : undefined reference to `errno' picture_loop.o(.text+0x242): In function `picture_single': : undefined reference to `errno' collect2: ld returned 1 exit status make[1]: *** [camserv] Error 1 make[1]: Leaving directory `/var/tmp/portage/camserv-0.5.0/work/camserv-0.5.0/camserv' make: *** [all-recursive] Error 1 !!! ERROR: media-video/camserv-0.5.0 failed. !!! Function src_compile, Line 20, Exitcode 2 !!! (no error message) When compiling by hand with no CFLAGS, I get the same error. I had a couple other people check it, same problem. More of my system information: Linux haga.cave.hagabard.com 2.4.20-gaming-r3 #3 Thu Sep 4 13:48:24 CDT 2003 i686 AMD Athlon(tm) XP 2200+ AuthenticAMD GNU/Linux Gentoo Base System version 1.4.3.10p1 last emerge sync, just before attempting camserv build. other things tried: decompressing tarball to seprate dir and running ./configure ; make compiling on freebsd, built fine (although obviously doesn't carry much weight here, but the source at least works on another platform I have access too.) asked other gentoo users (of approximately similar or newer built systems) to attempt # grep -v "#" /etc/make.conf CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe" CXXFLAGS="${CFLAGS}" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" MAKEOPTS="-j3" GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/" If you need any more information, let me know.
Created attachment 18053 [details, diff] proposed camserv-errno patch This patch can be applied against both camserv-0.5.0 and camserv-0.5.1.
manual make ; make install works good here after patching 0.5.1. Thanks!
is this still an issue? please provide #emerge info
Added the patch to CVS and changed 0.5.0 and 0.5.1-r2 accordingly (no revision bump since this is a compile time issue). I think Brandy should close this.
my manual compile was segfaulting on me. just ran emerge sync, and attempted to rebuild of 0.5.1-r2. still seems to not be working, same error. My emerge info: CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg kde libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts svga tcltk java guile X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt motif opengl mozilla gphoto2 ldap snmp"
Why did you not paste the top section of "emerge info" with the version information? It works fine on my athlon xp system with the same CFLAGS as you have, so I guess it must have some other reason.
Gah, my bad. Apparently my paste skills are lacking. Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gaming-r3) ================================================================= System uname: 2.4.20-gaming-r3 i686 AMD Athlon(tm) XP 2200+ ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe" Was this patch added to the portage tree? I didn't see it try to patch it.
The only important differences I see between our machines are: I use gcc 3.2.3-r1 and vanilla kernel. Yes, camserv 0.5.0 and 0.5.1-r2 should both apply the errno patch when you are synced with a functional portage mirror.
Could you please recompile latest camserv with CFLAGS="-g", FEATURES="nostrip", run it from gdb and do a backtrace when it segfaults?
added patch in all ebuilds