Bug 15688 - mysql++-1.7.9 compile problem with gcc-3.2.1
|
Bug#:
15688
|
Product: Gentoo Linux
|
Version: 1.4_rc2
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: enhancement
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: mysql-bugs@gentoo.org
|
Reported By: Sascha.Herrmann@web.de
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: mysql++-1.7.9 compile problem with gcc-3.2.1
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2003-02-14 06:14 0000
|
Hmm, as I wasn't able to reopen bug #1307, and my additional comments didn't
get
recognized by anyone, I guess i had to fill in a new bug report!?!
During working with mysql++-1.7.9 i discovered some problems in the mysql++
package. I took a long time, but now i've made a patch the solves the problems,
so myqsl++-1.7.9 can be used on Gentoo Systems (compiling with gcc>=3.2.1!)
I'll append the patch and the modified ebuild.
bye Sascha
Created an attachment (id=8534) [details]
patch for the mysql++-1.7.9 package (for FILESDIR) that eliminates warings and
errors
small cosmetic changes made, so now everything should work without even a
waring!
your patch works on my gentoo box.
thanks for these patches.
mysql is a pain in the ass to compile!! i created an ebuild but it's way
useless to upload cause of SANDBOX problem.
so lets start
EPATCH_SINGLE_MSG="Patching for gcc 3.0..."
epatch ${DISTDIR}/mysql++-gcc-3.0.patch.gz
EPATCH_SINGLE_MSG="Patching for gcc 3.2..."
epatch ${DISTDIR}/mysql++-gcc-3.2.patch.gz
EPATCH_SINGLE_MSG="fixing examples directory bug!"
epatch ${FILESDIR}/mysql++-1.7.9_example.patch
EPATCH_SINGLE_MSG="fixing some warnings and errors!"
epatch ${FILESDIR}/mysql++fix.patch
these are the patches that i used. the mysql++fix.patch is the patch that has
already been uploaded to this bug.
these patches are missing one thing ->
in the sqlplusint/connection.cc line 112
char *i = mysql_info(&mysql);
compiler complains that mysql_info is const so char *i should be const as well
so:
const char *i = mysql_info(&mysql); <- fixes all up
besides that everything compiles fine but on installation i get
SANDBOX_VIOLATION on "mkdir /usr/lib/mysql++" and only setting
SANDBOX_DISABLED=1 fixes it as far as i know! :) that's all the new info i
have. have fun
I've merged this new stuff into 1.7.9-r1 now, thanks.