Bug #7865 my_init missing in MyODBC (static linkage) for HP-UX
Submitted: 13 Jan 2005 9:45 Modified: 15 Mar 2007 20:33
Reporter: Anders Karlsson Email Updates:
Status: Closed Impact on me:
Category:Connector / ODBC Severity:S3 (Non-critical)
Version:3.51.07 OS:HP/UX (HP-UX)
Assigned to: Kent Boortz CPU Architecture:Any

[13 Jan 2005 9:45] Anders Karlsson
Accessing MySQL through MyODBC on HP-UX causes the ODBC driver to end, with a message that my_init() is missing. This is in the version which supposedly should have static linkage. This behaviour is also noted as part of bug #3301, but I wanted to make this a separate bug, to make sure it gets fixed, as #3301 really is concerned with another subject, i.e. static vs. dynamic linkage in general.

How to repeat:
Easiest it to use iODBC for this:
- Install iODBC.
- Install MyODBC.
- Configure MyODBC in odbc.ini (note that the example odbc.ini with MyODBC is incorrect on HP-UX).
- Run the iODBC iodbctest utility with your configured DSN, for example:
$ idobctest "DSN=MyODBCTest"
MyODBC will fail to load, and a core-dump will be produced.
[11 Feb 2005 19:24] Peter Harvey
One should not install more than one driver manager on a system at a time. Doing so may result in a mismatched set of bin's and lib's.
Should try 3.51.11.
Support - please consider closing.
[11 Feb 2005 19:53] Anders Karlsson
Where is more than 1 odbc DM installed in the reproducible case?
[18 Feb 2005 16:25] Peter Harvey
1. can customer try 3.51.11?
2. what version of HP-UX are we talking about (use downloads page as guide)?
3. we build against unixODBC and a binary for it can be provided. using iodbc *should* be ok but this not always the case
[8 Nov 2005 8:10] Fredrik Trotzig
I had the same problem as previous poster with my_init missing.
Maybe this should be placed in a new bug #.
So i tried HP-UX 11.11 (PA-RISC 2.0, 64-bit only) 3.51.11
It's complaining about missing lib in.

Then it would be nice with HP-UX 11.11 (PA-RISC 1.1) bins for followup.

Br Fredrik
[15 Mar 2007 20:33] Kent Boortz
Thank you for your bug report. This issue has been fixed in
the latest released version of that product, which you can
download at


In 3.51.14 the MySQL client library is linked into the driver,
and loading is tested from unixODBC on multiple HP-UX platforms,
32 and 64 bits, without any problems with missing symbols.