Hello,

I am experiencing a problem when compiling QT 3.0 (trolltech.com) (OS: OS X
10.1.2) with their mysql/libmysqlclient.a (ver: 3.23.49) SQL driver support
module, and based on trolltech's responses and other people experiencing
this same problem with other development environments (cocoa, c++) I believe
my config / make of mysql's libmysqlclient.a may be set up incorrectly.

with source,prebuilt and an installer I have run into the same error below:

-----lots of QT 3.0 compile output above
ld: common symbols not allowed with MH_DYLIB output format
/usr/local/mysql/lib/mysql/libmysqlclient.a(my_error.o) definition of common
_errbuff (size 512)
/usr/bin/libtool: internal link edit command failed
make[2]: *** [../lib/libqt.dylib.3.0.3] Error 1
make[1]: *** [sub-src] Error 2
make: *** [init] Error 2

Steps I used to build mysql:

downloaded source tar and uncompressed
./configure --prefix=/usr/local/mysql
then sudo make install... (except for errors in libmysqlclient.a its seems
to compile ok)

afterwards i then run the QT 3.0 config command below

./configure -shared -qt-sql-mysql  -I/usr/local/mysql/include/mysql
-L/usr/local/mysql/lib/mysql -lz -lm

And after an 1 hour of compiling, QT gets to the SQL modules and gets this
error:

.......
elease/moc_qcdestyle.o .obj/release/moc_qmotifplusstyle.o
.obj/release/moc_qplatinumstyle.o .obj/release/moc_qsgistyle.o
.obj/release/moc_qwindowsstyle.o .obj/release/moc_qmotifstyle.o
-L/usr/local/mysql/lib/mysql -framework OpenGL -framework AGL -lz -lm
-framework Carbon -framework QuickTime -lmysqlclient -lz
ld: common symbols not allowed with MH_DYLIB output format
/usr/local/mysql/lib/mysql/libmysqlclient.a(my_error.o) definition of common
_errbuff (size 512)
/usr/bin/libtool: internal link edit command failed
make[2]: *** [../lib/libqt.dylib.3.0.3] Error 1
make[1]: *** [sub-src] Error 2
make: *** [init] Error 2
[localhost:~/QtMac/qt] lou%


This is what I get when I run ranlib:

[localhost:mysql/lib/mysql] lou% sudo ranlib libmysqlclient.a
ranlib: file: libmysqlclient.a(my_pthread.o) has no symbols
ranlib: file: libmysqlclient.a(my_thr_init.o) has no symbols
ranlib: file: libmysqlclient.a(thr_mutex.o) has no symbols
ranlib: file: libmysqlclient.a(bmove.o) has no symbols


It seems that when QT compiles in the "libmysqlclient.a" there is something
in the way that is was compiled that is causing QT to choke.

Does anyone have any ideas? Can this be fixed by recompiling the mysql libs
alone?

thanks,

lou

ps. Disclaimer: I have tried the QT list and QT support and we think the
problem is in my mysql's setup 


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to