* extra lib member not found by ld when -g used.
@ 1997-07-24 4:00 Christopher Grayce
1997-07-24 4:00 ` Ron Natalie
1997-08-01 4:00 ` Craig Neth USG
0 siblings, 2 replies; 3+ messages in thread
From: Christopher Grayce @ 1997-07-24 4:00 UTC (permalink / raw)
Hi all:
System: Digital Unix 3.2C on AlphaStation 600.
Compiler: stock Digital C compiler/loader version 3.11
I am compiling C source and linking against several libraries
of my own. The libraries have been compiled with these flags:
-O4 -D_FASTMATH -migrate -ansi_alias -inline speed -ifo -tune ev5 -assu
me noaccuracy_sensitive -std1
If I compile the program with the same flags, all is well. If I
use -g, however (so I can debug it), I get this loader error:
ld:
Unresolved:
_OtsMove
*** Exit 1
Stop.
and indeed, an "nm" on one of the libraries turns up an entry for
_OtsMove. Needless to say none of my programs have that name.
My question: what is _OtsMove? Why does the loader find it if
I use the optimizing flags and not without? How can I avoid this
problem *without* recompiling the libraries? (I don't need to
debug 'em, I know they work.)
Any help appreciated.
Christopher Grayce
UCI Department of Chemistry
*** Return address bogus to avoid spammail: send replies
to cgrayce (at) uci (dot) edu ***
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: extra lib member not found by ld when -g used.
1997-07-24 4:00 extra lib member not found by ld when -g used Christopher Grayce
@ 1997-07-24 4:00 ` Ron Natalie
1997-08-01 4:00 ` Craig Neth USG
1 sibling, 0 replies; 3+ messages in thread
From: Ron Natalie @ 1997-07-24 4:00 UTC (permalink / raw)
OtsMove is defined in -lots.
I don't know what the difference is (since you don't show your
link options), but I suspect that it's undefined in both cases
except that you're not fatal without -g because unresolved
symbols are deferred at compile time when you don't use it.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: extra lib member not found by ld when -g used.
1997-07-24 4:00 extra lib member not found by ld when -g used Christopher Grayce
1997-07-24 4:00 ` Ron Natalie
@ 1997-08-01 4:00 ` Craig Neth USG
1 sibling, 0 replies; 3+ messages in thread
From: Craig Neth USG @ 1997-08-01 4:00 UTC (permalink / raw)
To: Christopher Grayce
Christopher Grayce wrote:
> My question: what is _OtsMove? Why does the loader find it if
> I use the optimizing flags and not without? How can I avoid this
> problem *without* recompiling the libraries? (I don't need to
> debug 'em, I know they work.)
>
> Any help appreciated.
>
> Christopher Grayce
> UCI Department of Chemistry
>
> *** Return address bogus to avoid spammail: send replies
> to cgrayce (at) uci (dot) edu ***
--
_OtsMove is part of the compiled code support for the -migrate
C compiler. It lives in libots. At -lots to your link line
to satisfy the reference.
In V4.0, we changed the default C compiler to be the -migrate compiler
so you don't need to add -lots if you're on V4.0 or later.
--------------------------------------------------------------------------------
Craig Neth ! neth@zk3.dec.com
DIGITAL Equipment Corporation !
110 Spit Brook Road ZKO3-3/W17 !
Nashua, NH 03062 ! Opinions expressed herein are my own.
================================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-08-01 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-07-24 4:00 extra lib member not found by ld when -g used Christopher Grayce
1997-07-24 4:00 ` Ron Natalie
1997-08-01 4:00 ` Craig Neth USG
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox