octave-maintainers
[Top][All Lists]
Advanced

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

run-octave with cygwin


From: Juhani Saastamoinen
Subject: run-octave with cygwin
Date: Thu, 13 Mar 2008 15:41:00 +0200
User-agent: Thunderbird 2.0.0.12 (X11/20080226)


Hei,

On cygwin systems, I've had always problems building
documentation and doing 'make check', for example,

$ make check
make -f octMakefile check
make[1]: Siirrytään hakemistoon "/home/juhani/octave-hg-release-3-0-x"
make -C test check
make[2]: Siirrytään hakemistoon "/home/juhani/octave-hg-release-3-0-x/test"
./build_sparse_tests.sh
../run-octave --norc --silent --no-history ./fntests.m .
4 [main] octave 3156 C:\cygwin\home\juhani\octave-hg-release-3-0-x\src\octave.exe: *** fatal error - error while loading shared libraries: /home/juhani/octave-hg-release-3-0-x/src/liboctinterp.dll /home/juhani/octave-hg-release-3-0-x/liboctave/liboctave.dll /home/juhani/octave-hg-release-3-0-x/libcruft/libcruft.dll: cannot open shared object file: No such file or directory
make[2]: *** [check] Hangup

Now I looked at the problem more closely and
found out that the problem is avoided when the shell
variable LD_PRELOAD isn't defined in run-octave
(see attached diff). I don't know what systems require
the definition. Surely some do because it has been put there.
My linux (Fedora 8) builds are indifferent to it,
but cygwin build does not accept it.
Patch proposal for run-octave.in is included,
but I don't know how to automatically include
the definition for systems that need it and not
include it for systems that cannot handle it.

Jussi

diff -r 2679ae38e174 run-octave.in
--- a/run-octave.in     Wed Mar 12 15:05:00 2008 +0100
+++ b/run-octave.in     Thu Mar 13 15:15:31 2008 +0200
@@ -66,7 +66,6 @@ fi
 fi
 
 OCTAVE_SITE_INITFILE="$top_srcdir/scripts/startup/main-rcfile" \
-LD_PRELOAD="$liboctinterp $liboctave $libcruft" \
 
%library_path_var%="$builddir/src:$builddir/liboctave:$builddir/libcruft:$%library_path_var%"
 \
   exec $driver "$builddir/src/octave" --no-initial-path --path="$LOADPATH" 
--image-path="$IMAGEPATH" --info-file="$INFOFILE" "$@"
 

reply via email to

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