Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29041 - media-video/camserv-0.5.0 and later use 'extern int errno'
Summary: media-video/camserv-0.5.0 and later use 'extern int errno'
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-09-18 01:50 UTC by Hagabard
Modified: 2003-10-12 09:37 UTC (History)
2 users (show)

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


Attachments
proposed camserv-errno patch (camserv-errno.patch,3.20 KB, patch)
2003-09-20 18:41 UTC, Brandy Westcott (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hagabard 2003-09-18 01:50:44 UTC
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.
Comment 1 Brandy Westcott (RETIRED) gentoo-dev 2003-09-20 18:41:53 UTC
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.
Comment 2 Hagabard 2003-09-25 21:06:23 UTC
manual make ; make install works good here after patching 0.5.1.

Thanks!
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-10-05 04:36:26 UTC
is this still an issue?
please provide #emerge info
Comment 4 Patrick Kursawe (RETIRED) gentoo-dev 2003-10-06 01:22:37 UTC
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.
Comment 5 Hagabard 2003-10-06 10:41:45 UTC
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"
Comment 6 Patrick Kursawe (RETIRED) gentoo-dev 2003-10-06 22:56:26 UTC
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.
Comment 7 Hagabard 2003-10-07 00:13:20 UTC
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.
Comment 8 Patrick Kursawe (RETIRED) gentoo-dev 2003-10-07 00:24:31 UTC
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.
Comment 9 Patrick Kursawe (RETIRED) gentoo-dev 2003-10-10 02:10:30 UTC
Could you please recompile latest camserv with CFLAGS="-g", FEATURES="nostrip",
run it from gdb and do a backtrace when it segfaults?
Comment 10 Martin Holzer (RETIRED) gentoo-dev 2003-10-12 09:37:35 UTC
added patch in all ebuilds