bug-glibc
[Top][All Lists]
Advanced

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

static alpha binaries using adjtimex


From: Glenn McGrath
Subject: static alpha binaries using adjtimex
Date: Mon, 6 Jan 2003 13:46:20 +1100

Im trying to compile a static binary of the cvs version of busybox, it
fails at a number of points where time related functionality is being
used.
 

I made this simple test program to highlight problem.

address@hidden:~$ cat test.c 
#include <sys/timex.h>
int main()
{
        struct timex txc;
        adjtimex(&txc);
}


It compiles dynamically linked agianst glibc, (the same things happens
with gcc-2.95)

address@hidden:~$ /home/camm/usr/bin/gcc-3.2 test.c


But not statically

address@hidden:~$ /home/camm/usr/bin/gcc-3.2 test.c --static
/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


I cant find the undefined reference anywhere, i assume it must be an
internal problem ?

address@hidden:~$ grep __adjtimex_tv32 -r /usr/include/


The system is as follows

Host type: alpha-unknown-linux-gnu
System: Linux lully 2.4.17 #1 Mon Feb 4 21:25:13 CST 2002 alpha unknown
Architecture: alpha

Addons: linuxthreads

Build CC: gcc
Compiler version: 2.95.4 20011002 (Debian prerelease)
Kernel headers: 2.4.18
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: no
Build profile: yes
Build omitfp: no
Build bounded: no
Build static-nss: no
Stdio: libio



Thanks

Glenn

Attachment: pgpiZPfIap09i.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]