logo       

Re: Linking errors: undefined reference to `bb_path_group_file': msg#00232

linux.busybox

Subject: Re: Linking errors: undefined reference to `bb_path_group_file'

On Tue Jul 29, 2003 at 10:33:02AM +0400, Nick Fedchik wrote:
> gcc -s -Wl,-warn-common -o busybox ./applets/applets.a ./archival/archival.a
> ./archival/libunarchive/libunarchive.a ./coreutils/coreutils.a
> ./console-tools/console-tools.a ./debianutils/debianutils.a
> ./editors/editors.a ./findutils/findutils.a ./init/init.a
> ./miscutils/miscutils.a ./modutils/modutils.a ./networking/networking.a
> ./networking/libiproute/libiproute.a ./networking/udhcp/udhcp.a
> ./procps/procps.a ./loginutils/loginutils.a ./shell/shell.a
> ./sysklogd/sysklogd.a ./util-linux/util-linux.a ./libbb/libbb.a
> ./libpwdgrp/libpwdgrp.a ./coreutils/libcoreutils/libcoreutils.a -lcrypt
> ./libpwdgrp/libpwdgrp.a(getgrgid.o)(.text+0xb): In function `getgrgid':
> : undefined reference to `bb_path_group_file'
> ./libpwdgrp/libpwdgrp.a(grent.o)(.text+0x15): In function `setgrent':
> : undefined reference to `bb_path_group_file'
> ./libpwdgrp/libpwdgrp.a(initgroups.o)(.text+0xe): In function `initgroups':
> : undefined reference to `bb_path_group_file'
> collect2: ld returned 1 exit status
> make: *** [busybox] Error 1

This is fixed by putting libbb last in the link order,

-Erik

--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise