MySQL Forums
Forum List  »  Connector/ODBC

Re: [RHEL 5][MyODBC 5.1] rpm installation problems
Posted by: Łukasz Adamczyk
Date: August 13, 2008 02:43AM

I upgraded my unixODBC from 2.2.11 to 2.2.12, unfortunately manually, from source package, because RHEL 5 last version is 2.2.11

Only one specific option I've used was ./configure --enable-stats=no

Next I downloaded binary but not rpm package of mysql-odbc-connector and configure odbc.ini:

[foobar]
Description = Table: foobar
Driver = myodbc
Server = some_ip
Database = some_database
Port = 3306
Username = some_user
Password = some_password

odbcinst.ini:

[myodbc]
Description = ODBC for MySQL
Driver = /lib/libmyodbc5-5.1.4.so
FileUsage = 1

and

[root@foobar lib]# isql -v foobar
Naruszenie ochrony pamięci (eng. Segmentation fault)

Then I've installed gdb and I've tried to get more informations:

[root@foobar lib]# gdb isql
GNU gdb Red Hat Linux (6.5-37.el5_2.2rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run foobar
Starting program: /usr/local/bin/isql foobar
[Thread debugging using libthread_db enabled]
[New Thread -1208313152 (LWP 31294)]
[New Thread -1210545264 (LWP 31297)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208313152 (LWP 31294)]
0x005d88ce in sqlchar_as_sqlwchar (charset_info=0x67e000, str=0x0, len=0xbf955070, errors=0xbf955078) at stringutil.c:56
56 stringutil.c: Nie ma takiego pliku ani katalogu. (eng. No such file or directory)
in stringutil.c


Can You help me with this problem?

I know that errors are from isql (unixODBC) and this is mysql forum, but when I'm using 3.51 version of myodbc is everyting ok.



Edited 1 time(s). Last edit at 08/13/2008 03:07AM by Łukasz Adamczyk.

Options: ReplyQuote


Subject
Written By
Posted
Re: [RHEL 5][MyODBC 5.1] rpm installation problems
August 13, 2008 02:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.