Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15688 - mysql++-1.7.9 compile problem with gcc-3.2.1
Summary: mysql++-1.7.9 compile problem with gcc-3.2.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-14 06:14 UTC by Sascha Herrmann
Modified: 2003-05-08 17:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
modified ebuild for mysql++-1.7.9 (ebuild,1.74 KB, text/plain)
2003-02-14 06:16 UTC, Sascha Herrmann
Details
patch for the mysql++-1.7.9 package (to be put in FILESDIR!) (patch,3.09 KB, text/plain)
2003-02-14 06:18 UTC, Sascha Herrmann
Details
patch for the mysql++-1.7.9 package (for FILESDIR) that eliminates warings and errors (mysql++-gcc_throw.patch,7.25 KB, text/plain)
2003-02-20 07:45 UTC, Sascha Herrmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Herrmann 2003-02-14 06:14:07 UTC
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
Comment 1 Sascha Herrmann 2003-02-14 06:16:56 UTC
Created attachment 8273 [details]
modified ebuild for mysql++-1.7.9
Comment 2 Sascha Herrmann 2003-02-14 06:18:57 UTC
Created attachment 8274 [details]
patch for the mysql++-1.7.9 package (to be put in FILESDIR!)
Comment 3 Sascha Herrmann 2003-02-20 07:45:30 UTC
Created attachment 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!
Comment 4 matrixise 2003-03-13 06:26:49 UTC
your patch works on my gentoo box. 
 
thanks for these patches. 
Comment 5 Kfir Ozer 2003-03-25 14:38:17 UTC
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
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-08 17:17:11 UTC
I've merged this new stuff into 1.7.9-r1 now, thanks.