At Sun, 28 Sep 2003 01:58:32 +0200, Andreas Beckmann wrote: > Statically linking a program with gcc-2.95 fails with the following > errors: > > $ gcc-2.95 -static test.c > /usr/lib/gcc-lib/sparc-linux/2.95.4/libgcc.a(_udivdi3.o)(.text+0xac): In > function `__udivdi3': > : undefined reference to `.udiv' > /usr/lib/gcc-lib/sparc-linux/2.95.4/libgcc.a(_umoddi3.o)(.text+0xac): In > function `__umoddi3': > : undefined reference to `.udiv' > collect2: ld returned 1 exit status > > test.c is just an empty main(). > > I also checked this problem against the following versions of libc6-dev: > 2.3.2-8: problem occurs > 2.2.5-11.5: works fine > Unfortunately I couldn't find any older 2.3.x .debs > > gcc-3.2 and gcc-3.3 both work fine with 2.3.2-7
I don't know this problem well, but I guess it's one of libgcc-compat things. Using newer gcc fixes this problem, AFAIK. In addition, glibc is unwilling to support static linking. Nowadays gcc-3.3 is the standard compiler in debian, so I think there's no problem. If you have no objection, I'll close this bug. Regards, -- gotom -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]