Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23165 - wipe build fails due to undefined errno
Summary: wipe build fails due to undefined errno
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-20 06:15 UTC by Peter Gantner (a.k.a. nephros)
Modified: 2003-06-20 16:09 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 Peter Gantner (a.k.a. nephros) 2003-06-20 06:15:03 UTC
emerge wipe gives the following error. IIRC the thing with errno is related to newer glibcs (?), 
but I don't know C so I can't investigate further.

gcc -pipe -O3  -ffast-math -fomit-frame-pointer  -I. -DLINUX  -o mt.o -c mt.c
gcc  `find . -name '*.o'` -o wipe
./rand.o(.text+0xfe): In function `rand_init':
: undefined reference to `errno'
collect2: ld returned 1 exit status
distcc[4962] ERROR: compile on localhost failed with exit code 1
make: *** [wipe] Error 1

!!! ERROR: app-misc/wipe-2.1.0 failed.
!!! Function src_compile, Line 15, Exitcode 2
!!! compile problem



Reproducible: Always
Steps to Reproduce:
1. emerge wipe
Comment 1 Peter Gantner (a.k.a. nephros) 2003-06-20 06:16:40 UTC
forgot version info for my system:

sys-libs/glibc-2.3.2-r1
sys-devel/binutils-2.14.90.0.2
sys-devel/gcc-3.2.3-r1
Comment 2 Nicolas Kaiser 2003-06-20 10:14:30 UTC
Have a nice day ;)

--- rand.c.orig 2003-06-20 19:09:35.000000000 +0200
+++ rand.c      2003-06-20 19:10:11.000000000 +0200
@@ -25,6 +25,7 @@
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <errno.h>
 
 #include "std.h"
 #include "io.h"
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2003-06-20 16:09:06 UTC
Fixed in CVS.

Thanks for the patch Nicolas.