SUMMARY: Undefined symbol: __lib_version

From: ballisti@ifh.ee.ethz.ch
Date: Wed Jul 12 1995 - 12:29:28 CDT


Thank you soo much!

Tim Evans tkevans@eplrx7.es.duPont.com hits the nail :-)

Tim wrote a short sentence:

>prepend /usr/ucblib to LD_LIBRARY_PATH

So I did and the problem with __lib_version disappeared:

setenv | grep LD_L
LD_LIBRARY_PATH=/usr/ucblib:/usr/lang/SC2.0.1:/usr/lib/X11:/usr/lib:/usr/openwin/lib

THank you so much Tim!

Others were also kind and gave some hints:
--------
raoul@MIT.EDU (Nico Garcia)
>unsetenv LD_LIBRARY_PATH before compiling. You shouldn't need it. If
>you do, add slowly to it /usr/local/lib, /usr/lib, /usr/openwin/lib,
>and *nothing* else. Recompile from clean copies, not just where it
>breaks.
--------
jd@lri.stjosephs.london.on.ca (J. Davis)
>Try temporarily unsetenv-ing the LD_LIBRARY_PATH variable and recompiling.
--------
Krister Joas <joas@inf.ethz.ch>
I had similar problem once and it turned out I had an old version of
libgcc.a somewhere that the compiler used instead of the correct one.
Deleting the old one solved my problem. Can't say if that's the case
here though. I found my problem by going through all my .a files with
nm searching for references to the undefined symbol(s). I just did
that on one of our machines (Solaris 2.4) and _lib_version is undefined
in libc and libm but not defined anywhere, oddly enough. It is however
defined in libc.so, but emacs at least is linked statically. Also try
'gcc -v' to see what libraries gcc really tries to link.
----------
 Verena Gelpke <gelpke@stat.math.ethz.ch>
Me too
----------
 buehlman <buehlman@iwf.bepr.ethz.ch>
My lucky guess for today: you mix lgg libraries and conventional sun libraries,
something you are not recommended to do.
----------

Thank you a lot to everybody, but specially to Tim
  Ciao Ray

-------------------------------------------------------------------
Raimondo Ballisti (Ray)
Swiss Federal Institute of Technology (ETH)
Laboratory for Electromagnetic Fields and
Microwaves Electronics
ETH-Zentrum,
CH-8092 Zurich, Switzerland.

Phone: ++41 1 632 2753; Fax: ++41 1 632 1198

WWW: http://www.ifh.ee.ethz.ch e-mail: ballisti@ifh.ee.ethz.ch
==== =======
-------------------------------------------------------------------



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:29 CDT