Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224147 - openrc fails to link due to missing symbols from glibc libc_nonshared.a
Summary: openrc fails to link due to missing symbols from glibc libc_nonshared.a
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-29 21:22 UTC by Jaime Gascon Romero
Modified: 2008-05-31 17:42 UTC (History)
2 users (show)

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


Attachments
build log (build.log,25.19 KB, text/plain)
2008-05-29 21:23 UTC, Jaime Gascon Romero
Details
The ebuild environment file (environment,100.61 KB, text/plain)
2008-05-29 21:24 UTC, Jaime Gascon Romero
Details
emerge --info (emerge-info,9.87 KB, text/plain)
2008-05-29 21:26 UTC, Jaime Gascon Romero
Details
The build log with LANG=C (build.log,25.06 KB, text/plain)
2008-05-30 22:16 UTC, Jaime Gascon Romero
Details
x86_64-pc-linux-gnu-gcc output (output.txt,14.77 KB, text/plain)
2008-05-31 10:53 UTC, Jaime Gascon Romero
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Gascon Romero 2008-05-29 21:22:49 UTC
whenever I try to emerge openrc it crash with a lot of 'undefined references'

Reproducible: Always

Steps to Reproduce:
1.emerge openrc
2.
3.

Actual Results:  
openrc don't compile

Expected Results:  
the installation of openrc

I'll put the compile log and the emerge --info in the attachment.
Comment 1 Jaime Gascon Romero 2008-05-29 21:23:59 UTC
Created attachment 154747 [details]
build log
Comment 2 Jaime Gascon Romero 2008-05-29 21:24:44 UTC
Created attachment 154749 [details]
The ebuild environment file
Comment 3 Jaime Gascon Romero 2008-05-29 21:26:24 UTC
Created attachment 154751 [details]
emerge --info
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2008-05-30 03:45:36 UTC
Could you run that emerge again with LANG=C and attach the result, please?
Comment 5 Roy Marples 2008-05-30 06:45:53 UTC
atexit should be defined by your libc - sounds like a toolchain issue.
Comment 6 Jaime Gascon Romero 2008-05-30 22:16:41 UTC
Created attachment 154883 [details]
The build log with LANG=C
Comment 7 Jaime Gascon Romero 2008-05-30 22:24:15 UTC
(In reply to comment #5)
> atexit should be defined by your libc - sounds like a toolchain issue.
> 

I've tried to rebuild the entire toolchain (binutils, gcc, glibc, linux-headers and gdb) and I get the same error again. 
	
I've also did a 'emerge -e system' and then I went back to emerge the openrc and always gives me the same error.
Comment 8 SpanKY gentoo-dev 2008-05-31 06:24:29 UTC
you've got some bogus files screwing things up or a broken glibc ... all of those missing functions are provided by glibc via libc_nonshared.a

go into /var/tmp/portage/sys-apps/openrc-0.2.5/work/openrc-0.2.5/src/rc and run:
x86_64-pc-linux-gnu-gcc  -L../librc -L../libeinfo  -Wl,-rpath=/lib64 -L/lib64   -o rc checkpath.o fstabinfo.o mountinfo.o start-stop-daemon.o rc-applets.o rc-depend.o rc-logger.o rc-misc.o rc-plugin.o rc-service.o rc-status.o rc-update.o runscript.o rc.o -lutil -lrc -leinfo -lncurses -Wl,-Bdynamic -ldl  -lpam -Wl,--verbose

and then post the output as an attachment
Comment 9 Jaime Gascon Romero 2008-05-31 10:53:40 UTC
Created attachment 154925 [details]
x86_64-pc-linux-gnu-gcc output

Here are the output from the command that you've requested SpanKY...
Comment 10 SpanKY gentoo-dev 2008-05-31 17:42:12 UTC
this is wrong:
attempt to open /lib64/libc.so succeeded
-lc (/lib64/libc.so)

i dont know how you got that libc.so, but it wasnt from Gentoo