.oct-file problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

.oct-file problem

Tomas Landelius
Hi!

I made oregonator.oct without problems, or should I say more or less
without trouble since I had to include a modified version of oct.h using
#include "oct.h" in order to bypass a problem with a non-existent link
from /user/local/include/octave to /usr/local/include/octave-2.0.9? The
modification consisted in replacing all #include <octave/file.h> with
#include <file.h>.

The compilation then went fine and produced oregonator.oct. However,
when I call it from Octave, I get the following error message:

octave:1> oregonator ([1, 2, 3], 0)
error: ld.so.1: octave: fatal: relocation error: symbol not found:
_t12basic_string2ZcZt18string_char_traits1Zc.nilRep: referenced in
/home/tlandeli/octave/oct/oregonator.oct:
/home/tlandeli/octave/oct/oregonator.oct `FSoregonator__Fv'
error: `oregonator' undefined near line 2641 column 1
error: evaluating index expression near line 2641, column 1

Any help appreciated!

Regards

Tomas Landelius
Swedish Meteorological and Hydrological Institute
Norrköping, Sweden

octave:2> octave_config_info
ans =
{
  bindir = /usr/local/bin
  imagepath = .:/usr/local/share/octave/2.0.9/imagelib//
  F2CFLAGS =
  FLIBS = -R/opt/SUNWspro/lib  -L/opt/SUNWspro/lib
-L/opt/SUNWspro/SC4.2/lib
-L/usr/ccs/lib -L/usr/lib /opt/SUNWspro/SC4.2/lib/libM77.a -lF77
-lsunmath -lm -lcx -lc
  CPPFLAGS =
  CFLAGS = -DHAVE_CONFIG_H  -g -O2 -Wall
  CXXFLAGS = -DHAVE_CONFIG_H  -fno-implicit-templates  -g -O2 -Wall
  LEXLIB = -ll
  datadir = /usr/local/share
  localfcnfiledir = /usr/local/share/octave/site/m
  CPICFLAG = -fPIC
  CXXPICFLAG = -fPIC
  exec_prefix = /usr/local
  startupfiledir = /usr/local/share/octave/2.0.9/m/startup
  TERMLIBS = -lcurses
  LIBS = -lm -ldl -lsocket
  LIBPLPLOT =
  DEFS = -DOCTAVE_SOURCE=1 -DSEPCHAR=':' -DSEPCHAR_STR=":"
-DUSE_GNU_INFO=1 -D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-DHAVE_GETUID=1
-DHAVE_GETWD=1 -DHAVE_LSTAT=1 -DHAVE_MEMMOVE=1 -DHAVE_MKDIR=1
-DHAVE_MKFIFO=1 -DHAVE_PIPE=1 -DHAVE_PUTENV=1 -DHAVE_RENAME=1
-DHAVE_RINDEX=1 -DHAVE_RMDIR=1 -DHAVE_SETGRENT=1 -DHAVE_SETPWENT=1
-DHAVE_SETVBUF=1 -DHAVE_SIGACTION=1 -DHAVE_SIGPENDING=1
-DHAVE_SIGPROCMASK=1 -DHAVE_SIGSUSPEND=1 -DHAVE_STAT=1
-DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1
-DHAVE_STRNCASECMP=1 -DHAVE_TEMPNAM=1 -DHAVE_UMASK=1 -DHAVE_UNLINK=1
-DHAVE_USLEEP=1 -DHAVE_VFPRINTF=1 -DHAVE_VSPRINTF=1 -DHAVE_WAITPID=1
-DHAVE_LIBDL=1 -DHAVE_DLOPEN=1 -DHAVE_DLSYM=1 -DHAVE_DLERROR=1
-DHAVE_DLCLOSE=1 -DWITH_DL=1 -DWITH_DYNAMIC_LINKING=1 -DHAVE_LIBM=1
-DHAVE_FINITE=1 -DHAVE_ISNAN=1 -DHAVE_ACOSH=1 -DHAVE_ASINH=1
-DHAVE_ATANH=1 -DHAVE_ERF=1 -DHAVE_ERFC=1 -DHAVE_ST_BLKSIZE=1
-DHAVE_ST_BLOCKS=1 -DHAVE_ST_RDEV=1 -DHAVE_TZNAME=1 -DHAVE_GR_PASSWD=1
-DEXCEPTION_IN_MATH=1 -DRETSIGTYPE=void -DHAVE_POSIX_SIGNALS=1
-DHAVE_GETRUSAGE=1 -DHAVE_TIMES=1
  default_pager = less
  infodir = /usr/local/info
  FFLAGS = -O
  F2C =
  CXX = c++ 2.7.2
  RLD_FLAG = -Xlinker -R -Xlinker /usr/local/lib
  dld = 1
  archlibdir = /usr/local/libexec/octave/2.0.9/exec/sparc-sun-solaris2.5
  fcnfilepath =
.:/usr/local/libexec/octave/site/oct/sparc-sun-solaris2.5//:/usr
/local/share/octave/site/m//:/usr/local/libexec/octave/2.0.9/oct/sparc-sun-solar
is2.5//:/usr/local/share/octave/2.0.9/m//
  F77 = f77
  FPICFLAG = -PIC
  LIBFLAGS = -L/usr/local/lib
  localstartupfiledir = /usr/local/share/octave/site/m/startup
  octfiledir = /usr/local/libexec/octave/2.0.9/oct/sparc-sun-solaris2.5
  target_host_type = sparc-sun-solaris2.5
  configure_options =
  LDFLAGS = -g
  CXXLIBS = -lsocket -lsocket -lstdc++ -lm
-L/usr/local/lib/gcc-lib/sparc-sun-so
laris2.5/2.7.2 -L/usr/local/sparc-sun-solaris2.5/lib -L/usr/ccs/bin
-L/usr/ccs/l
ib -L/usr/local/lib -lsocket -lstdc++ -lm -lgcc -lc -lgcc
  prefix = /usr/local
  libdir = /usr/local/lib
  fcnfiledir = /usr/local/share/octave/2.0.9/m
  localoctfilepath =
/usr/local/libexec/octave/site/oct/sparc-sun-solaris2.5//
  CC = gcc 2.7.2
  LIBDLFCN =
  localfcnfilepath = /usr/local/share/octave/site/m//
  localarchlibdir =
/usr/local/libexec/octave/site/exec/sparc-sun-solaris2.5
  INCFLAGS = -I/usr/local/include -I/usr/local/include/octave-2.0.9
}