help-octave
[Top][All Lists]
Advanced

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

readline problems linking octave binary - Cygwin 1.3.5/Win2K


From: Sujay Parekh
Subject: readline problems linking octave binary - Cygwin 1.3.5/Win2K
Date: Wed, 28 Nov 2001 15:04:25 -0500


I'd appreciate any help with building the latest (2.1.35) Octave under Windows.  I'm using Windows 2000 with the latest Cygwin (dll version 1.3.5-3).  I ran it as everyone else seems to be doing: "configure" then "make" (with no additional options).

Thing seem to go ok, until it gets to linking the octave binary, at which point I get an error:

c++  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -I../glob -I../glob -D
HAVE_CONFIG_H -mieee-fp -fno-implicit-templates -g -O2 -Wall -rdynamic \
-L..   -fPIC -g -o octave \
octave.o builtins.o ops.o ../libcruft/blas-xtra/xerbla.o  balance.o  besselj.o  
betainc.o  chol.o  colloc.o  dassl.o  det.o  eig.o  expm.o  fft.o  fft2.o  filte
r.o  find.o  fsolve.o  gammainc.o  getgrent.o  getpwent.o  getrusage.o  givens.o
  hess.o  ifft.o  ifft2.o  inv.o  log.o  lpsolve.o  lsode.o  lu.o  minmax.o  pin
v.o  qr.o  quad.o  qz.o  rand.o  schur.o  sort.o  svd.o  syl.o  time.o \
-L../liboctave -L../libcruft -L../src  \
../src/liboctinterp.a ../liboctave/liboctave.a  ../libcruft/libcruft.a  ../kpath
sea/libkpathsea.a ../glob/glob.o ../glob/fnmatch.o  \
   -lreadline  -lncurses -lm  -lg2c -L/usr/local/lib -L/usr/lib -L/usr/lib/w32ap
i -L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5 -lcygwin -luser32 -lkernel32 -ladva
pi32 -lshell32
c++: unrecognized option `-rdynamic'
../liboctave/liboctave.a(oct-rl-edit.o): In function `octave_rl_clear_screen':
/usr/local/src/octave-2.1.35/liboctave/oct-rl-edit.c:63: undefined reference to
`_rl_clear_screen'
collect2: ld returned 1 exit status

I looked in /usr/lib/libreadline.a for this '_rl_clear_screen', and it seems to be there:
{76} nm -o /usr/lib/libreadline.a | grep -i _rl_clear_screen
/usr/lib/libreadline.a:readline.o:         U __rl_clear_screen
/usr/lib/libreadline.a:readline.o:00001544 T _rl_clear_screen
/usr/lib/libreadline.a:funmap.o:         U _rl_clear_screen
/usr/lib/libreadline.a:keymaps.o:         U _rl_clear_screen
/usr/lib/libreadline.a:display.o:0000249c T __rl_clear_screen

Other than that extra "-rdynamic" flag to c++, the only other warning I saw in the make has to do with something in the kpathsea build -- the c-proto.h there redefines "__cdecl", but it is only a warning and in any case I don't know if it is relevant to the readline problem.

I am able to build fine if I use 'configure --disable-readline', so it seems specific to the readline support or libs.

-Sujay

reply via email to

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