linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem linking with -D_FILE_OFFSET_BITS=64
@ 2007-08-02 16:05 Gary Hughes-Fenchel
  0 siblings, 0 replies; only message in thread
From: Gary Hughes-Fenchel @ 2007-08-02 16:05 UTC (permalink / raw)
  To: linux-c-programming

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-02 16:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-02 16:05 Problem linking with -D_FILE_OFFSET_BITS=64 Gary Hughes-Fenchel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).