Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111810 - sci-libs/root-4.02.00 will not build with USE=mysql & mysql-4.1.14
Summary: sci-libs/root-4.02.00 will not build with USE=mysql & mysql-4.1.14
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Science Physics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-07 12:01 UTC by Ferris McCormick (RETIRED)
Modified: 2007-07-26 22:16 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ferris McCormick (RETIRED) gentoo-dev 2005-11-07 12:01:34 UTC
sci-libs/root-4.02.00 will not build if USE=mysql and if dev-db/mysql-4.1.14 is
installed, because this test  in root/mysql/src/TMySQLServer.cxx at line 240 is
wrong is wrong:
#if 0 MYSQL_VERSION_ID < 50001
It ends up calling mysql_shutdown(fMySQL);  However, with 4.1.14, mysql_shutdown
requires two arguments, and the other branch of the #if should be used:
mysql_shutdown(fMySQL,SHUTDOWN_DEFAULT);
And, indeed, if you force that branch for the #if, then
root/mysql/src/TMySQLServer.cxx  compiles without error.
Comment 1 Ferris McCormick (RETIRED) gentoo-dev 2005-11-07 12:24:20 UTC
The test is:
#if  MYSQL_VERSION_ID < 50001
(The 0 ws left over from my crude verification of the problem:
#if 0 /* MYSQL_VERSION_ID < 50001 */
)
Sorry for my typing and editing skills.
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2006-04-24 15:10:10 UTC
I succeeded building root-5.10.00 with mysql-4.14 on the Gentoo scientific overlay http://gentooscience.org. It also looks like they modified the test upstream.
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2007-02-05 16:17:20 UTC
could you test root-5 now in the main tree and report if it still does not build?
Comment 4 Ferris McCormick (RETIRED) gentoo-dev 2007-02-06 19:59:34 UTC
(In reply to comment #3)
> could you test root-5 now in the main tree and report if it still does not
> build?
> 

Can't detect sparc architecture.---
Attempts at guessing your architecture failed.
Please specify the architecture as the first argument.
Do './configure --help' for a list of avaliable architectures.
Comment 5 Ferris McCormick (RETIRED) gentoo-dev 2007-02-06 23:17:19 UTC
Ah, I see we have two bugs in play: this one and 87305.  As I recall, this one is architecture-neutral.  I'll try to check it on non-sparc tomorrow.
Comment 6 Ferris McCormick (RETIRED) gentoo-dev 2007-02-07 19:14:41 UTC
(In reply to comment #5)
> Ah, I see we have two bugs in play: this one and 87305.  As I recall, this one
> is architecture-neutral.  I'll try to check it on non-sparc tomorrow.
> 

Actually, this at least I can check on sparc, and now everything seems fine.
Comment 7 Ferris McCormick (RETIRED) gentoo-dev 2007-02-08 00:12:21 UTC
(In reply to comment #3)
> could you test root-5 now in the main tree and report if it still does not
> build?
> 

This problem no longer exists for me with root-5.
Comment 8 Gustavo Zacarias (RETIRED) gentoo-dev 2007-07-26 22:16:49 UTC
Thus can be closed (or sparc removed since we don't have root-4 keyworded).