[Top][All Lists]

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

Re: octave 2.9.10 pkg and FreeBSD

From: sam sirlin
Subject: Re: octave 2.9.10 pkg and FreeBSD
Date: Sun, 08 Apr 2007 18:08:47 -0700
User-agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.13) Gecko/20070121

John W. Eaton wrote:

On  6-Apr-2007, sam sirlin wrote:

| Built fairly easily on FreeBSD
| - requires gnu sed for the fortran filter file libcruft/mkf77def

How about a patch to make it more portable?

I'll take a closer look.  GNU sed is pretty easy to build though.

| - need to add -lstdc++  to LIBS in Makeconf

Why?  I think that should be unnecessary if a C++ compiler is used for
the link step.  If that is not what is happening, then can you please
point out what rule needs this so that it can be fixed?

I rebuilt a test version to check on the linking. It's not octave itself, but libs:

/libexec/ /usr1/sam/src/octave-test/octave-2.9.10/src/ Undefined symbol "_ZTVN10__cxxabiv120__si_class_type_infoE"

simple things still work. Adding the -lstdc++ resolves this. In the build stages I see:

gcc42 -shared -Wl,-x   -o
gcc42 -shared -Wl,-x -o pic/Cell.o pic/bitfcns.o pic/c-file-ptr-stream.o pic/comment-list.o pic/cutils.o pic/data.o pic/debug.o
g++42 -I/usr/local/include -I/usr/local/include/UMFPACK -I/usr/local/include/metis -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -Wall -W -Wshadow -Wold-style-cast -fPIC -rdynamic \
   -L..  -fPIC -L/usr/local/lib -o octave \

so it would seem that CC is used to create the shared libs etc

liboctinterp is created with

#SH_LD = $(CC)
SH_LD = $(CXX)

fixes the problem! This might solve my solaris linking troubles too...
so in, change


| - need to add a few -R/usr/local/lib/octave-2.9.10 in Makeconf

Why?  For what rules?

| Now trying to add the octave forge packages is more messy

Please report these problems to the Octave Forge bug reporting list.

Also, bug reports for Octave really should go to the address@hidden



reply via email to

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