[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: linking liboctave fails (lapack missing?)
From: |
Thomas Treichl |
Subject: |
Re: linking liboctave fails (lapack missing?) |
Date: |
Tue, 18 Aug 2009 20:36:08 +0200 |
User-agent: |
Thunderbird 2.0.0.22 (Macintosh/20090605) |
John W. Eaton schrieb:
On 15-Aug-2009, Thomas Treichl wrote:
| John W. Eaton schrieb:
| > It would be helpful if people building Octave on Windows and OS X
| > systems could configure and build the latest Octave sources on and
| > send a list of symbols that are unresolved when creating the libcruft,
| > liboctave, liboctinterp shared libraries, when linking the Octave
| > executable file, and when building the .oct files.
|
| Here are the results for OS X (currently I cannot tell you anything about the
| CURL and GLPK dependencies - these libs are not found by ./configure at the
| moment - seems because of missing -lz in the test procedure):
I checked in changes that should fix this. Can you check?
I will John, but I think I need another day for doing that. Yesterday I changed
src/Makefile.in for myself and was able to compile all of the Octave sources.
This is just FYI, I've attached 9534.diff which is the "hg diff -r 9534
src/Makefile.in >9534.diff".
BTW, thanks for taking such linking issues directly into Octave build scripts,
even if they don't exist on all platforms. That definitely makes a packager's
life much easier ;)
| libcruft.dylib, liboctave.dylib: no unresolved symbols
|
| liboctinterp.dylib: (cf. attached file liboctave_symbols.txt.gz)
| for manual compilation I needed to add
|
| -L../libcruft -lcruft -lreadline -lfftw3 -lfftw3f -lexpat
|
| octave: (cf. attached file liboctave_symbols.txt.gz)
| for manual compilation I needed to add
|
| -lz -lhdf5 -lreadline -lfreetype -lfontconfig -lfftw3 -lfftw3f -lexpat
Where is the requirement for -lexpat coming from?
-lexpat "or" -lxml2 is a dependency of -lfontconfig, I don't know if this in a
general issue or if I need to fight such things for myself?
ME$ otool -L /Applications/Octave.app/Contents/Resources/lib/libfontconfig.dylib
/Applications/Octave.app/Contents/Resources/lib/libfontconfig.dylib:
/tmp/deps-i386/lib/libfontconfig.1.dylib
/usr/lib/libiconv.2.dylib
/tmp/deps-i386/lib/libfreetype.6.dylib
/tmp/deps-i386/lib/libz.1.dylib
/usr/lib/libxml2.2.dylib
/usr/lib/libSystem.B.dylib
/tmp/deps-i386/lib/libexpat.1.dylib
/usr/lib/libgcc_s.1.dylib
I'll be back again with results
Thomas
diff -r baeecd69fd44 src/Makefile.in
--- a/src/Makefile.in Mon Aug 17 12:45:02 2009 -0400
+++ b/src/Makefile.in Tue Aug 18 20:21:39 2009 +0200
@@ -297,11 +297,14 @@
-L../libcruft $(LIBCRUFT) \
$(HDF5_LIBS) $(ZLIB_LIBS) \
$(OPENGL_LIBS) $(X11_LIBS) $(CARBON_LIBS) \
- $(LIBS)
+ $(LIBS) \
+ $(FFTW3_LIBS) $(FFTW3F_LIBS) $(READLINE_LIBS) -lexpat
OCT_LINK_DEPS = $(RLD_FLAG) -L. $(LIBOCTINTERP) \
-L../liboctave $(LIBOCTAVE) \
- -L../libcruft $(LIBCRUFT)
+ -L../libcruft $(LIBCRUFT) \
+ $(HDF5_LIBS) $(ZLIB_LIBS) $(FFTW3_LIBS) $(FFTW3F_LIBS) \
+ $(OPENGL_LIBS) $(READLINE_LIBS) $(FLIBS) -lexpat
BUILT_DISTFILES = DOCSTRINGS oct-gperf.h parse.cc lex.cc y.tab.h \
$(OPT_HANDLERS) $(BUILT_EXTRAS)
@@ -369,7 +372,9 @@
$(ALL_LDFLAGS) -o $@ main.o $(DLD_STATIC_OBJ) \
$(RLD_FLAG) \
-L. $(LIBOCTINTERP) -L../liboctave $(LIBOCTAVE) \
- -L../libcruft $(LIBCRUFT)
+ -L../libcruft $(LIBCRUFT) \
+ $(HDF5_LIBS) $(ZLIB_LIBS) $(FFTW3_LIBS) $(FFTW3F_LIBS) \
+ $(OPENGL_LIBS) $(READLINE_LIBS) -lexpat
stmp-pic: pic
@if [ -f stmp-pic ]; then \
- Re: linking liboctave fails (lapack missing?), (continued)
- Re: linking liboctave fails (lapack missing?), Thomas Treichl, 2009/08/14
- Re: linking liboctave fails (lapack missing?), Benjamin Lindner, 2009/08/14
- Re: linking liboctave fails (lapack missing?), Benjamin Lindner, 2009/08/14
- Re: linking liboctave fails (lapack missing?), Thomas Treichl, 2009/08/14
- Re: linking liboctave fails (lapack missing?), Benjamin Lindner, 2009/08/14
- Re: linking liboctave fails (lapack missing?), Thomas Treichl, 2009/08/14
- Re: linking liboctave fails (lapack missing?), Benjamin Lindner, 2009/08/14
- Re: linking liboctave fails (lapack missing?), Thomas Treichl, 2009/08/14
- Re: linking liboctave fails (lapack missing?), Thomas Treichl, 2009/08/15
- Re: linking liboctave fails (lapack missing?), John W. Eaton, 2009/08/18
- Re: linking liboctave fails (lapack missing?),
Thomas Treichl <=
- Re: linking liboctave fails (lapack missing?), Ben Abbott, 2009/08/18
- Re: linking liboctave fails (lapack missing?), Thomas Treichl, 2009/08/19
- Re: linking liboctave fails (lapack missing?), Ben Abbott, 2009/08/19
- Re: linking liboctave fails (lapack missing?), John W. Eaton, 2009/08/26
- Re: linking liboctave fails (lapack missing?), John W. Eaton, 2009/08/26
- Re: linking liboctave fails (lapack missing?), Thomas Treichl, 2009/08/28
- Re: linking liboctave fails (lapack missing?), Thomas Treichl, 2009/08/28
- Re: linking liboctave fails (lapack missing?), Benjamin Lindner, 2009/08/15
- Re: linking liboctave fails (lapack missing?), Benjamin Lindner, 2009/08/15
- Re: linking liboctave fails (lapack missing?), John W. Eaton, 2009/08/17