Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16406 - sys-apps/ucspi-tcp fails to compile with glibc-2.3.2_pre1
Summary: sys-apps/ucspi-tcp fails to compile with glibc-2.3.2_pre1
Status: RESOLVED DUPLICATE of bug 16267
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://lists.debian.org/debian-devel/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-26 08:11 UTC by Nicolas Kaiser
Modified: 2005-07-17 13:06 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 Nicolas Kaiser 2003-02-26 08:11:19 UTC
Compiling fails with an "undefined reference to `errno'".

This patch works for me, it's along the lines of the above URL.

Have a nice day.

diff -u /usr/portage/sys-apps/ucspi-tcp/ucspi-tcp-0.88-r4.ebuild.orig
/usr/portage/sys-apps/ucspi-tcp/ucspi-tcp-0.88-r4.ebuild
--- /usr/portage/sys-apps/ucspi-tcp/ucspi-tcp-0.88-r4.ebuild.orig      
2003-02-14 22:52:05.000000000 +0100
+++ /usr/portage/sys-apps/ucspi-tcp/ucspi-tcp-0.88-r4.ebuild    2003-02-26
13:49:39.000000000 +0100
@@ -22,6 +22,9 @@
        unpack ${A}
        cd ${S}
 
+       mv error.h error.h.orig
+       sed 's/extern int errno;/#include <errno.h>/' error.h.orig > error.h
+
        if use ipv6; then 
                epatch ${WORKDIR}/ucspi-tcp-0.88-ipv6.diff13
        elif use ssl; then

Reproducible: Always
Steps to Reproduce:
1. USE="~x86" emerge -e ucspi-tcp
Actual Results:  
./load tcprules cdb.a unix.a byte.a 
cdb.a(cdb_make.o)(.text+0x86): In function `posplus':
: undefined reference to `errno'
cdb.a(cdb_make.o)(.text+0x293): In function `cdb_make_finish':
: undefined reference to `errno'
unix.a(alloc.o)(.text+0x3a): In function `alloc':
: undefined reference to `errno'
unix.a(buffer_put.o)(.text+0x3d): In function `allwrite':
: undefined reference to `errno'
unix.a(strerr_sys.o)(.text+0x2): In function `strerr_sysinit':
: undefined reference to `errno'
unix.a(buffer_get.o)(.text+0x2a): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [tcprules] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-apps/ucspi-tcp-0.88-r4 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! (no error message)
Comment 1 Nicolas Kaiser 2003-03-08 16:55:47 UTC
Thanks for fixing. I think you can close this bug now.
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-05-22 18:43:12 UTC

*** This bug has been marked as a duplicate of 16267 ***