* Tried to downgrade to libmyodbc_3.51.11-6.1_i386.deb. ..no luck.. same
error.

* Tried to comment out "ifdef HAVE_ODBC.. endif" in makefile. ..no luck..
same error.

* Tried to comment out odbc statment in PKG_ADD  ..no luck.. same error.

/Anders

2009/3/8 kalle boll

> Dear database package maintainers and forge developers,
>
> I detected this bug when running a database package install on Open Suse
> (stable/latest updates - ia64) and Ubuntu (8.10 and Jaunty alpha 5 - i388).
> This happens with Octave 3.0.0, 3.0.1 and 3.0.4.
>
> "octave:7> pkg install database-1.0.1.tar.gz
> mysql_wrap.cpp: In function ‘octave_value_list
> _wrap_mysql_odbc_escape_string(const octave_value_list&, int)’:
> mysql_wrap.cpp:14561: error: ‘mysql_odbc_escape_string’ was not declared in
> this scope
> make: *** [mysql.oct] Error 1
> error: 'make' returned the following error: make: Entering directory
> `/tmp/oct-ng4uDk/database-1.0.1/src'
> CXXFLAGS="-g" mkoctfile -DHAVE_OCTAVE_30 -v -o mysql.oct -lmysqlclient
> mysql_wrap.cpp
> g++ -c -fPIC -I/usr/include/octave-3.0.4 -I/usr/include/octave-3.0.4/octave
> -mieee-fp -g -DHAVE_OCTAVE_30 mysql_wrap.cpp -o mysql_wrap.o
> make: Leaving directory `/tmp/oct-ng4uDk/database-1.0.1/src'
> error: called from `pkg:configure_make' in file
> /usr/share/octave/3.0.4/m/pkg/pkg.m near line 1248, column 2"
>
> That problem seems to be related to libmyodbc (mysql_wrap.cpp:14561) and
> this update from MySQL:
>
> "The mysql_odbc_escape_string() C API function has been removed. It has
> multi-byte character escaping issues, doesn't honor the NO_BACKSLASH_ESCAPES
> SQL mode and is not needed anymore by Connector/ODBC as of 3.51.17.
> (Bug#29592)"
>
> Perhaps ubuntus/suse/debian distros included this update without altering
> the version number to from 3.51.15 to 3.51.17. I tried running the same
> install with libmyodbc 3.51.17 (downloaded from mysql.com)... ..still no
> luck. Not sure if the database package or swig will need a patch to deal
> with mysql_odbc_escape_string?
>
> * http://packages.debian.org/squeeze/libmyodbc (libmyodbc 3.51.15)
> * http://forums.mysql.com/read.php?37,243625,243982#msg-243982 (with
> libmyodbc 3.51.17)
>
> Workarounds would be appreciated?
>
> Kind regards
> /Anders Hall
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to