help-octave
[Top][All Lists]
Advanced

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

Re: octave 2.9.9 under cygwin does not find scriptfiles on network path


From: Benjamin Lindner
Subject: Re: octave 2.9.9 under cygwin does not find scriptfiles on network path
Date: Tue, 17 Oct 2006 08:52:48 +0200

> Hello Benjamin,
> 
> How did you get 2.9.9 to compile under cygwin? I have tried for several
> months to get the 2.9.x to work, but I always get errors when I get to
> ls-mat5.cc. Any special tweeks you made or the specific guideline file(s)
> you used for the build would be greatly appreciated.

Hm, I have changed the follwing in ls-mat5.cc to make it work with the 
gcc-3.2 I am using. Without this it compiles nicely under debian using
gcc-3.3.5 so i guess it is a gcc issue

--- octave-2.9.9-orig/src/ls-mat5.cc    2006-08-22 04:37:41.000000000 +0200
+++ octave-2.9.9/src/ls-mat5.cc 2006-10-05 08:05:31.575698200 +0200
@@ -335,7 +335,7 @@
 // place the type code in TYPE and the byte count in BYTES
 // return nonzero on error
 static int
-read_mat5_tag (std::istream& is, bool swap, int32_t& type, int& bytes)
+read_mat5_tag (std::istream& is, bool swap, int32_t& type, int32_t& bytes)
 {
   unsigned int upper;
   int32_t temp;

I have also changed the dynamic linking flags in the configure script
because I have run into problems with .oct files.
I have taken this actually from the 2.1.73 configure script in the
source code of the cygwin octave package

--- octave-2.9.9-orig/configure 2006-10-02 22:04:13.000000000 +0200
+++ octave-2.9.9/configure      2006-10-05 08:05:27.747499700 +0200
@@ -17934,7 +17934,7 @@
     library_path_var=DYLD_LIBRARY_PATH
   ;;
   *-*-cygwin* | *-*-mingw*)
-    DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import 
-Wl,--enable-runtime-pseudo-reloc"
+    DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import 
-Wl,--enable-auto-image-base -Wl,--enable-runtime-pseudo-reloc"
     CXXPICFLAG=
     CPICFLAG=
     FPICFLAG=
diff -urN -x '.build*' -x '*.bak' -x '*.orig*' octave-2.9.9-orig/configure.in 
octave-2.9.9/configure.in
--- octave-2.9.9-orig/configure.in      2006-09-26 18:28:15.000000000 +0200
+++ octave-2.9.9/configure.in   2006-10-05 08:05:27.794375600 +0200
@@ -966,7 +966,7 @@
     library_path_var=DYLD_LIBRARY_PATH 
   ;;
   *-*-cygwin* | *-*-mingw*)
-    DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import 
-Wl,--enable-runtime-pseudo-reloc"
+    DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import 
-Wl,--enable-auto-image-base -Wl,--enable-runtime-pseudo-reloc"
     CXXPICFLAG=
     CPICFLAG=
     FPICFLAG=

Without the -Wl,--enable-auto-image-base  I have frequent errors
telling that for some .oct funcion dll image base cannot be mapped
from adress A (child) to adress B (parent). Octave is not broken then, 
but e.g. the help text is not displayed properly. This can be 
triggered by executing e.g. 'help sort' or any other .oct function.

along with the two other patches regarding the documentation build
and the LD_LIBRARY_PATH issue (see the bug list) I get a working 
executable along with dynamic linking.
Not all tests in make check pass, I have not delved into there.

hope this helps

benjamin
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


reply via email to

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