Subject: Re: mysqlcc broken by recent upgrade to mysql 4.1.x
To: Chris Wareham <firstname.lastname@example.org>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
Date: 10/31/2004 17:51:20
Chris Wareham wrote:
> As the subject says, the recent switch to mysql 4.1.x has broken
> databases/mysqlcc. I didn't look at fixing it, because it is no longer
> being developed by MySQL AB. They are now concentrating on
> mysql-administrator. I took a quick stab at making a package for
> mysql-administrator (which depends on gtkmm rather than wxGTK).
Yeah, ditching mysqlcc and adding mysql-administrator would
> Unfortunately it bails out with an error compiling MAServerLogsPanel.cc.
> I've included a cut down copy of the errors from g++ below:
> /usr/include/g++/cmath:107: error: `acosf' not declared
> /usr/include/g++/cmath:110: error: `asinf' not declared
> (further complaints about math functions omitted)
> /usr/include/g++/cmath: In function `float std::acos(float)':
> /usr/include/g++/cmath:184: error: `acosf' undeclared in namespace `
> /usr/include/g++/cmath: In function `float std::asin(float)':
> /usr/include/g++/cmath:204: error: `asinf' undeclared in namespace `
> (further complaints about math methods omitted)
> MAServerLogsPanel.cc: In member function `bool
> MAServerLogsPanel.cc:381: error: `strptime' undeclared (first use this
> MAServerLogsPanel.cc:381: error: (Each undeclared identifier is reported
> once for each function it appears in.)
> MAServerLogsPanel.cc includes math.h, but it wasn't wrapped in an extern
> "C" block. Thinking to myself that would fix it, I added the extern "C"
> block around the handful of C headers included in the file. Still no
> luck. I changed the included to the cmath, etc. Still no luck.
> Has anyone seen this kind of error before, as I'm stumped but would
> really like a nice GUI frontend to MySQL!
Which version of NetBSD do you use? It also seems the package
uses incorrect _XOPEN_SOURCE define or doesn't include <time.h>, which
is the reason it doesn't see definition of strptime().
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.cz/
-=- We should be mindful of the potential goal, but as the Buddhist -=-
-=- masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow. Do not let this distract you.'' -=-