bugGNU Octave - Bugs: bug #30090, Database Package No Longer Working...

 
 

bug #30090: Database Package No Longer Working with Version 3.2.4 on OpenSUSE 11.1

Submitted by:  Bruce G. Williams <brucegwilliams>
Submitted on:  Wed 09 Jun 2010 02:42:00 AM UTC  
 
Category: Configuration and Build SystemSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Installation Failure
Status: Octave ForgeAssigned to: None
Originator Name: brucegwilliamsOpen/Closed: Closed
Release: 3.2.4Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Tue 15 Jun 2010 02:58:41 AM UTC, comment #6:

After consideration, this bug properly applies to Octave Forge rather than Octave. The mailing list for Octave Forge is octave-dev@lists.sourceforge.net. They have been added to the CC list for this bug. This bug will be closed on the Octave bug tracker.

Rik <rik5>
Project Administrator
Thu 10 Jun 2010 08:15:21 PM UTC, comment #5:

Response to Follow-up Comments #4, bug #30090 (project octave):

1) look for source of SWIG file(s)

% su
# cd /usr/local/share
# mkdir database
# cd database
# mv /home/brucegwilliams1234/Download/database-1.0.4.tar.gz .
# gunzip database-1.0.4.tar.gz
# tar xvf database-1.0.4.tar
# cd database-1.0.4
# ./configure
--------------------------- (partial listing)
octave-forge is configured with
octave: octave (version 3.2.4)
mkoctfile: mkoctfile for Octave 4
swig: pre-generated
postgres: postgresql/libpq-fe.h not found
mysql: yes
sqlite3: yes
odbc: yes

# cd src
# ls
autogen.sh
configure
libpq-fe_filtered.h
Makefile
mysql_wrap.cpp
pg_type_filtered.h
README
sqlite3_filtered.h
sqltypes_filtered.h
config.log
configure.base
Makeconf
mysql_filtered.h
odbc.i
postgres.i
sqlext_filtered.h
sqlite3.i
tests
config.status
generic_db.h
Makeconf.in
mysql.i
odbc_wrap.cpp
postgres_wrap.cpp
sql_filtered.h
sqlite3_wrap.cpp

Conclusion: SWIG .i interface files are included in this directory and are preprocessed using swig to generate the _wrap.cpp files.

These are the files that the compiler can no longer locate
based on Dr. John Eaton's comments. Perhaps these were used
"early" for easy interface of Octave to these database
functions BUT NOW are no longer needed due to direct
programming/re-writing of Octave version 3.2.4.

If so, it looks like *.i interface files should be removed and
make/build process modified to not run swig. Just guessing
since not involved directly in this process.

Regards,
Bruce G. Williams
Colorado Springs, CO

PS: Go Badgers...

Bruce G. Williams <brucegwilliams>
Thu 10 Jun 2010 04:12:05 PM UTC, comment #4:

Unless mysql.cpp has been updated in some way, it will still fail to compile with Octave 3.2 or any later version because the symbol table for Octave variables was completely redesigned for Octave 3.2. Octave no longer has the variables that are shown as missing in the error messages.

The message also has some reference to swig. Was the mysql.cpp function generated by swig? Were the parts of that file that refer to the symbol table generated by swig? If so, I guess the problem needs to be fixed there. If not, then the problem is with the package because it needs to be updated for Octave 3.2 and later. Either way, I don't think this is a bug in Octave.

John W. Eaton <jwe>
Project Administrator
Thu 10 Jun 2010 04:00:36 PM UTC, comment #3:

If you can build from the 3.2.4 sources you should be able to build from the Mercurial development sources. When I tested successfully it was with the development sources, rather than 3.2.4. My supposition is that the issues have been resolved because there was some work around octave variables and symbol tables recently.

If you scroll to the bottom of http://www.gnu.org/software/octave/download.html there are instructions for getting the source from Mercurial. You will also need git and gnulib.

Rik <rik5>
Project Administrator
Thu 10 Jun 2010 06:30:37 AM UTC, comment #2:

I compiled Octave 3.2.4 on openSUSE from source...no problems.
I was able to install the following packages in Octave 3.2.4:
octave:1> pkg list
Package Name | Version | Installation directory
-------------------+---------+-----------------------
audio *| 1.1.4 | /usr/local/share/octave/packages/audio-1.1.4
communications *| 1.0.10 | /usr/local/share/octave/packages/communications-1.0.10
control *| 1.0.11 | /usr/local/share/octave/packages/control-1.0.11
gsl *| 1.0.8 | /usr/local/share/octave/packages/gsl-1.0.8
image *| 1.0.12 | /usr/local/share/octave/packages/image-1.0.12
integration | 1.0.7 | /usr/local/share/octave/packages/integration-1.0.7
io *| 1.0.9 | /usr/local/share/octave/packages/io-1.0.9
linear-algebra *| 1.0.8 | /usr/local/share/octave/packages/linear-algebra-1.0.8
mapping | 1.0.7 | /usr/local/share/octave/packages/mapping-1.0.7
miscellaneous *| 1.0.9 | /home/brucegwilliams/octave/miscellaneous-1.0.9
optim *| 1.0.6 | /usr/local/share/octave/packages/optim-1.0.6
optiminterp *| 0.3.2 | /usr/local/share/octave/packages/optiminterp-0.3.2
physicalconstants *| 0.1.7 | /usr/local/share/octave/packages/physicalconstants-0.1.7
quaternion *| 1.0.0 | /usr/local/share/octave/packages/quaternion-1.0.0
signal *| 1.0.10 | /usr/local/share/octave/packages/signal-1.0.10
specfun *| 1.0.8 | /usr/local/share/octave/packages/specfun-1.0.8
splines *| 1.0.7 | /usr/local/share/octave/packages/splines-1.0.7
statistics *| 1.0.9 | /usr/local/share/octave/packages/statistics-1.0.9

The only package that did not work for me was
database-1.0.4.tar.gz, which did work with Octave 3.0.2

Bruce G. Williams <brucegwilliams>
Wed 09 Jun 2010 09:31:26 PM UTC, comment #1:

Installation works fine using a development version (10692:b32a0214a464) running on Ubuntu 9.10. You might want to try compiling Octave from mercurial sources to see whether the problem is related to 3.2.4 or only to your specific configuration.

Rik <rik5>
Project Administrator
Wed 09 Jun 2010 02:42:00 AM UTC, original submission:

Recently upgraded from Octave Version 3.0.2 to Version 3.2.4
I am using openSUSE 11.1 Linux
Previously, with Octave version 3.0.2, database-1.0.4.tar.gz with MySQL worked fine.
Now, after build, test, install of Octave version 3.2.4, this
package no longer can be installed:
-----------------------------------------------------------
# octave
GNU Octave, version 3.2.4
Copyright (C) 2009 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.

Octave was configured for "i686-pc-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <bug@octave.org> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

For information about changes from previous versions, type `news'.

warning: mark_as_command is obsolete and will be removed from a future version of Octave

octave:1> pkg install database-1.0.4.tar.gz

mysql_wrap.cpp: In member function ‘void octave_swig_type::install_global()’:
mysql_wrap.cpp:1197: error: ‘curr_sym_tab’ was not declared in this scope
mysql_wrap.cpp:1197: error: ‘link_to_global_variable’ was not declared in this scope
mysql_wrap.cpp:1204: error: ‘symbol_record’ was not declared in this scope
mysql_wrap.cpp:1204: error: ‘sr’ was not declared in this scope
mysql_wrap.cpp:1204: error: ‘global_sym_tab’ was not declared in this scope
mysql_wrap.cpp: In function ‘void SWIG_Octave_SetModule(void, swig_module_info)’:
mysql_wrap.cpp:2110: error: ‘curr_sym_tab’ was not declared in this scope
mysql_wrap.cpp:2110: error: ‘link_to_global_variable’ was not declared in this scope
mysql_wrap.cpp: In function ‘octave_value_list Fmysql(const octave_value_list&, int)’:
mysql_wrap.cpp:20790: error: ‘curr_sym_tab’ was not declared in this scope
mysql_wrap.cpp:20790: error: ‘link_to_global_variable’ was not declared in this scope
make: *** [mysql.oct] Error 1
'make' returned the following error: make: Entering directory `/tmp/oct-U82Foc/database-1.0.4/src'
CXXFLAGS="-g -I/usr/include/freetype2" mkoctfile -DHAVE_OCTAVE_32 -v -o mysql.oct -lmysqlclient mysql_wrap.cpp
g++ -c -I/usr/include/freetype2 -fPIC -I/usr/local/include/octave-3.2.4 -I/usr/local/include/octave-3.2.4/octave -I/usr/local/include -mieee-fp -g -I/usr/include/freetype2 -DHAVE_OCTAVE_32 mysql_wrap.cpp -o mysql_wrap.o
make: Leaving directory `/tmp/oct-U82Foc/database-1.0.4/src'
error: called from `pkg>configure_make' in file /usr/local/share/octave/3.2.4/m/pkg/pkg.m near line 1253, column 2
error: called from:
error: /usr/local/share/octave/3.2.4/m/pkg/pkg.m at line 714, column 5
error: /usr/local/share/octave/3.2.4/m/pkg/pkg.m at line 287, column 7

Bruce G. Williams <brucegwilliams>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by brucegwilliams (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 15 Jun 2010 02:58:41 AM UTCrik5StatusWorks For Me=>Octave Forge
      Open/ClosedOpen=>Closed
      Carbon-Copy-=>Added -unavailable-
    Wed 09 Jun 2010 09:31:26 PM UTCrik5StatusNone=>Works For Me

    Back to the top


    Powered by Savane 3.1-cleanup1