SWIG generates code that is not compatible with octave 3.2. I'm
looking into that / plan to fix soon.

Xavier

On Sun, Jul 5, 2009 at 12:51 AM, Tatsuro MATSUOKA<[email protected]> wrote:
> Hello
>
> Platform:windows xp home, Language:GCC-4.3.3-tdm-dw2
> target database odbc(windows) sqlite-3.6.16 (built my self with 
> -DSQLITE_ENABLE_COLUMN_METADATA).
>
>
> octave >pgg install database-1.0.4
> sqlite3_wrap.cpp: In member function 'void 
> octave_swig_type::install_global()':
> sqlite3_wrap.cpp:1197: error: 'curr_sym_tab' was not declared in this scope
> sqlite3_wrap.cpp:1197: error: 'link_to_global_variable' was not declared in 
> this scope
> sqlite3_wrap.cpp:1204: error: 'symbol_record' was not declared in this scope
> sqlite3_wrap.cpp:1204: error: 'sr' was not declared in this scope
> sqlite3_wrap.cpp:1204: error: 'global_sym_tab' was not declared in this scope
> sqlite3_wrap.cpp: In function 'void SWIG_Octave_SetModule(void*, 
> swig_module_info*)':
> sqlite3_wrap.cpp:2110: error: 'curr_sym_tab' was not declared in this scope
> sqlite3_wrap.cpp:2110: error: 'link_to_global_variable' was not declared in 
> this scope
> sqlite3_wrap.cpp: In function 'octave_value_list 
> _wrap_sqlite3_auto_extension(const
> octave_value_list&, int)':
> sqlite3_wrap.cpp:6861: error: invalid conversion from 'void*' to 'void (*)()'
> sqlite3_wrap.cpp:6861: error:   initializing argument 1 of 'int 
> sqlite3_auto_extension(void (*)())'
> sqlite3_wrap.cpp: In function 'octave_value_list Fsqlite3(const 
> octave_value_list&, int)':
> sqlite3_wrap.cpp:10430: error: 'curr_sym_tab' was not declared in this scope
> sqlite3_wrap.cpp:10430: error: 'link_to_global_variable' was not declared in 
> this scope
> mingw32-g++-4.3.3-dw2: sqlite3_wrap.o: No such file or directory
> make: *** [sqlite3.oct] Error 1
> 'make' returned the following error: make: Entering directory 
> `/tmp/oct-75/database-1.0.4/src'
> CXXFLAGS="-O3 -fomit-frame-pointer" mkoctfile -DHAVE_OCTAVE_32 -v -o 
> sqlite3.oct -lsqlite3
> sqlite3_wrap.cpp
> mingw32-g++-4.3.3-dw2 -c -IC:/Programs/MinGW/lib/gcc/mingw32/4.3.3-dw2/include
> -Ic:/Programs/OctaveBuild/include -Ic:/Pr
> ograms/WinDevTools/include -Ic:/Programs/GnuWin32/include
> -Ic:\programs\octavebuild\include\octave-3.2.1 -Ic:\programs\
> octavebuild\include\octave-3.2.1\octave -Ic:\programs\octavebuild\include 
> -mieee-fp
> -I/WinDevTools/include/freetype2 -I/
> WinDevTools/include -O3 -fomit-frame-pointer    -DHAVE_OCTAVE_32 
> sqlite3_wrap.cpp -o sqlite3_wrap.o
>
> The case error can be easily avoided
> sqlite3_wrap.cpp:6861: error: invalid conversion from 'void*' to 'void (*)()'
> sqlite3_wrap.cpp:6861: error:   initializing argument 1 of 'int 
> sqlite3_auto_extension(void (*)())'
> sqlite3_wrap.cpp:6861:
> From
>  result = (int)sqlite3_auto_extension(arg1);
> To
>  result = (int)sqlite3_auto_extension(void (*)()arg1);
>
> However I cannot find out the origin of other errors.
> The below is the result of ./configure as a reference
>
> $ ./configure
> checking for gcc... mingw32-gcc-4.3.3-dw2
> checking for C compiler default output file name... a.exe
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables... .exe
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether mingw32-gcc-4.3.3-dw2 accepts -g... yes
> checking for mingw32-gcc-4.3.3-dw2 option to accept ISO C89... 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 octave_idx_type... yes
> checking for quit.h... yes
> checking for octave... octave
> checking for OCTAVE_VERSION in Octave... 3.2.1
> checking for octave_config_info('canonical_host_type') in Octave... 
> i686-pc-mingw32
> checking for octave_config_info('SHLEXT') in Octave... dll
> checking whether ln -s works... yes
> checking for ranlib... ranlib
> checking for strip... strip
> checking how to run the C preprocessor... mingw32-gcc-4.3.3-dw2 -E
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/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 postgresql/libpq-fe.h usability... no
> checking postgresql/libpq-fe.h presence... no
> checking for postgresql/libpq-fe.h... no
> checking mysql/mysql.h usability... no
> checking mysql/mysql.h presence... no
> checking for mysql/mysql.h... no
> checking sqlite3.h usability... yes
> checking sqlite3.h presence... yes
> checking for sqlite3.h... yes
> checking for sql.h... yes
> configure: creating ./config.status
> config.status: creating Makeconf
>
>  "$prefix" is /usr/local
>  "$exec_prefix" is ${prefix}
>
> octave commands will install into the following directories:
>   m-files:   c:/Programs/OctaveBuild/share/octave/3.2.1/site/m/octave-forge
>   oct-files: 
> c:/Programs/OctaveBuild/libexec/octave/3.2.1/site/oct/i686-pc-mingw32/octave-forge
>   binaries:  
> c:/Programs/OctaveBuild/libexec/octave/3.2.1/site/exec/i686-pc-mingw32
> alternatives:
>   m-files:   
> c:/Programs/OctaveBuild/share/octave/3.2.1/site/octave-forge-alternatives/m
>   oct-files:
> c:/Programs/OctaveBuild/libexec/octave/3.2.1/site/octave-forge-alternatives/oct/i686-pc-mingw32
>
> shell commands will install into the following directories:
>   binaries:  ${exec_prefix}/bin
>   man pages: ${datarootdir}/man
>   libraries: ${exec_prefix}/lib
>   headers:   ${prefix}/include
>
> octave-forge is configured with
>   octave:      octave (version 3.2.1)
>   mkoctfile:   mkoctfile for Octave 1
>   swig:        pre-generated
>   postgres:    postgresql/libpq-fe.h not found
>   mysql:       mysql/mysql.h not found
>   sqlite3:     yes
>   odbc:        yes
>
> Any suggestions?
>
> Regards
>
> Tatsuro
>
>
> --------------------------------------
> Power up the Internet with Yahoo! Toolbar.
> http://pr.mail.yahoo.co.jp/toolbar/
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Octave-dev mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/octave-dev
>

------------------------------------------------------------------------------
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to