[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ld: Undefined symbol __lib_version when building octave

From: A . Witt
Subject: ld: Undefined symbol __lib_version when building octave
Date: Fri, 10 Feb 1995 17:13:58 +0000 (NZD)

This is probably a common and/or easy problem to solve.

I'm trying to build Octave 1.1.0 using gcc-2.6.3, libg++-2.6.2 (both built
the standard way except for the prefix path - I put gnu stuff in
/usr/local/gnu ), Sun's SPARCworks f77 fortran compiler and /usr/bin/ld
on a SPARCstation 2 running SunOS 4.1.4.

All runs okay until the final linking of the octave binary is attempted
and the make output reads

c++  -I. -I../src -I.. -I../liboctave -I../src -DHAVE_CONFIG_H  
-fno-implicit-templates  -g -O -Wall -L..   -g -o octave \
 arith-ops.o  data.o  dirfns.o  dynamic-ld.o  error.o  file-io.o fnmatch.o 
getopt.o getopt1.o  gripes.o  help.o  idx-vector.o  input.o lex.o  load-save.o  
mappers.o  octave.o  octave-hist.o  oct-obj.o  pager.o parse.o  pr-output.o  
procstream.o  sighandlers.o strcasecmp.o strncase.o  strfns.o  symtab.o  
sysdep.o  tc-rep.o  tc-rep-ass.o  tc-rep-idx.o tempname.o  timefns.o tmpnam.o  
token.o  tree-base.o  tree-cmd.o  tree-const.o  tree-expr.o  tree-misc.o  
tree-plot.o  unwind-prot.o  user-prefs.o  utils.o  variables.o  xdiv.o  xpow.o  
Map.o  SLStack.o builtins.o \
liboctdld.a ../liboctave/liboctave.a libtinst.a ../libcruft/libcruft.a 
../info/libinfo.a ../readline/libreadline.a ../kpathsea/libkpathsea.a  \
-L/usr/lang/SC2.0.1/cg87 -L/usr/lang/SC2.0.1 -u _fix_libc_ 
/usr/lang/SC2.0.1/libM77.a -lF77 -lansi  -ltermcap -lm -lg++
ld: Undefined symbol 
collect2: ld returned 2 exit status
make[2]: *** [octave] Error 1
make[2]: Leaving directory `/src/octave/octave-1.1.0/src'
making all in scripts

After this the compile continues as though nothing is wrong (leading one to
install a nonexistent binary 8-} unless you kept and read a make log).

How can I change the make settings so that ld can find __lib_version or so
that it isn't needed.

Reply to me personally and I will summarise.
Thanks in advance.

Allen Witt                      email:  address@hidden
Programmer Analyst              telephone: (64) (03) 3667-001 ext 8498
Department of Mathematics
University of Canterbury
Christchurch, New Zealand

reply via email to

[Prev in Thread] Current Thread [Next in Thread]