http://underpop.online.fr/n/nielshorn/2010/06/getting-mysqlcc-to-build-with-newer-gcc-compilers-and-mysql-headers/ Random thoughts, tips & tricks about Slackware-Linux, Lego and Star Wars Tue, 16 Apr 2013 23:35:17 -0300 http://wordpress.org/?v=2.8.4 hourly 1 http://underpop.online.fr/n/nielshorn/2010/06/getting-mysqlcc-to-build-with-newer-gcc-compilers-and-mysql-headers/comment-page-1/#comment-2381 Niels Horn Tue, 14 Feb 2012 23:33:50 +0000 http://underpop.online.fr/n/nielshorn/?p=425#comment-2381 Hi, Sorry for the late reply (vacation...). But I'm glad it worked for you! Hi,
Sorry for the late reply (vacation…). But I’m glad it worked for you!

]]> http://underpop.online.fr/n/nielshorn/2010/06/getting-mysqlcc-to-build-with-newer-gcc-compilers-and-mysql-headers/comment-page-1/#comment-2373 Trevor Cordes Mon, 30 Jan 2012 00:10:52 +0000 http://underpop.online.fr/n/nielshorn/?p=425#comment-2373 Hi! Had a chance to check back and continue. Your new patch works great! Not sure why my attempt at the same thing failed, probably cut out too much (like the argv[0] bit). This is awesome, I can use mysqlcc again! Thanks! Hi! Had a chance to check back and continue. Your new patch works great! Not sure why my attempt at the same thing failed, probably cut out too much (like the argv[0] bit). This is awesome, I can use mysqlcc again! Thanks!

]]> http://underpop.online.fr/n/nielshorn/2010/06/getting-mysqlcc-to-build-with-newer-gcc-compilers-and-mysql-headers/comment-page-1/#comment-2280 Niels Horn Tue, 20 Dec 2011 01:35:16 +0000 http://underpop.online.fr/n/nielshorn/?p=425#comment-2280 And the patch can be found in this post: http://underpop.online.fr/n/nielshorn/2011/12/mysqlcc-revisited-making-it-work-with-mysql-5-5/ And the patch can be found in this post:

]]> http://underpop.online.fr/n/nielshorn/2010/06/getting-mysqlcc-to-build-with-newer-gcc-compilers-and-mysql-headers/comment-page-1/#comment-2279 Niels Horn Mon, 19 Dec 2011 00:46:27 +0000 http://underpop.online.fr/n/nielshorn/?p=425#comment-2279 OK, did some more checking and managed to get mysqlcc to work with mysql 5.5. I need to clean up some things to write a decent patch, so check back here for more news :) OK, did some more checking and managed to get mysqlcc to work with mysql 5.5.
I need to clean up some things to write a decent patch, so check back here for more news :)

]]> http://underpop.online.fr/n/nielshorn/2010/06/getting-mysqlcc-to-build-with-newer-gcc-compilers-and-mysql-headers/comment-page-1/#comment-2278 Niels Horn Thu, 15 Dec 2011 13:38:31 +0000 http://underpop.online.fr/n/nielshorn/?p=425#comment-2278 Hi Trevor, I did some investigation and indeed some functions were not exported any longer by libmysqlclient.so.18. This mysql 5.5 <a href="http://bugs.mysql.com/bug.php?id=62394" rel="nofollow">bug report</a> explains that these functions were actually not official in the first place. Anyway, I managed to get them back by editing the libmysql/CMakeLists.txt and rebuilding mysql 5.5. After that, mysqlcc built without problems, but - as you already experienced as well - immediately segfaults. If there is a "quick fix", I could not find it. I guess that too much has changed... I even tried version 1.0.1 of mysqlcc, but it had the same effect - it just did not need my patch any longer. Maybe the mysqlcc author will eventually fix this, when mysql 5.5 becomes more popular, but I wouldn't hold my breath :) Hi Trevor,

I did some investigation and indeed some functions were not exported any longer by libmysqlclient.so.18. This mysql 5.5 explains that these functions were actually not official in the first place.
Anyway, I managed to get them back by editing the libmysql/CMakeLists.txt and rebuilding mysql 5.5.
After that, mysqlcc built without problems, but – as you already experienced as well – immediately segfaults.

If there is a “quick fix”, I could not find it. I guess that too much has changed…
I even tried version 1.0.1 of mysqlcc, but it had the same effect – it just did not need my patch any longer.

Maybe the mysqlcc author will eventually fix this, when mysql 5.5 becomes more popular, but I wouldn’t hold my breath :)

]]> http://underpop.online.fr/n/nielshorn/2010/06/getting-mysqlcc-to-build-with-newer-gcc-compilers-and-mysql-headers/comment-page-1/#comment-2273 Niels Horn Wed, 07 Dec 2011 16:43:52 +0000 http://underpop.online.fr/n/nielshorn/?p=425#comment-2273 Hi, I'm extremely busy with job-related things at the moment, but I'll take a look at this as soon as I can find some spare time! Hi,

I’m extremely busy with job-related things at the moment, but I’ll take a look at this as soon as I can find some spare time!

]]> http://underpop.online.fr/n/nielshorn/2010/06/getting-mysqlcc-to-build-with-newer-gcc-compilers-and-mysql-headers/comment-page-1/#comment-2267 Trevor Cordes Thu, 24 Nov 2011 07:51:34 +0000 http://underpop.online.fr/n/nielshorn/?p=425#comment-2267 Care to take a stab at getting mysqlcc to work with Mysql 5.5, 1 year later? :-) Missing symbol errors for functions defined in /usr/include/mysql/my_getopt.h that don't seem to be in the .so. I commented out all these functions in main.cpp (they just check cmd line args, which I don't use) but the resulting binary immediately segfaults in /usr/lib/mysql/libmysqlclient.so.18. Perhaps too much changed in the API? Or maybe there is a quick fix? Cheers, and thanks for the great tips: saved my bacon 1 year ago. Care to take a stab at getting mysqlcc to work with Mysql 5.5, 1 year later? :-)

Missing symbol errors for functions defined in /usr/include/mysql/my_getopt.h that don’t seem to be in the .so. I commented out all these functions in main.cpp (they just check cmd line args, which I don’t use) but the resulting binary immediately segfaults in /usr/lib/mysql/libmysqlclient.so.18. Perhaps too much changed in the API? Or maybe there is a quick fix?

Cheers, and thanks for the great tips: saved my bacon 1 year ago.

]]> http://underpop.online.fr/n/nielshorn/2010/06/getting-mysqlcc-to-build-with-newer-gcc-compilers-and-mysql-headers/comment-page-1/#comment-1563 Niels Horn Sun, 28 Nov 2010 11:21:03 +0000 http://underpop.online.fr/n/nielshorn/?p=425#comment-1563 Glad I could be of help! Glad I could be of help!

]]> http://underpop.online.fr/n/nielshorn/2010/06/getting-mysqlcc-to-build-with-newer-gcc-compilers-and-mysql-headers/comment-page-1/#comment-1562 Iain Kay Sun, 28 Nov 2010 05:43:33 +0000 http://underpop.online.fr/n/nielshorn/?p=425#comment-1562 Hey thanks for this. I was just researching MySQL with C client library for the first time and when the example code I had found through up an error about gptr I was at a loss. This post cracked it and it taught me an important lesson about how to investigate errors in C and where to find fixes. Thanks so much for this. =) Hey thanks for this.
I was just researching MySQL with C client library for the first time and when the example code I had found through up an error about gptr I was at a loss.

This post cracked it and it taught me an important lesson about how to investigate errors in C and where to find fixes.

Thanks so much for this. =)

]]> http://underpop.online.fr/n/nielshorn/2010/06/getting-mysqlcc-to-build-with-newer-gcc-compilers-and-mysql-headers/comment-page-1/#comment-1252 Niels Horn Fri, 22 Oct 2010 18:19:03 +0000 http://underpop.online.fr/n/nielshorn/?p=425#comment-1252 Good to know it helped you. Thanks for your feedback! Good to know it helped you.
Thanks for your feedback!

]]>