Gentoo Archives: gentoo-server

From: Christian Parpart <trapni@g.o>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] MySQL 4.1
Date: Tue, 30 Nov 2004 12:54:36
Message-Id: 200411301354.28824.trapni@gentoo.org
In Reply to: Re: [gentoo-server] MySQL 4.1 by Martin Holzhauer
1 On Tuesday 30 November 2004 12:28 pm, Martin Holzhauer wrote:
2 > if you need mysql 4.1 try this ebuild
3 > i have running it on 3 gentoo maschines without problems
4 >
5 >
6 > http://bugs.gentoo.org/show_bug.cgi?id=62582
7
8 it *is* already in portage, at least an ebuild for 4.1.7;
9 I just (forcably) updated one of my hosts to this version,
10 did the (required) revdep-rebuild; and everything works well now;
11
12 only eggdrop seems to be pissed of yet;
13
14 The only problem AFAIK is, that the prototype for
15
16 mysql_shutdown(mysql *)
17
18 has changed to
19
20 mysql_shutdown(mysql *, enum mysql_shutdown_type)
21
22 so, just change your lines to:
23
24 #if defined(MYSQL_VERSION_ID) && (MYSQL_VERSION_ID >= 40100)
25 mysql_shutdown(&my_handle, SHUTDOWN_DEFAULT);
26 #else
27 mysql_shutdown(&my_handle);
28 #endif
29
30 and it'll run fine with mysql 4.1 *and* prior;
31
32 regards,
33 Christian;
34
35 --
36 http://www.winterschur.de/?fey <-- get sheeped!
37 Netiquette: http://www.ietf.org/rfc/rfc1855.txt
38 13:50:28 up 32 days, 6:20, 1 user, load average: 0.22, 0.29, 0.25