From bug-octave-request at bevo dot che dot wisc dot edu Thu Apr 26 04:22:18 2001 Subject: Re: Failed compile without zlib (was: I need help compiling on Mandrake 8.0) From: Thomas Stuart To: "John W. Eaton" Cc: bug-octave at bevo dot che dot wisc dot edu Date: Thu, 26 Apr 2001 11:21:44 +0200 Hi On Wednesday 25 April 2001 18:57, you wrote: > | > | #define STRUCT_DIRENT_HAS_D_FILENO 1 > > Why did you change this? All of the changes to readline's config.h were created by the ./configure in readline's directory - I didn't edit anything myself (I don't actually have much idea of what these options mean.) > | /* Define if you have the header file. */ > | ! #define HAVE_TERMCAP_H 1 > > Do you have termcap.h on your system? If so, I don't understand why > you need to change this. If not, then why did Octave's configure > script find it? I do have a "termcap.h" in /usr/include/ncurses/. (I found this using "locate"), and octave's configure does find it. How do I found out if /usr/include is in the compile path? Also, I see that configure describes my fortran libraries as Fortran libraries: -lg2c -lm -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -L/usr/i386-redhat-linux/lib -lm but neither of the redhat directories exists - there is only a i586-mandrake-linux directory. Could this be part of the same problem? > | I installed the zlib development headers package from Mandrake > | (zlib1-devel-1.1.3-15mdk.i586.rpm), ran "make clean", then "./configure" > | and then "make liboctave". The compilation succeeded with or without > | glibc2.1 compatibility libraries that I had hoped would make the > | difference. > > I don't understand how trouble calling gettimeofday could be affected > by zlib headers, since none of them are included in Octave's > oct-time.cc file, as far as I know. I did test this quite carefully - I copied the tree to a new directory, and run the top level "make clean".Then I uninstalled the zlib1-devel-1.1.3-15mdk.rpm and ran "./configure" and "make liboctave". Compile failed. Once again I ran "make clean". I reinstalled zlib1-devel-1.1.3-15mdk.rpm and then ran "./configure". Running "make liboctave" completed, as described in the previous email (I repeated these steps as I wrote this). Here is a list of the files in zlib1-devel: /usr/include/zconf.h /usr/include/zlib.h /usr/include/zutil.h /usr/lib/libz.a /usr/lib/libz.so /usr/share/doc/zlib1-devel-1.1.3 /usr/share/doc/zlib1-devel-1.1.3/ChangeLog /usr/share/doc/zlib1-devel-1.1.3/README /usr/share/doc/zlib1-devel-1.1.3/algorithm.txt /usr/share/man/man3/zlib.3.bz2 If you have any other tests you would like me to run, please let me know. bye Thomas ------------------------------------------------------------- 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 -------------------------------------------------------------