[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

static linking against glibc, missing stuff ?



(Tracking down a busybox-cvs build problem)

I get the following error when trying to compile a static binary, it can
compile a static binary on other archs, also it compiles linked
dynamically against glibc on alpha.

Is there anything special that has to be done to link statically on
alpha ?


ar -ro libpwdgrp/libpwdgrp.a ./libpwdgrp/__getgrent.o
./libpwdgrp/__getgrent.o ./libpwdgrp/__getpwent.o
./libpwdgrp/fgetgrent.o ./libpwdgrp/fgetpwent.o ./libpwdgrp/getgrgid.o
./libpwdgrp/getgrnam.o ./libpwdgrp/getpw.o ./libpwdgrp/getpwnam.o
./libpwdgrp/getpwuid.o ./libpwdgrp/grent.o ./libpwdgrp/initgroups.o
./libpwdgrp/putpwent.o ./libpwdgrp/pwent.o ./libpwdgrp/setgroups.o
./libpwdgrp/shadow.o
gcc -s -Wl,-warn-common --static -o busybox ./applets/applets.a
./archival/archival.a ./archival/libunarchive/libunarchive.a
./console-tools/console-tools.a ./debianutils/debianutils.a
./editors/editors.a ./fileutils/fileutils.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 ./shellutils/shellutils.a ./sysklogd/sysklogd.a
./textutils/textutils.a ./util-linux/util-linux.a ./libbb/libbb.a
./libpwdgrp/libpwdgrp.a -lm -lcrypt
/usr/lib/libc.a(settimeofday.o): warning: multiple common of
`__libc_missing_axp_tv64'
/usr/lib/libc.a(gettimeofday.o): warning: previous common is here
/usr/lib/libc.a(setitimer.o): warning: multiple common of
`__libc_missing_axp_tv64'
/usr/lib/libc.a(gettimeofday.o): warning: previous common is here
/usr/lib/libc.a(wait4.o): warning: multiple common of
`__libc_missing_axp_tv64'
/usr/lib/libc.a(gettimeofday.o): warning: previous common is here
/usr/lib/libc.a(select.o): warning: multiple common of
`__libc_missing_axp_tv64'/usr/lib/libc.a(gettimeofday.o): warning:
previous common is here
/usr/lib/libc.a(utimes.o): warning: multiple common of
`__libc_missing_axp_tv64'/usr/lib/libc.a(gettimeofday.o): warning:
previous common is here
/usr/lib/libc.a(adjtime.o): In function `__adjtime_tv32':
adjtime.o(.text+0x108): undefined reference to `__adjtimex_tv32'
adjtime.o(.text+0x10c): undefined reference to `__adjtimex_tv32'
/usr/lib/libc.a(adjtime.o): In function `adjtimex':
adjtime.o(.text+0x5d0): undefined reference to `__adjtimex_tv32'
adjtime.o(.text+0x5d4): undefined reference to `__adjtimex_tv32'
collect2: ld returned 1 exit status
make: *** [busybox] Error 1



Thanks

Glenn



Reply to: