On Mon, 9 Jan 2006, Martin Costabel wrote:
Viv Kendon wrote:
[]
error: `dispatch' undefined near line 2 column 1
error: near line 2 of file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
error: source: error sourcing file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
octave:1>
[]
b = rand (3, 2);
error: `rand' undefined near line 1 column 5
error: evaluating assignment expression near line 1, column 3
and later,
x = lsode ("f", x0, t);
error: `lsode' undefined near line 1 column 5
error: evaluating assignment expression near line 1, column 3
I can reproduce these same errors if I move the whole directory
/sw/lib/octave out of the way. This directory has the following structure:
% tree /sw/lib/octave -L 3
/sw/lib/octave
|-- 2.1.71
| |-- exec
| | `-- powerpc-apple-darwin
| |-- oct
| | `-- powerpc-apple-darwin
| `-- site
| |-- exec
| `-- oct
|-- ls-R
`-- site
|-- exec
| `-- powerpc-apple-darwin
`-- oct
|-- api-v13
`-- powerpc-apple-darwin
Do you have the same or something else?
The structure I have as above...
As for its size, I have
% du -k /sw/lib/octave
8 /sw/lib/octave/2.1.71/exec/powerpc-apple-darwin
8 /sw/lib/octave/2.1.71/exec
55004 /sw/lib/octave/2.1.71/oct/powerpc-apple-darwin
55004 /sw/lib/octave/2.1.71/oct
28 /sw/lib/octave/2.1.71/site/exec/powerpc-apple-darwin
28 /sw/lib/octave/2.1.71/site/exec
142376 /sw/lib/octave/2.1.71/site/oct/powerpc-apple-darwin/octave-forge
142376 /sw/lib/octave/2.1.71/site/oct/powerpc-apple-darwin
142376 /sw/lib/octave/2.1.71/site/oct
142404 /sw/lib/octave/2.1.71/site
197416 /sw/lib/octave/2.1.71
0 /sw/lib/octave/site/exec/powerpc-apple-darwin
0 /sw/lib/octave/site/exec
0 /sw/lib/octave/site/oct/api-v13/powerpc-apple-darwin
0 /sw/lib/octave/site/oct/api-v13
0 /sw/lib/octave/site/oct/powerpc-apple-darwin
0 /sw/lib/octave/site/oct
0 /sw/lib/octave/site
197420 /sw/lib/octave
...but it looks like something is missing out of
octave-forge: I have
8 octave/2.1.71/exec/powerpc-apple-darwin
8 octave/2.1.71/exec
55004 octave/2.1.71/oct/powerpc-apple-darwin
55004 octave/2.1.71/oct
28 octave/2.1.71/site/exec/powerpc-apple-darwin
28 octave/2.1.71/site/exec
128972 octave/2.1.71/site/oct/powerpc-apple-darwin/octave-forge
128972 octave/2.1.71/site/oct/powerpc-apple-darwin
128972 octave/2.1.71/site/oct
129000 octave/2.1.71/site
184012 octave/2.1.71
0 octave/site/exec/powerpc-apple-darwin
0 octave/site/exec
0 octave/site/oct/api-v13/powerpc-apple-darwin
0 octave/site/oct/api-v13
0 octave/site/oct/powerpc-apple-darwin
0 octave/site/oct
0 octave/site
184016 octave
However, this may not be the root of the problem. I started
a rebuild of octave-forge, and the same "dispatch" error
occurs in the configure stage:
Setting up fink-buildlock-octave-forge-2005.06.13-2
(2006.01.09-12.15.44) ...
gzip -dc /sw/src/octave-forge-2005.06.13.tar.gz |
/sw/bin/tar -xf - --no-same-owner --no-same-permissions
cp -f /sw/lib/fink/update/config.guess .
cp -f /sw/lib/fink/update/config.sub .
Default compiler has been set to:
gcc version 4.0.0 (Apple Computer, Inc. build 5026)
./configure --prefix=/sw --infodir='${prefix}/share/info'
--mandir='${prefix}/share/man'
checking for gcc... gcc-3.3
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc-3.3 accepts -g... yes
checking for gcc-3.3 option to accept ANSI C... none needed
checking for mkoctfile... mkoctfile
retrieving compile and link flags from mkoctfile
checking for F77_FUNC... yes
checking for SLList.h... no
checking for lo_ieee_nan_value... yes
checking for quit.h... yes
checking for octave... octave
checking for OCTAVE_VERSION in Octave... error: `dispatch'
undefined near line 2 column 1
error: near line 2 of file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
error: source: error sourcing file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
2.1.71
checking for octave_config_info('canonical_host_type') in
Octave... error: `dispatch' undefined near line 2 column 1
error: near line 2 of file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
error: source: error sourcing file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
powerpc-apple-darwin
checking for octave_config_info('SHLEXT') in Octave...
error: `dispatch' undefined near line 2 column 1
error: near line 2 of file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
error: source: error sourcing file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
dylib
checking whether ln -s works... yes
checking for a BSD-compatible install... /sw/bin/install -c
checking for ranlib... ranlib
checking for strip... strip
checking how to run the C preprocessor... gcc-3.3 -E
checking for X... libraries /usr/X11R6/lib, headers
/usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for do_fortran_indexing in Octave... error:
`dispatch' undefined near line 2 column 1
error: near line 2 of file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
error: source: error sourcing file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
no
checking for propagate_empty_matrices in Octave... error:
`dispatch' undefined near line 2 column 1
error: near line 2 of file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
error: source: error sourcing file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
no
checking for ok_to_lose_imaginary_part in Octave... error:
`dispatch' undefined near line 2 column 1
error: near line 2 of file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
error: source: error sourcing file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
no
checking for N-dim arrays... yes
checking for class in Octave... error: `dispatch' undefined
near line 2 column 1
error: near line 2 of file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
error: source: error sourcing file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
yes
checking for load/save functions in class... yes
checking for Octave_map indexing... no
checking for old Octave concatenation... no
checking for Octave concatenation... yes
checking for swap_8_bytes... no
checking for op_uplus... yes
checking for makeinfo... makeinfo
checking for makeinfo --no-split... yes
checking for texi2dvi... texi2dvi
checking that texi2dvi runs... yes
checking for texi2dvi --clean... yes
checking for texi2html... texi2html
checking for texi2html --clean... yes
checking for dvipdf... dvipdf
checking for dvips... dvips
checking IEEE 754 compliance... yes
checking for gawk... gawk
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking linux/soundcard.h usability... no
checking linux/soundcard.h presence... no
checking for linux/soundcard.h... no
checking resize and fill function... yes
checking for 6 argument MX_ND_REDUCTION... no
checking qhull/qhull_a.h usability... yes
checking qhull/qhull_a.h presence... yes
checking for qhull/qhull_a.h... yes
checking for qh_qhull in -lqhull... yes
checking for gsl_message in -lgsl... no
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_std_error in -ljpeg... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_set_sig_bytes in -lpng... yes
checking for socklen_t... yes
checking for octave_function(void)... yes
checking term.h usability... yes
checking term.h presence... yes
checking for term.h... yes
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking for tgetnum in -ltermcap... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking for pcre_compile in -lpcre... yes
checking for exist('struct')==5 in Octave... error:
`dispatch' undefined near line 2 column 1
error: near line 2 of file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
error: source: error sourcing file
`/sw/share/octave/2.1.71/site/m/octave-forge/comm//PKG_ADD'
1
checking for ginac-config... no
configure: creating ./config.status
config.status: creating Makeconf
config.status: creating octinst.sh
config.status: creating admin/RPM/octave-forge.spec
"$prefix" is /sw
"$exec_prefix" is ${prefix}
octave commands will install into the following directories:
m-files: /sw/share/octave/2.1.71/site/m/octave-forge
oct-files:
/sw/lib/octave/2.1.71/site/oct/powerpc-apple-darwin/octave-forge
binaries:
/sw/lib/octave/2.1.71/site/exec/powerpc-apple-darwin
alternatives:
m-files:
/sw/share/octave/2.1.71/site/octave-forge-alternatives/m
oct-files:
/sw/lib/octave/2.1.71/site/octave-forge-alternatives/oct/powerpc-apple-darwin
shell commands will install into the following directories:
binaries: ${exec_prefix}/bin
man pages: ${prefix}/share/man
libraries: ${exec_prefix}/lib
headers: ${prefix}/include
octave-forge is configured with
octave: octave (version 2.1.71)
mkoctfile: mkoctfile for Octave 71
X11 support: yes
makeinfo: makeinfo --no-split
texi2dvi: texi2dvi --clean
texi2html: texi2html -split_chapter -number
mkdoc:
/sw/src/fink.build/octave-forge-2005.06.13-2/octave-forge-2005.06.13/admin/mkdoc
mktexi:
/sw/src/fink.build/octave-forge-2005.06.13-2/octave-forge-2005.06.13/admin/mktexi
dvips: dvips
dvipdf: dvipdf
audio capture: linux/soundcard.h not found
geometry toolbox: yes
GSL toolbox: no
read/write image formats: jpeg, png
have term.h or termcap.h: yes
Perl compatible regular expressions: pcre
symbolic toolbox: GiNaC not found --- see
main/symbolic/INSTALL
find . -name NOINSTALL -print # shows which toolboxes
won't be installed
make
Processing FIXES/
cd FIXES/ && make -k 2>&1 || \
echo "FIXES/ not complete. See log for details"
../build.fail \
| tee -a build.log
mkoctfile -DHAVE_OCTAVE_21 -v -DALLBITS -DHAVE_ND_ARRAYS
rand.cc
....
I will report if anything improves once the rebuilt
octave-forge is installed (I doubt it).
in /sw/lib/octave I also did:
find . -name "dispatch*" -ls
5636693 3144 -rwxr-xr-x 1 root admin 1605840 3
Nov 15:20
./2.1.71/site/oct/powerpc-apple-darwin/octave-forge/dispatch.oct
5637530 8 lrwxr-xr-x 1 root admin 12 3
Nov 15:26
./2.1.71/site/oct/powerpc-apple-darwin/octave-forge/dispatch_help.oct
-> dispatch.oct
Don't know if this gives any clues. There are lots of files
and symlinks in that dir, yet (from the comparison of du
above) some things are missing...but this could be because
they didn't build because of the config stage error building
octave-forge, and the real error is somewhere in octave
itself...
many thanks...
-- Viv
------------------------------------------------
Dr Viv Kendon [EMAIL PROTECTED]
Quantum Information tel: 0113 343 3858
Physics & Astronomy University of Leeds
http://quantum.leeds.ac.uk/~viv
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users