From bug-request at octave dot org Sat Jan 22 17:59:01 2005 Subject: Re: Serious memory leak in octave (this may be a duplicate bug report) From: Dan Nessett To: Per Persson CC: Date: Sat, 22 Jan 2005 17:22:45 -0600 On 1/21/05 2:53 PM, "Per Persson" wrote: > > On Jan 20, 2005, at 03:16, Dan Nessett wrote: > >> I downloaded octave 2.1.64 and built from source. The problem remains. > > OK. that's bad. > [snip] > > This, IIRC, had to do with tcsh on 10.2, are you running tcsh? No, I'm running bash. [snip] > > Could you check which libs are linked aginst? Use otool -L > /usr/local/bin/octave > > You should be able to disable all additional libs (from fink and > elsewhere) and build a "minimal" octave, does it show the same problem > behaviour? > > /Per > I tried to eliminate all libraries from the octave build that are in /sw/lib, but ran up against a problem. I need to use the FLIBS=-lg2c flag in order to get past a failure in ./configure that specifies: checking for Fortran libraries of g77... -lg2c checking for dummy main to link with Fortran libraries... unknown configure: error: linking to Fortran libraries from C fails However, I searched my system and the only place libg2c lives is in /sw/lib. So, it appears I need at least this library from /sw/lib in order to get configure to work correctly. Below is the output of otool on octave. It appears octave has pulled in libreadline, libncurses, and libhdf5 from /sw/lib. I can get rid of the first and last with configure options. However, the only place I found libncurses was also in /sw/lib. I presume vecLib in /System/... is required. Also I presume libz and libSystem.B are required. If not, let me know. [/Users/dnessett] otool -L /usr/local/bin/octave /usr/local/bin/octave: /usr/local/lib/octave-2.1.64/liboctinterp.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/lib/octave-2.1.64/liboctave.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/lib/octave-2.1.64/libcruft.dylib (compatibility version 0.0.0, current version 0.0.0) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib (compatibility version 1.0.0, current version 138.1.0) /sw/lib/libreadline.4.dylib (compatibility version 4.2.0, current version 4.3.0) /sw/lib/libncurses.5.dylib (compatibility version 6.0.0, current version 6.3.0) /sw/lib/libhdf5.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libz.1.1.3.dylib (compatibility version 1.0.0, current version 1.1.3) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 63.0.0) Dan ------------------------------------------------------------- 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 -------------------------------------------------------------