Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
klibc-1.5.12-r1Compile Failed [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ecarlcl
n00b
n00b


Joined: 05 Apr 2005
Posts: 22

PostPosted: Thu Feb 12, 2009 4:05 pm    Post subject: klibc-1.5.12-r1Compile Failed [SOLVED] Reply with quote

Hi all,

I'm having trouble getting klibc-1.5.12-r1 to emerge on one of my boxes after changing my profile from 2007.0 to 2008.0 and performing a world update. I had this same problem other times and upgrading to and compiling the 2.6.27 kernel has solved it (I'm guessing that kernel is a requirement of the new klibc version.). But that hasn't worked on this box. I have made sure that the kernel has support for framebuffer and the user <-> kernel space linker support compiled in.

Does anyone have any suggestions on what I'm missing here?

Emerge ouput:

Code:

...
LIST    usr/klibc/socketcalls/klib.list
LIST    usr/klibc/arch/i386/klib.list
LIST    usr/klibc/klib.list
KLIBCAR usr/klibc/libc.a
KLIBCLD usr/klibc/libc.so
usr/klibc/exit.o: In function `exit':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/exit.c:29: undefined reference to `_exit'
usr/klibc/execl.o: In function `execl':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/exec_l.c:53: undefined reference to `execve'
usr/klibc/execle.o: In function `execle':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/exec_l.c:53: undefined reference to `execve'
usr/klibc/execv.o: In function `execv':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/execv.c:10: undefined reference to `execve'
usr/klibc/execvpe.o: In function `execvpe':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/execvpe.c:32: undefined reference to `execve'
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/execvpe.c:66: undefined reference to `execve'
usr/klibc/wait.o: In function `wait':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/wait.c:11: undefined reference to `wait4'
usr/klibc/wait3.o: In function `wait3':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/wait3.c:11: undefined reference to `wait4'
usr/klibc/waitpid.o: In function `waitpid':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/waitpid.c:11: undefined reference to `wait4'
usr/klibc/system.o: In function `system':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/system.c:37: undefined reference to `fork'
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/system.c:48: undefined reference to `execve'
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/system.c:49: undefined reference to `_exit'
usr/klibc/setpgrp.o: In function `setpgrp':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/setpgrp.c:9: undefined reference to `setpgid'
usr/klibc/getpgrp.o: In function `getpgrp':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/getpgrp.c:9: undefined reference to `getpgid'
usr/klibc/daemon.o: In function `daemon':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/daemon.c:15: undefined reference to `chdir'
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/daemon.c:20: undefined reference to `dup2'
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/daemon.c:20: undefined reference to `dup2'
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/daemon.c:20: undefined reference to `dup2'
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/daemon.c:25: undefined reference to `close'
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/daemon.c:28: undefined reference to `fork'
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/daemon.c:32: undefined reference to `_exit'
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/daemon.c:34: undefined reference to `setsid'
usr/klibc/statfs.o: In function `statfs':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/statfs.c:16: undefined reference to `__statfs64'
usr/klibc/fstatfs.o: In function `fstatfs':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/fstatfs.c:16: undefined reference to `__fstatfs64'
usr/klibc/umount.o: In function `umount':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/umount.c:11: undefined reference to `umount2'
usr/klibc/open_cloexec.o: In function `open_cloexec':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/open_cloexec.c:15: undefined reference to `fcntl'
usr/klibc/fread.o: In function `_fread':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/fread.c:16: undefined reference to `read'
usr/klibc/fwrite.o: In function `_fwrite':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/fwrite.c:16: undefined reference to `write'
usr/klibc/sleep.o: In function `sleep':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/sleep.c:16: undefined reference to `nanosleep'
usr/klibc/usleep.o: In function `usleep':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/usleep.c:16: undefined reference to `nanosleep'
usr/klibc/raise.o: In function `raise':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/raise.c:10: undefined reference to `getpid'
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/raise.c:10: undefined reference to `kill'
usr/klibc/abort.o: In function `abort':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/abort.c:17: undefined reference to `_exit'
usr/klibc/sigaction.o: In function `sigaction':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/sigaction.c:47: undefined reference to `__rt_sigaction'
usr/klibc/sigpending.o: In function `sigpending':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/sigpending.c:15: undefined reference to `__rt_sigpending'
usr/klibc/sigprocmask.o: In function `sigprocmask':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/sigprocmask.c:15: undefined reference to `__rt_sigprocmask'
usr/klibc/sigsuspend.o: In function `sigsuspend':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/sigsuspend.c:15: undefined reference to `__rt_sigsuspend'
usr/klibc/pselect.o: In function `pselect':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/pselect.c:38: undefined reference to `__pselect6'
usr/klibc/ppoll.o: In function `ppoll':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/ppoll.c:16: undefined reference to `__ppoll'
usr/klibc/brk.o: In function `brk':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/brk.c:22: undefined reference to `__brk'
usr/klibc/sbrk.o: In function `sbrk':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/sbrk.c:27: undefined reference to `__brk'
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/sbrk.c:32: undefined reference to `__brk'
usr/klibc/malloc.o: In function `free':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/malloc.c:279: undefined reference to `munmap'
usr/klibc/mmap.o: In function `mmap':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/mmap.c:36: undefined reference to `__mmap2'
usr/klibc/shm_unlink.o: In function `shm_unlink':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/shm_unlink.c:22: undefined reference to `unlink'
usr/klibc/gethostname.o: In function `gethostname':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/gethostname.c:14: undefined reference to `uname'
usr/klibc/getdomainname.o: In function `getdomainname':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/getdomainname.c:14: undefined reference to `uname'
usr/klibc/getcwd.o: In function `getcwd':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/getcwd.c:14: undefined reference to `__getcwd'
usr/klibc/seteuid.o: In function `seteuid':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/seteuid.c:9: undefined reference to `setreuid'
usr/klibc/setegid.o: In function `setegid':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/setegid.c:9: undefined reference to `setregid'
usr/klibc/readdir.o: In function `closedir':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/readdir.c:54: undefined reference to `close'
usr/klibc/readdir.o: In function `readdir':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/readdir.c:37: undefined reference to `getdents'
usr/klibc/remove.o: In function `remove':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/remove.c:13: undefined reference to `unlink'
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/remove.c:15: undefined reference to `rmdir'
usr/klibc/syslog.o: In function `openlog':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/syslog.c:38: undefined reference to `fcntl'
usr/klibc/syslog.o: In function `vsyslog':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/syslog.c:61: undefined reference to `getpid'
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/syslog.c:76: undefined reference to `write'
usr/klibc/closelog.o: In function `closelog':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/closelog.c:15: undefined reference to `close'
usr/klibc/pty.o: In function `unlockpt':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/pty.c:30: undefined reference to `ioctl'
usr/klibc/pty.o: In function `ptsname':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/pty.c:18: undefined reference to `ioctl'
usr/klibc/isatty.o: In function `isatty':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/isatty.c:16: undefined reference to `ioctl'
usr/klibc/reboot.o: In function `reboot':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/reboot.c:14: undefined reference to `__reboot'
usr/klibc/llseek.o: In function `lseek':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/llseek.c:24: undefined reference to `__llseek'
usr/klibc/getpriority.o: In function `getpriority':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/getpriority.c:19: undefined reference to `__getpriority'
usr/klibc/inet/bindresvport.o: In function `bindresvport':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/inet/bindresvport.c:33: undefined reference to `getpid'
usr/klibc/zlib/gzio.o: In function `fclose':
/var/tmp/portage/dev-libs/klibc-1.5.12-r1/work/klibc-1.5.12/usr/klibc/../include/stdio.h:60: undefined reference to `close'
make[2]: *** [usr/klibc/libc.so] Error 1
make[1]: *** [all] Error 2
make: *** [klibc] Error 2
 *
 * ERROR: dev-libs/klibc-1.5.12-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2139:  Called die
 * The specific snippet of code:
 *       emake EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" EXTRA_KLIBCLDFLAGS="-z,noexecstack" HOSTCC="${HOSTCC}" CC="${CC}" INSTALLDIR="/usr/${libdir}/klibc" KLIBCARCH=${KLIBCARCH} KLIBCASMARCH=${KLIBCASMARCH} SHLIBDIR="/${libdir}" libdir="/usr/${libdir}" mandir="/usr/share/man" ${myargs} || die "Compile failed!";
 *  The die message:
 *   Compile failed!
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-libs/klibc-1.5.12-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/klibc-1.5.12-r1/temp/environment'.
 *

_________________
3 Boxes >Intel P4 all running Gentoo.


Last edited by ecarlcl on Fri Feb 13, 2009 9:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
ecarlcl
n00b
n00b


Joined: 05 Apr 2005
Posts: 22

PostPosted: Fri Feb 13, 2009 9:37 pm    Post subject: Reply with quote

I solved the problem by setting FEATURES="-distcc" to compile the package. For some reason it doesn't seem to like distcc.
_________________
3 Boxes >Intel P4 all running Gentoo.
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Thu May 07, 2009 10:25 am    Post subject: Reply with quote

ecarlcl wrote:
I solved the problem by setting FEATURES="-distcc" to compile the package. For some reason it doesn't seem to like distcc.


I ran into this bug as well (Thanks for supplying the answer!), is it ok (with you) if I would file a bug report?
Back to top
View user's profile Send private message
Killerchronic
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2007
Posts: 87
Location: UK

PostPosted: Mon Jul 26, 2010 1:41 pm    Post subject: Reply with quote

Just ran into this problem myself, seems silly this hasn't been fixed over a year later :(

Thanks for posting the fix though!

Regards

Killer
Back to top
View user's profile Send private message
webfishrune
n00b
n00b


Joined: 29 Apr 2007
Posts: 24

PostPosted: Thu Dec 29, 2011 4:47 pm    Post subject: Reply with quote

Killerchronic wrote:
Just ran into this problem myself, seems silly this hasn't been fixed over a year later :(


This is still an issue, right up until version 1.5.25 :-(
Back to top
View user's profile Send private message
behd
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 153

PostPosted: Sun Feb 26, 2012 6:27 pm    Post subject: Reply with quote

Killerchronic wrote:
Just ran into this problem myself, seems silly this hasn't been fixed over a year later :(

yep 2012 and still no update in the package. but thanks tip works well ^^
Back to top
View user's profile Send private message
Maitreya
Apprentice
Apprentice


Joined: 11 Jan 2006
Posts: 221

PostPosted: Tue Feb 12, 2013 5:37 pm    Post subject: Reply with quote

2013 and counting... :D

At this point just :

mkdir /etc/portage/env
echo "dev-libs/klibc nodistcc.conf" > /etc/portage/package.env
echo 'FEATURES="-distcc"' > /etc/portage/env/nodistcc.conf


:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum