|
From: | A Scotte Hodel |
Subject: | Re: Octave on Mac |
Date: | Mon, 9 May 2005 10:26:16 -0500 |
I've used a Makefile to do the octave/octave-forge install on Octave. The text of the Makefile is at the end of this email.
On May 8, 2005, at 11:04 PM, Aakash S Dalwani wrote:
Respected Sir,I am trying to install the latest version of Octave (2.9.2) on anode of an Apple Cluster running Mac OS X server (10.3.7). Although I am able to run the configure script, but I get the following message when I run make. "ld: multiple definitions of symbol Array<long>::operator()(int, int, int) constArray-i.o definition of Array<long>::operator()(int, int, int) const insection (__TEXT,__text)Array-so.o definition of Array<long>::operator()(int, int, int) const insection (__TEXT,__text) ld: multiple definitions of symbol vtable for Array<long> Array-i.o definition of vtable for Array<long> in section (__DATA,__const) Array-so.o definition of vtable for Array<long> in section (__DATA,__const)"After many such messges, finally make exits with the following errormessage: "/usr/bin/libtool: internal link edit command failed make[2]: *** [liboctave.dylib] Error 1 make[1]: *** [liboctave] Error 2 make: *** [all] Error 2" Please suggest a work around for this error, Thanking you, Aakash Ps: I am e-mailing you because I saw your message on the mailing list that you wanted to port Octave to Mac
Text of the Makefile: CFLAGS="-L/sw/lib -I/sw/include" CVS_RSH=ssh CVSROOT=":ext:address@hidden:/cvs" FLIBS="-L/sw/lib -lg2c" LDFLAGS="-L/sw/lib" all: flags installed.octave installed.octave-forge flags: @echo CFLAGS=$(CFLAGS) @echo FLIBS=$(FLIBS) @echo CXXFLAGS=$(CFLAGS) @echo LDLAGS=$(LDLAGS) installed.octave: octave-2.1.64/src/octave @echo "install make:" (cd octave-2.1.64 ; sudo make install ) touch $@ octave-2.1.64/src/octave: octave-2.1.64/config.h @echo "octave make:" (cd octave-2.1.64 ; \ CFLAGS=$(CFLAGS) CXXFLAGS=$(CFLAGS) FLIBS=$(FLIBS) \ LDFLAGS=$(LDFLAGS) make ) octave-2.1.64/config.h: octave-2.1.64/configure @echo "Config.h make:" (cd octave-2.1.64 ; \ CFLAGS=$(CFLAGS) CXXFLAGS=$(CFLAGS) FLIBS=$(FLIBS) \ LDFLAGS=$(LDFLAGS) \ ./configure -enable-shared --enable-dl --disable-static ) touch $@ octave-2.1.64/configure : ./octave-2.1.64.tar.gz tar -xvzf octave-2.1.64.tar.gz touch $@ installed.octave-forge : octave-forge-2004.11.16/config.status @echo "make octave-forge" ( cd octave-forge-2004.11.16 ; \ CFLAGS=$(CFLAGS) CXXFLAGS=$(CFLAGS) FLIBS=$(FLIBS) \ LDFLAGS=$(LDFLAGS) make ) octave-forge-2004.11.16/config.status: octave-forge-2004.11.16/configure @echo "configure octave-forge" ( cd octave-forge-2004.11.16 ; \ CFLAGS=$(CFLAGS) CXXFLAGS=$(CFLAGS) FLIBS=$(FLIBS) \ LDFLAGS=$(LDFLAGS) ./configure ) octave-forge-2004.11.16/configure: octave-forge-2004.11.16.tar.gz @echo "unpack octave-forge" tar -xvzf octave-forge-2004.11.16.tar.gz touch $@ ------------------------------------------------------------- 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 -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |