Octave doesn't compile from a clean install of macports on leopard. I installed macports on an otherwise blank system and then ran "sudo port install octave". After successfully building its dependencies, the following error message came out:
---> Fetching octave
---> Attempting to fetch octave-2.9.15.tar.bz2 from ftp://ftp.octave.org/pub/octave/bleeding-edge/
---> Verifying checksum(s) for octave
---> Extracting octave
---> Applying patches to octave
---> Configuring octave
---> Building octave with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_octave/work/octave-2.9.15" && make all " returned error 2
Command output: make -C testfun all
making PKG_ADD
ls: *.cc: No such file or directory
make -C time all
making PKG_ADD
ls: *.cc: No such file or directory
/opt/local/bin/g++-mp-4.2 -O2 -o gethelp gethelp.cc -L/opt/local/lib
./mkdoc . > DOCSTRINGS.t
mv DOCSTRINGS.t DOCSTRINGS
make -C doc all
making conf.texi from conf.texi.in
make -C faq all
makeinfo --html --ifinfo --no-split --output=Octave-FAQ.html -I.. -I. -I./.. Octave-FAQ.texi
make -C interpreter all
make -C ../../src DOCSTRINGS
making defaults.h from defaults.h.in
defaults.h is unchanged
making oct-conf.h from oct-conf.h.in
oct-conf.h is unchanged
making DOCSTRINGS
DOCSTRINGS is unchanged
make -C ../../scripts DOCSTRINGS
make[4]: `DOCSTRINGS' is up to date.
/opt/local/bin/g++-mp-4.2 -O2 -o munge-texi munge-texi.cc -L/opt/local/lib
making arith.texi from arith.txi
/bin/sh: line 1: 79233 Segmentation fault ./munge-texi -d ../../src/DOCSTRINGS -d ../../scripts/DOCSTRINGS < arith.txi > arith.texi-t
make[3]: *** [arith.texi] Error 139
make[2]: *** [interpreter] Error 2
make[1]: *** [doc] Error 2
make: *** [all] Error 2
Error: Status 1 encountered during processing.