help-octave
[Top][All Lists]
Advanced

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

Re: undefined references while linking


From: Marc Weber
Subject: Re: undefined references while linking
Date: Tue, 21 Oct 2008 20:31:15 +0200
User-agent: Mutt/1.5.15 (2007-04-06)

On Tue, Oct 21, 2008 at 10:43:29AM -0400, John W. Eaton wrote:
> On 21-Oct-2008, Jaroslav Hajek wrote:
> 
> | this should already be fixed in development version.
> 
> Yes, the Octave sources only include the BLAS functions that are
> actually needed, and we missed a few.  But we might also ask why you
> are not using ATLAS to improve performance.  What kind of system are
> you using?  Is there not a package for ATLAS on that system?

Sure,

I tried to have a look at the homework of a friend. His university is
using Matlab. I'm working with nixos (www.nixos.org), a linux
distribution based on the pure package management system nix.
And the package which was present was pretty old. So I tried to just use
a newer tarball. For that homework speed didn't matter at all.
The distribution system only cares about i686 or x64_68. I didn't want
to spend much time on figuring out which packages to add as well..
But maybe I'll take the time to add a working atlas now as well because
it does take that long to compile octave with the atlas/blas fallback
library shipped with octave. In the end it might have been faster :)

Anyway I'd like to tell you that the dev version didn't work for me (1)
Don't spend time on that because of me. I'll try using atlas.

Sincerly
Marc Weber


(1) Failing dev version:

changeset:   8248:08bb64396685
summary:     orient.m: Fix syntax error.

I've tried ./autogen.sh; ./configure <opts> && make

[...]
 g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc
-DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -g -O2 help.cc -o
pic/help.o
help.cc: In function 'void display_help_text(std::ostream&, const
std::string&)':
help.cc:813: warning: use of old-style cast
help.cc:813: warning: use of old-style cast
help.cc:817: warning: use of old-style cast
building pic/input.o
 g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc
-DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -g -O2 input.cc -o
pic/input.o
building pic/lex.o
 g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc
-DHAVE_CONFIG_H -Wall -W -Wshadow -g -O2 lex.cc -o pic/lex.o
lex.h:144: warning: 'class stream_reader' has virtual functions but
non-virtual destructor
lex.l: In function 'int is_keyword_token(const std::string&)':
lex.l:1037: error: expected initializer before '*' token
lex.l:1039: error: 'kw' was not declared in this scope
lex.l:1045: error: 'break_kw' was not declared in this scope
lex.l:1046: error: 'case_kw' was not declared in this scope
lex.l:1047: error: 'catch_kw' was not declared in this scope
lex.l:1048: error: 'continue_kw' was not declared in this scope
lex.l:1049: error: 'else_kw' was not declared in this scope
lex.l:1050: error: 'elseif_kw' was not declared in this scope
lex.l:1051: error: 'global_kw' was not declared in this scope
lex.l:1052: error: 'otherwise_kw' was not declared in this scope
lex.l:1053: error: 'return_kw' was not declared in this scope
lex.l:1054: error: 'static_kw' was not declared in this scope
lex.l:1055: error: 'until_kw' was not declared in this scope
lex.l:1056: error: 'unwind_protect_cleanup_kw' was not declared in this
scope
lex.l:1059: error: 'end_kw' was not declared in this scope
lex.l:1077: error: 'end_try_catch_kw' was not declared in this scope
lex.l:1082: error: 'end_unwind_protect_kw' was not declared in this
scope
lex.l:1087: error: 'endfor_kw' was not declared in this scope
lex.l:1092: error: 'endfunction_kw' was not declared in this scope
lex.l:1104: error: 'endif_kw' was not declared in this scope
lex.l:1109: error: 'endswitch_kw' was not declared in this scope
lex.l:1114: error: 'endwhile_kw' was not declared in this scope
lex.l:1119: error: 'for_kw' was not declared in this scope
lex.l:1120: error: 'while_kw' was not declared in this scope
lex.l:1124: error: 'do_kw' was not declared in this scope
lex.l:1129: error: 'if_kw' was not declared in this scope
lex.l:1130: error: 'try_kw' was not declared in this scope
lex.l:1131: error: 'switch_kw' was not declared in this scope
lex.l:1132: error: 'unwind_protect_kw' was not declared in this scope
lex.l:1137: error: 'function_kw' was not declared in this scope
lex.l:1178: error: 'magic_file_kw' was not declared in this scope
lex.l:1188: error: 'magic_line_kw' was not declared in this scope
lex.l:1035: warning: unused variable 'len'
lex.l: At global scope:
lex.l:1458: warning: 'class flex_stream_reader' has virtual functions
but non-virtual destructor
lex.l: In function 'bool is_keyword(const std::string&)':
lex.l:2609: error: 'octave_kw_hash' has not been declared
lex.l:2609: error: 'in_word_set' was not declared in this scope
lex.l: In function 'octave_value_list Fiskeyword(const
octave_value_list&, int)':
lex.l:2630: error: 'TOTAL_KEYWORDS' was not declared in this scope
lex.l:2633: error: 'wordlist' was not declared in this scope
make[2]: *** [pic/lex.o] Error 1
make[2]: Leaving directory
`/tmp/nix-build-rsnccvjs5l6c5zajcqn68dfylzjssxh7-octave-hg.drv-0/nix_repsoitory_manager_tmp_dir/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory
`/tmp/nix-build-rsnccvjs5l6c5zajcqn68dfylzjssxh7-octave-hg.drv-0/nix_repsoitory_manager_tmp_dir'
make: *** [all] Error 2



reply via email to

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