Ppc exported symbols missing in _mysql.so

Hi, all

I have had recent problems running CPAnalyst on an MacOSX 10.5.8 ppc machine. When starting up CPAnalyst, I receive an error:
ImportError: dynamic module does not define init function (init_mysql)

So, I tracked down the library responsible:

I am using file and dyldinfo commands to look at the symbols in the library, and here’s what I see:

phosphorus:lib-dynload chenry$ file _mysql.so
_mysql.so: Mach-O universal binary with 2 architectures
_mysql.so (for architecture i386): Mach-O bundle i386
_mysql.so (for architecture ppc): Mach-O bundle ppc

lib-dynload chenry$ dyldinfo -arch i386 -export _mysql.so
export information (from symbol table):
0x00123760 _LOCK_gethostbyname_r
0x001236CC _THR_KEY_mysys

0x00003B7C _init_mysql

(lots of exported symbols)

However, when I look at the ppc architecture of exported symbols in the _mysql.so library:
lib-dynload chenry$ dyldinfo -arch ppc -export _mysql.so
export information (from symbol table):


I suspect this is the crux of the problem here, a compilation problem that omits the required ppc symbols. Please let me know if you have different results with the dyldinfo tests, or another possible explanation for the problem.


I’m so sorry to have gotten around to this so late. It appears that I didn’t get alerted to this message being posted. Do let me know if you were able to resolve your problem or have any other questions and I’ll be sure to get back to you as soon as possible.