Skip to contentSkip to conversation

Problem linking with -D_FILE_OFFSET_BITS=64

DISCUSSION Gary Hughes-Fenchel 1 participant 1 message Aug 2, 2007

lore
Share & tools
lore
#0 lore raw

I see this same problem on a 32 and 64 bit machine. When I build a dynamic library I see the following error message ("reallysmall" is the name of the executable my test program is attempting to build):

/usr/bin/ld: reallysmall: hidden symbol `stat64' in /usr/lib64/libc_nonshared.a(stat64.oS) is referenced by DSO

collect2: ld returned 1 exit status

When I build a static lib (using ar rv) I see no such problem. If I remove the -D_FILE_OFFSET_BITS=64 from the compilation the problem goes away. Does anyone know what is happening? I have a small test program I could send along if it would help.

(I apologize in advance if this is the wrong group to be sending this question to. There does not seem to be an active libc group around.)

Gary Hughes-Fenchel