[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [BusyBox] Linking errors: undefined reference to
From: Erik Andersen <andersen () codepoet ! org>
Date: 2003-07-29 7:45:22
[Download RAW message or body]
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 list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic