help-octave
[Top][All Lists]
Advanced

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

Compilation problems under Solaris 2.6


From: Todd Ellenberger
Subject: Compilation problems under Solaris 2.6
Date: Mon, 5 Oct 98 17:07:19 PDT

I have tried unsucessfully to install octave 2.0.13 on a Sun Ultra 60
running Solaris 2.6 using both the gcc-2.8.1 and egcs-1.1b compilers.
I am using gnu make, gnu libraries, g77, etc with my path set to find the
gnu compilers. I have tried both static and dynamic builds. Everything compiles
fine until the step listed below. I have tried compiling with and without
the -g flag. I have looked through the past archives and did not find anything
conclusive (I did find the patches to xdiv.cc, pt-exp.h, and pt-mvr-base.h
helpful for compiling under the egcs1.1b compiler). Any help would be
greatly appreciated!

Todd Ellenberger
(address@hidden)


The following output was generated using gcc-2.8.1, 
libstdc++-2.8.1.1,g77-0.5.23,
and gnu make-3.77 using:

make CFLAGS=-O CXXFLAGS=-O LDFLAGS=


Configure info:
--------------

Octave is now configured for sparc-sun-solaris2.6

  Source directory:     .
  Installation prefix:  /usr/local
  C compiler:           gcc  -g -O2 -Wall
  C++ compiler:         c++  -fno-rtti -fno-exceptions -fno-implicit-templates -
g -O2 -Wall
  Fortran compiler:     g77 -O
  Fortran libraries:     -lg2c -lm  -L/usr/ccs/lib -L/usr/lib -L/usr/local/lib/g
cc-lib/sparc-sun-solaris2.6/2.8.1 -L/usr/local/sparc-sun-solaris2.6/lib -L/usr/c
cs/bin -L/usr/ccs/lib -L/usr/local/lib -lm
  Use GNU readline:     true
  Default pager:        more
  gnuplot:              gnuplot

  Do internal array bounds checking:       false
  Build shared libraries:                  false
  Minimal kernel option:                   false
  Dynamic Linking (dlopen/dlsym):          true
  Dynamic Linking (shl_load/shl_findsym):  false


A few compiler warnings during compilation:
-------------------------------------------

lo-mappers.cc: In function `double xfinite(double)':
lo-mappers.cc:153: warning: implicit declaration of function `int finite(...)'
sysdep.cc: In function `class octave_value_list Fclc(const class 
octave_value_list &, int)':
sysdep.cc:395: warning: implicit declaration of function `int tputs(...)'




Final step where errors are reported:
-------------------------------------

c++  -I. -I.. -I../liboctave -I../src -I../libcruft/misc   -DHAVE_CONFIG_H 
-fno-rtti -fno-exceptions -fno-implicit-templates -O -L..   -fPIC  -o octave \
octave.o builtins.o  balance.o  besselj.o  betainc.o  chol.o  colloc.o  dassl.o 
 det.o  eig.o  expm.o  fft.o  fft2.o  filter.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  pinv.o  qr.o  quad.o  qzval.o  
rand.o  schur.o  sort.o  svd.o  syl.o  time.o \
-L../liboctave -L../libcruft -L../src -Xlinker -R -Xlinker 
/usr/local/lib/octave-2.0.13 \
../src/liboctinterp.a ../liboctave/liboctave.a  ../libcruft/libcruft.a  
../readline/libreadline.a ../kpathsea/libkpathsea.a   \
-lg2c -lm  -L/usr/ccs/lib -L/usr/lib 
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 
-L/usr/local/sparc-sun-solaris2.6/lib -L/usr/ccs/bin -L/usr/ccs/lib 
-L/usr/local/lib -lm  -lncurses -lm -ldl -lsocket 

rand.o: In function `curr_rand_seed(void)':
rand.o(.text+0x8c): undefined reference to `getsd_'
rand.o: In function `set_rand_seed(double)':
rand.o(.text+0x1c0): undefined reference to `setsd_'
rand.o: In function `do_initialization(void)':
rand.o(.text+0x33c): undefined reference to `setall_'
rand.o: In function `do_rand(octave_value_list const &, int)':
rand.o(.text+0x680): undefined reference to `setcgn_'
rand.o(.text+0x1068): undefined reference to `dgenunf_'
rand.o(.text+0x118c): undefined reference to `dgennor_'
rand.o: In function `reset_rand_generator(void *)':
rand.o(.text+0x1710): undefined reference to `setcgn_'
rand.o: In function `Frandn(octave_value_list const &, int)':
rand.o(.text+0x1b04): undefined reference to `setcgn_'
../liboctave/liboctave.a(CollocWt.o): In function `CollocWt::init(void)':
CollocWt.o(.text+0x2c0): undefined reference to `jcobi_'
CollocWt.o(.text+0x308): undefined reference to `dfopr_'
CollocWt.o(.text+0x4bc): undefined reference to `dfopr_'
CollocWt.o(.text+0x65c): undefined reference to `dfopr_'
../liboctave/liboctave.a(DASSL.o): In function `DASSL::do_integrate(double)':
DASSL.o(.text+0x1700): undefined reference to `ddassl_'
../liboctave/liboctave.a(LSODE.o): In function `LSODE::do_integrate(double)':
LSODE.o(.text+0xdfc): undefined reference to `lsode_'
../liboctave/liboctave.a(NLEqn.o): In function `NLEqn::solve(int &)':
NLEqn.o(.text+0x900): undefined reference to `hybrj1_'
NLEqn.o(.text+0xaa0): undefined reference to `hybrd1_'
../liboctave/liboctave.a(Quad.o): In function `DefQuad::integrate(int &, int &, 
double &)':
Quad.o(.text+0x244): undefined reference to `dqagp_'
../liboctave/liboctave.a(Quad.o): In function `IndefQuad::integrate(int &, int 
&, double &)':
Quad.o(.text+0x4cc): undefined reference to `dqagi_'



A lot more of this type of errors until 'make' quits...


dbleHESS.o(.text+0x184): undefined reference to `dgebal_'
dbleHESS.o(.text+0x2f8): undefined reference to `dgehrd_'
dbleHESS.o(.text+0x430): undefined reference to `dorghr_'
dbleHESS.o(.text+0x510): undefined reference to `dgebak_'
../liboctave/liboctave.a(dbleLU.o): In function `LU::LU(Matrix const &)':
dbleLU.o(.text+0x1a4): undefined reference to `dgesv_'
../liboctave/liboctave.a(dbleQR.o): In function `QR::init(Matrix const &, 
QR::type)':
dbleQR.o(.text+0x2c0): undefined reference to `dgeqrf_'
dbleQR.o(.text+0x6f8): undefined reference to `dorgqr_'
../liboctave/liboctave.a(dbleQRP.o): In function `QRP::init(Matrix const &, 
QR::type)':
dbleQRP.o(.text+0x314): undefined reference to `dgeqpf_'
dbleQRP.o(.text+0x8fc): undefined reference to `dorgqr_'
../liboctave/liboctave.a(dbleSCHUR.o): In function `SCHUR::init(Matrix const &, 
basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> 
> const &)':
dbleSCHUR.o(.text+0x460): undefined reference to `dgeesx_'
../liboctave/liboctave.a(dbleSVD.o): In function `SVD::init(Matrix const &, 
SVD::type)':
dbleSVD.o(.text+0x418): undefined reference to `dgesvd_'
make[2]: *** [octave] Error 1
make[1]: *** [src] Error 2
make: *** [all] Error 2


make[2]: Leaving directory `/usr/local/downloads/octave/octave-2.0.13/src'
make[1]: Leaving directory `/usr/local/downloads/octave/octave-2.0.13'




reply via email to

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