help-octave
[Top][All Lists]
Advanced

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

octave-forge won't compile with 2.1.57


From: Tom G. Smith (Smitty)
Subject: octave-forge won't compile with 2.1.57
Date: Tue, 8 Jun 2004 13:11:48 -0500 (CDT)

Still no joy in getting octave-forge to compile after installing
octave 2.1.57.  I discovered our company firewall was interfering
with cvs, so I went home and downloaded it using my own 56Kb modem,
then dumped it to cdrom to bring it to work:

        cvs \
          -d:pserver:address@hidden:/cvsroot/octave \
          login
        cvs -z3 \
          -d:pserver:address@hidden:/cvsroot/octave \
          co octave-forge
        tar czf octave-forge.tgz octave-forge

Here at work, as root I did -

        cd /contrib/octave
        tar xzf octave-forge.tgz
        cd octave-forge

Note that no configure or Makeconf.in came with the source, so I did
this, where octave-forge-2004.02.12 was previously downloaded via
HTML from sourceforge's web site.

        cp ../octave-forge-2004.02.12/configure .
        cp ../octave-forge-2004.02.12/Makeconf.in .
        ./configure
        make

Got these errors on the make.  This is a cut-and-paste, but the
backslashes are mine to make it fit on the page a little better:

        Compiling fixedCNDArray.o
        g++ -c -fPIC -I/usr/local/include/octave-2.1.57 \
                -I/usr/local/include/octave-2.1.57/octave \
                -I/usr/local/include -mieee-fp -g -O2 \
                -DHAVE_OCTAVE_21 -DOCTAVE_FORGE -DHAVE_ND_ARRAYS \
                -DTYPEID_HAS_CLASS -DCLASS_HAS_LOAD_SAVE \
                fixedCNDArray.cc -o fixedCNDArray.o
        fixedCNDArray.cc: In member function `FixedComplexNDArray
           FixedComplexNDArray::sumsq(int) const':
        fixedCNDArray.cc:638: operands to ?: have different types
        make[2]: *** [fixedCNDArray.o] Error 1
        make[2]: Leaving directory `/contrib/octave/octave-forge/main/fixed'
        make[1]: *** [fixed/] Error 2
        make[1]: Leaving directory `/contrib/octave/octave-forge/main'
        make: *** [main/] Error 2

Date: Thu, 27 May 2004 17:13:06 +0100
From: Geraint Paul Bevan <address@hidden>
To: "Tom G. Smith (Smitty)" <address@hidden>
Subject: Re: Neophyte CVS user question (fwd)

The anonymous@ part of the command specifies the user. It is only
necessary to use your developer login if you have write access to the
project. Just leaving the password blank should work.


Date: Thu, 27 May 2004 10:58:58 -0500 (CDT)
From: "Tom G. Smith (Smitty)" <address@hidden>
To: address@hidden
Subject: Re: Neophyte CVS user question (fwd)

I get these results:

        bash-2.05b$ cvs \
          -d:pserver:address@hidden:/cvsroot/octave \
          login
        Logging in to
:pserver:address@hidden:2401/cvsroot/octave
        CVS password:
        cvs [login aborted]: connect to
cvs.sourceforge.net(66.35.250.207):2401 failed:
        Connection refused

I first tried the password I use when logging in at sourceforge.net
using mozilla, then I tried using my email address, as one would use
with anonymous ftp; neither worked.  BTW, how does it know what ID
the password is associated with?  My id on my localhost is smitty,
but the id I login to sourceforge.net with is smittypaddler.  I could
find no way to tell cvs what my id at sourceforge is.  I'm running on a
RedHat Linux 9.0 system, behind a firewall, if that makes a difference.


>From address@hidden Thu May 27 10:29:17 2004
Date: Thu, 27 May 2004 17:02:41 +0200
From: David Bateman <address@hidden>
To: "Tom G. Smith (Smitty)" <address@hidden>
Cc: address@hidden
Subject: Re: Neophyte CVS user question

As your mail client is PINE I'll take a stab in the dark and say you
are running under a unix like system. Therefore an appropriate sequence
to get the entire CVS source tree is

cvs -d:pserver:address@hidden:/cvsroot/octave login
cvs -z3 -d:pserver:address@hidden:/cvsroot/octave co
octave-forge

Once you've checked out the code once you can update it just by using

cvs update -PAd

where the "-P" prunes empty directories, "-A" resets sticky tags and "-d"
creates new directories....


Date: Thu, 27 May 2004 09:19:37 -0500 (CDT)
From: "Tom G. Smith (Smitty)" <address@hidden>
To: address@hidden
Subject: Neophyte CVS user question

Please excuse a newbie's question, but how do I get a copy of the CVS
of octave-forge?  I've read enough to see how I'd get source for an
individual module, but it isn't clear how I'd get the complete source
using my CVS client.


>From address@hidden Thu May 27 07:50:54 2004
Date: Wed, 26 May 2004 23:28:41 +0200
From: David Bateman <address@hidden>
To: address@hidden
Subject: Re: compile errors making octave-forge-2004-02-12
Resent-Date: Wed, 26 May 2004 16:29:28 -0500
Resent-From: address@hidden

The fact is that octave has been a quickly moving target since the
release of 2.1.51 and thus all of the build problems you see in the
current octave-forge release...... The CVS is pretty much upto date
(in fact I just built it completely against the CVS of octave itself)
with the only real problem I know of is that the function "dispatch"
looses the help strings of overloaded functions, which is an annoyance
rather than a real limitation.

I don't think it'll be long till another octave-forge release, but this
is of course subject to the time availability of those involved in it.
Most of us do this sort of stuff in the free moments between the tasks
of our real jobs.

So build a copy of the CVS of octave-forge, I don't expect you'll see
any problems..

Cheers David

>From address@hidden Wed May 26 15:19:42 2004
Date: Wed, 26 May 2004 15:18:37 -0500 (CDT)
From: "Tom G. Smith (Smitty)" <address@hidden>
To: address@hidden
Cc: Ted Tower <address@hidden>
Subject: compile errors making octave-forge-2004-02-12

In an attempt to fix several errors with octave, including one
in pinfo and another with delaunayn.m, I downloaded and did
./configure/make/make install on octave 2.1.57 with no problems.
But then when I attempted to install octave-forge, after bypassing
some compile errors by changing galois-def.h -

        bash-2.05b$ pwd;diff galois-def.h galois-def.h.d040526.t144544.root
        /contrib/octave/octave-forge-2004.02.12/main/comm
        309,312d308
        < #define TBM boolMatrix (1, 1, true)
        < #define FBM boolMatrix (1, 1, false)
        < #define NBM boolMatrix ()
        <
        319c315
        <   MM_CMP_OP1(mx_el_ne, !=, M1,   , M2,   , GR1, GR2, CHECK, TBM, FBM)
        ---
        >   MM_CMP_OP1(mx_el_ne, !=, M1,   , M2,   , GR1, GR2, CHECK, TBM, FBM) 
\

I redid the make, and got the same errors Greg Sharp did below:

>From help-octave-request at octave dot org Sun May  2 23:26:28 2004
Subject: Octave-forge build problem: Fstruct() multiple definition
From: Gregory Sharp <gregsharp dot geo at yahoo dot com>
To: help at octave dot org
Date: Sun, 2 May 2004 22:57:10 -0500

Hi,

I'm trying to build octave-forge on linux, but I have
experienced
a build problem.  I am using:

Octave 2.1.57 (from tarball - built ok)
octave-forge-2004.02.12.tar.gz (from tarball)
gcc 3.2.3

After solving the problem with galois.cc (which is described
elsewhere), I get the build error described below.  I suspect
the octave-forge tarball is simply too old; is the CVS
version a good match for 2.1.57?

Thank you,
Greg

mkoctfile -DHAVE_OCTAVE_21 -v struct.cc
g++ -c -fPIC -I/usr/local/include/octave-2.1.57
-I/usr/local/include/octave-2.1.57/octave -I/usr/local/include
-mieee-fp -g -O2 -DHAVE_OCTAVE_21 struct.cc -o struct.o
g++ -shared -o struct.oct struct.o
-L/usr/local/lib/octave-2.1.57 -loctinterp -loctave -lcruft
-lreadline -lncurses -lm
-L/usr/lib/gcc-lib/i486-slackware-linux/3.2.3
-L/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../../i486-slackware-linux/lib
-L/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../..
-lfrtbegin -lg2c -lm -lgcc_s
/usr/local/lib/octave-2.1.57/liboctinterp.a(ov-struct.o)(.text+0x37b0):
In function `Fstruct(octave_value_list const&, int)':
/home/gsharp/pkg/octave/octave-2.1.57/src/ov-struct.cc:514:
multiple definition of `Fstruct(octave_value_list const&, int)'
struct.o(.text+0x260):/home/gsharp/pkg/octave/octave-forge-2004.02.12/main/struct/struct.cc:40:
first defined here
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../../i486-slackware-linux/bin/ld:
Warning: size of symbol `Fstruct(octave_value_list const&, int)'
changed from 7595 in struct.o to 4487 in
/usr/local/lib/octave-2.1.57/liboctinterp.a(ov-struct.o)
collect2: ld returned 1 exit status
make[2]: *** [struct.oct] Error 1
make[2]: Leaving directory
`/home/gsharp/pkg/octave/octave-forge-2004.02.12/main/struct'

=====
Greg Sharp
gregsharp at geocities dot com

>From address@hidden Wed May 26 13:16:52 2004
Date: Wed, 26 May 2004 13:16:01 -0500 (CDT)
From: "Tom G. Smith (Smitty)" <address@hidden>
To: address@hidden
Cc: Ted Tower <address@hidden>
Subject: Undefined c++ function delaunayn

We have this same problem also, in 2.1.40 of Octave:

>From address@hidden Wed May 26 13:01:15 2004
Date: Wed, 26 May 2004 13:00:25 -0500 (CDT)
From: "Tom G. Smith (Smitty)" <address@hidden>
To: "Tower, Ted" <address@hidden>
Subject: Re: More octave functions

Ted,

I found this at
http://www.octave.org/octave-lists/archive/bug-octave.2004/msg00270.html:

        Re: Undefined c++ function delaunayn in Octave 2.1.50
          * To: Lukas Nespurek <lukasnes at iol dot cz>
          * Subject: Re: Undefined c++ function delaunayn in Octave 2.1.50
          * From: David Bateman <David dot Bateman at motorola dot com>
          * Date: Wed, 21 Apr 2004 16:41:12 +0200
          * Cc: bug-octave at bevo dot che dot wisc dot edu
        Do you have the qhull library installed? If not then delaunayn.cc can
        not be built..

        Regards David

        According to Lukas Nespurek <lukasnes at iol dot cz> (on 04/21/04):
        > Dear Octave team,
        >
        > I was unable to use delaunay.m in Octave 2.1.50. The error message 
was:
        >
        > error: `delaunayn' undefined near line 51 column 13
        > error: called from `delaunay' in file
        > 
`/opt/octave/share/octave/2.1.50/site/m/octave-forge/geometry/delaunay.m'
        >
        > Sincerely, Lukas Nespurek

        --
        David Bateman                                David dot Bateman at 
motorola
dot com
        Motorola CRM                                 +33 1 69 35 48 04 (Ph)
        Parc Les Algorithmes, Commune de St Aubin    +33 1 69 35 77 01 (Fax)
        91193 Gif-Sur-Yvette FRANCE

So I downloaded qhull (see uswew004:/contrib/qhull.log) and re-installed
Octave
afterwards:

        tar xzvf qhull-2003.1.tar.gz
        cd qhull-2003.1
        ./configure
        make
        make install
        cd ..
        rm -Rf octave-forge-2003.06.02
        tar xzf octave-forge-2003.06.02.tar.gz
        cd octave-forge-2003.06.02
        ./configure
        make
        make install

This did not help; I still can't find delaunayn.m:

        bash-2.05b$ find /usr/share/octave -name 'delaunay*'
        /usr/share/octave/2.1.40/site/m/octave-forge/geometry/delaunay3.m
        /usr/share/octave/2.1.40/site/m/octave-forge/geometry/delaunay.m

I'll keep looking.
On Wed, 26 May 2004, Tower, Ted wrote:
> Tom,
> As I'm tweaking my code to run in Octave (trying to make it backwards
> compatible with Matlab), I've discovered that there are some functions
> missing.  Given what's there, I'm not sure *how* they could be missing,
> but I was wondering if you could download and install some of the
> following functions (there may be more in the future).
>
> In Octave I got the following error:
> octave:76> gdxf=griddata(cp0(:,1),cp0(:,2),gd0(:,1),xi,yi);
> error: `delaunayn' undefined near line 51 column 13
> error: evaluating assignment expression near line 51, column 11
> error: evaluating if command near line 50, column 5
> error: evaluating if command near line 49, column 3
> error: called from `delaunay' in file
> `/usr/share/octave/2.1.40/site/m/octave-forge/geometry/delaunay.m'
> error: evaluating assignment expression near line 52, column 6
> error: called from `griddata' in file
> `/usr/share/octave/2.1.40/site/m/octave-forge/geometry/griddata.m'
> error: evaluating assignment expression near line 76, column 5
> octave:76>
>
> Griddata.m and delaunay.m are in /usr/share/octave/, but delaunay.m uses
> delaunayN.m (or .cc) which doesn't appear to be in /usr/share/octave/.
> Very odd.
>
> It appears the GNU repository has this (http://octave.sourceforge.net/)
> and others.  If you look under the alphabetical list they have delaunayn
> and conv2 implmented, but I can't find them on /usr/share/octave/ and
> see no mention of this gap in bug reports.  I don't know if going to a
> more recent version will have these added or if the individual functions
> have to be loaded.  I've only used sourceforge once or twice before, so
> I'm not sure how to go about posting (and where).
>
> I'm kind of stuck until I have a way to get access to some of these
> functions.  And there will be more as I go through, but I'm not sure of
> a good way to troubleshoot all of these upfront without going to you
> with each function I discover I need (after checking that an
> implementation exists).  Any ideas?
>
> Thanks!
>
> Ted


------------------------------------------------------------------------------
This e-mail is intended for the use of the addressee(s) only and may contain
privileged, confidential, or proprietary information that is exempt from
disclosure under law.  If you have received this message in error, please
inform us promptly by reply e-mail, then delete the e-mail and destroy any
printed copy.   Thank you.
==============================================================================



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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