Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413971 - sys-apps/openrc: undefined reference to `rc_proc_getent'
Summary: sys-apps/openrc: undefined reference to `rc_proc_getent'
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-29 09:54 UTC by DaboD
Modified: 2023-01-29 03:13 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 DaboD 2012-04-29 09:54:57 UTC
I am cross-compiling openrc for armv7a, openrc-0.9.9* build fail because of following issue

# armv7a-hardfloat-linux-gnueabi-gcc -O2 -pipe -Wl,-O2 -Wl,--as-needed -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings -Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement -Wsequence-point    -L../librc -L../libeinfo  -Wl,-rpath=/lib   -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 swclock.o -lutil -lrc -leinfo -Wl,-Bdynamic -ldl 
rc.o: In function `main':
rc.c:(.text.startup+0x898): undefined reference to `rc_proc_getent'
rc.c:(.text.startup+0xaf4): undefined reference to `rc_proc_getent'
rc.c:(.text.startup+0xeb4): undefined reference to `rc_proc_getent'
rc.c:(.text.startup+0x1260): undefined reference to `rc_proc_getent'
collect2: ld returned 1 exit status

# armv7a-hardfloat-linux-gnueabi-objdump -T ./src/librc/librc.so.1 | grep rc_proc_getent
00007954 g    DF .text	000001c0  RC_1.0      rc_proc_getent

# armv7a-hardfloat-linux-gnueabi-gcc --version
armv7a-hardfloat-linux-gnueabi-gcc (Gentoo 4.6.2 p1.4, pie-0.5.0) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Version prior 0.9.9* have no this kind of build issue.
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2012-05-06 21:52:44 UTC
Can you please try 0.9.9.3 and 9999?
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2012-05-06 21:57:45 UTC
Also, can you attach the full build.log please?
I don't see the librc-misc.o/librc there
Comment 3 William Hubbs gentoo-dev 2012-05-22 15:39:54 UTC
I am closing this due to no response from the reporter. If it is still
an issue, please feel free to reopen.
Comment 4 Magnus Bergman 2013-03-22 00:10:22 UTC
I had this problem too with version 0.11.8, compiling natively on x86. The problem is that rc links to the installed version of librc. If the installed version is old enough to lack the symbol 'rc_proc_getent' it will fail and cause this error. Perhaps it is avoided by first installing some intermediate version (since it doesn't happen everywhere apparently). I just deleted /lib/librc.so and /usr/lib/librc.so and it worked. Of course the right solution would be to make sure openrc links to it's own version of librc, instead of the installed one.
Comment 5 William Hubbs gentoo-dev 2013-03-22 15:26:45 UTC
Please do not add arch teams; they do not fix issues like this.