If one installs mysql from the www.mysql.org/com website, and takes the standard configure, when one adds mysql++ (the programming api), all works. but when mysql++ is installed with the gentoo mysql, any attempt to access the mysql++ library results in a segfault.
it would be nice if you included extra information.
Created attachment 1029 [details] this is an example use that will sefgault If built on a maching not using the ebuild version of msyql, the mysql++ api doesn't segfault. but with gentoo, this program will segfault.
Created attachment 1030 [details] Makefile for the tst file This is the make file for the test file attached earlier. Essentially, I can not get the mysql++ API to work successfully on gentoo with the msyql ebuild.
The following patch will fix this segfault (posted at http://marc.theaimsgroup.com/?l=mysql-bugs&m=101553136709356&w=2): Any chance that getting into the mysql.ebuild ? > Fix: --- mysql-3.23.49/libmysql/libmysql.c Thu Feb 14 19:30:17 2002 +++ mysql-3.23.49.fix/libmysql/libmysql.c Thu Mar 7 18:36:31 2002 @@ -712,7 +712,7 @@ *end=0; /* Remove '=' */ } /* Change all '_' in variable name to '-' */ - for (end= *option ; (end= strcend(end,'_')) ; ) + for (end= *option ; *(end= strcend(end,'_')) ; ) *end= '-'; switch (find_type(*option+2,&option_types,2)) { case 1: /* port */
looks like your patch is now in mysql-3.23.50. i've added a new ebuild that should fix this.