help-octave
[Top][All Lists]
Advanced

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

error rand.oct


From: jfl
Subject: error rand.oct
Date: Thu, 13 Feb 2003 12:47:42 -0800 (PST)

PROBLEM:  Rand function doesn't work.  Rand does work in 2.1.36, it does not
          work for me on 2.1.40 or 2.1.44 and error messages are different.
          
          Also, I still have to make a pic/ directory in src/ when compiling
          with --enable-dl.  Apparently this is unique to my computer or SuSE
          installation, others have not mentioned it.  I mention it since this
          because this pic directory contains the compiled DLD-FUNCTIONS of 
          which rand.cc is a member.
          
          help rand shows that the syntax for rand() has not changed.

EXAMPLES OF PROBLEM:

GNU Octave, version 2.1.44 (i686-pc-linux-gnu).

octave:1> rand(1)
error: /home/octave/libexec/octave/2.1.44/oct/i686-pc-linux-gnu/rand.oct: 
undefined symbol: _ZN11octave_rand12distributionEv


GNU Octave, version 2.1.40 (i686-pc-linux-gnu).

octave:1> rand(1)
 relocation error: 
/home/jlove/libexec/octave/2.1.40/oct/i686-pc-linux-gnu/rand.oct: undefined 
symbol: setall_



BACKGROUND:


System: Dual Athlon with SuSE 8.1  gcc-3.2

./configure --prefix=/home/octave --enable-dl


Summary of configure for 2.1.44:

Octave is now configured for i686-pc-linux-gnu

  Source directory:     .
  Installation prefix:  /home/octave
  C compiler:           gcc  -mieee-fp -g -O2
  C++ compiler:         g++  -mieee-fp -g -O2 -Wall
  Fortran compiler:     g77 -O
  Fortran libraries:     -L/usr/lib/gcc-lib/i486-suse-linux/3.2 
-L/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../../i486-suse-linux/lib 
-L/usr/lib/gcc-lib/i486-suse-linux/3.2/../../.. -lfrtbegin -lg2c -lm -lgcc_s
  BLAS libraries:    
  FFTW libraries:      
  HDF5 libraries:     
  LIBS:                 -lreadline  -lncurses -ldl -lm
  Default pager:        less
  gnuplot:              gnuplot

  Do internal array bounds checking:  false
  Build static libraries:             true
  Build shared libraries:             false
  Dynamic Linking:                    true (dlopen)
  Include support for GNU readline:   true



make (for 2.1.40, similar for 2.1.44)

error message when compiling with dynamic linking, note this error did 
not occur when comiling without dl:

g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -I../glob 
-I../glob -DHAVE_CONFIG_H -mieee-fp -g -O2 -Wall ./DLD-FUNCTIONS/balance.cc -o 
pic/balance.o
Assembler messages:
FATAL: can't create pic/balance.o: No such file or directory
make[2]: *** [pic/balance.o] Error 1
make[2]: Leaving directory `/home/octave/octave-2.1.40/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/home/octave/octave-2.1.40'
make: *** [all] Error 2


Solution for "No such directory":  create pic/ directory in src/ directory












-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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