[Pkg-octave-devel] Building Octave-Forge with octave-2.9.4

Colin Ingram synergizedmusic at gmail.com
Thu Jan 26 18:53:22 UTC 2006


[sorry for the noise in the mailling list...my previous msg had my CC
as the subject and the subject was....well I don't know where it went]

I started working on the 2.9 transition again.  Octave-Forge fails to
build on my system.  I attemted to build with these changes to
debian/rules

Index: rules
===================================================================
--- rules    (revision 466)
+++ rules    (working copy)
@@ -6,25 +6,25 @@
 PACKAGE        = octave-forge

 include /usr/share/dpatch/dpatch.make
 include /usr/share/octave/debian/defs.make

 altname         = octave-forge-alternatives
 debtmp        := $(CURDIR)/debian/$(PACKAGE)
 debdoc          := $(debtmp)/usr/share/doc/$(PACKAGE)
 octdir      := $(OCTDIR)
 mdir          := $(MDIR)
 altoctdir       := /usr/lib/$(altname)
 altmdir         := /usr/share/$(altname)
-octbin        := $(shell octave-config-2.1.72 -p LOCALARCHLIBDIR)
+octbin        := $(shell octave-config-2.9.4 -p LOCALARCHLIBDIR)

 mycheck:
        @echo "debtmp $(debtmp)"
        @echo "debdic $(debdoc)"
        @echo "otdir  $(octdir)"
        @echo "mdir   $(mdir)"
        @echo "octbin $(octbin)"

 arch         := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)

 ## edd 22 Feb 2003 now use 3.2 versions everywhere
 ## edd 27 Jun 2003  now that gcc 3.3 is in unstable and testing, relax this
@@ -56,24 +56,26 @@
 configure-stamp: patch-stamp
        dh_testdir
        mv configure configure-orig
        touch extra/MacOSX/NOINSTALL
        [ -f autogen.sh ] && ./autogen.sh && chmod 0755 configure
        CC=$(compilerpath)            \
        CXX=$(cpppath)                \
        FC=$(fcpath)                \
        F77=$(fcpath)                \
        CFLAGS=$(compilerflags)            \
        CXXFLAGS=$(compilerflags)        \
        FFLAGS=$(compilerflags)            \
+        OCTAVE="octave-2.9.4"            \
+        MKOCTFILE="mkoctfile-2.9.4"        \
        ./configure --prefix=/usr --with-altmpath=$(altmdir)
                # clean the tsa/ directory
                # ( cd extra/tsa && ../../debian/tsacleanup.pl )
        touch configure-stamp

 build:         configure-stamp build-stamp
 build-stamp:
        $(MAKE)
                # $(MAKE) index.html
        touch build-stamp

 install:     install-stamp
@@ -87,25 +89,25 @@
                OPATH=$(debtmp)/$(octdir)/$(PACKAGE)     \
                XPATH=$(debtmp)/$(octbin)        \
                ALTMPATH=$(debtmp)/$(altmdir)           \
                ALTOPATH=$(debtmp)/$(altoctdir)         \
                prefix=$(debtmp)/usr            \
                mandir=$(debtmp)/usr/share/man
        rm -vf $(debtmp)/rasmol.sh
        touch install-stamp

 check:        check-stamp
 check-stamp:
        dh_testdir
-        -$(MAKE) check     OCTAVE=octave2.1
+        -$(MAKE) check     OCTAVE=octave-2.9.4
        touch check-stamp

 clean: unpatch
        dh_testdir
        dh_testroot
        -test -f configure-orig && mv configure-orig configure
        rm -f configure-stamp build-stamp install-stamp check-stamp
        -test -f Makefile && $(MAKE) clean
        -rm -rf *~ $(debtmp) debian/*~ debian/files* build    \
            config.status config.cache config.log conftest    \
            extra/symband/*.oct build.log            \
            main/fixed/doc/fixed.ps             \


with the command:

# touch main/sparse/NOINSTALL && debuild -us -uc -i.

It looks like there is a problem with fixedNDArray (full log at
http://webpages.charter.net/synergymusic/octave-forge_2005.06.13-11_amd64.build)


 Compiling fixedNDArray.o
 /usr/bin/g++ -c -fPIC -I/usr/include/octave-2.9.4
-I/usr/include/octave-2.9.4/octave -O2 -DHAVE_OCTAVE_29 -DOCTAVE_FORGE
-DHAVE_ND_ARRAYS -DTYPEID_HAS_CLASS -DCLASS_HAS_LOAD_SAVE
-DHAVE_OCTAVE_CONCAT -DHAVE_SWAP_BYTES -DHAVE_OCTAVE_UPLUS
fixedNDArray.cc -o fixedNDArray.o
 fixedNDArray.cc:407:59: error: macro "MX_ND_REDUCTION" passed 5
arguments, but takes just 3
 fixedNDArray.cc:421:61: error: macro "MX_ND_REDUCTION" passed 5
arguments, but takes just 3
 fixedNDArray.cc:436:61: error: macro "MX_ND_REDUCTION" passed 5
arguments, but takes just 3
 fixedNDArray.cc: In member function 'FixedNDArray
FixedNDArray::prod(int) const':
 fixedNDArray.cc:406: error: 'MX_ND_REDUCTION' was not declared in this scope
 fixedNDArray.cc: In member function 'FixedNDArray
FixedNDArray::sum(int) const':
 fixedNDArray.cc:420: error: 'MX_ND_REDUCTION' was not declared in this scope
 fixedNDArray.cc: In member function 'FixedNDArray
FixedNDArray::sumsq(int) const':
 fixedNDArray.cc:434: error: 'MX_ND_REDUCTION' was not declared in this scope
 make[3]: *** [fixedNDArray.o] Error 1

---snip--

make[3]: Leaving directory
`/home/colin/data/debian/octave/2.9transition/octave-forge-2005.06.13/main/symbolic'
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory
`/home/colin/data/debian/octave/2.9transition/octave-forge-2005.06.13/main'
Processing nonfree/
cd nonfree/ && /usr/bin/make -k  2>&1 || \
          echo "nonfree/ not complete. See log for details" >>../build.fail \
       | tee -a build.log
make[2]: Entering directory
`/home/colin/data/debian/octave/2.9transition/octave-forge-2005.06.13/nonfree'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/colin/data/debian/octave/2.9transition/octave-forge-2005.06.13/nonfree'
Build finished.
Please read FIXES/README before you install.
main/ not complete. See log for details
make[1]: *** [all] Error 1
make[1]: Leaving directory
`/home/colin/data/debian/octave/2.9transition/octave-forge-2005.06.13'
make: *** [build-stamp] Error 2


 any suggestions?



More information about the Pkg-octave-devel mailing list