Bug #12023 | Compile error in libmysql.c | ||
---|---|---|---|
Submitted: | 18 Jul 2005 23:02 | Modified: | 22 Aug 2005 20:52 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S2 (Serious) |
Version: | 4.0.25 | OS: | Linux (Mandriva 2005) |
Assigned to: | CPU Architecture: | Any |
[18 Jul 2005 23:02]
[ name withheld ]
[18 Jul 2005 23:33]
[ name withheld ]
After extensive googling, I found a fix at <http://circle.ch/blog/index.php?p=727&tb=1> in config.h, make the following changes: /* Solaris define gethostbyname_r with 5 arguments. glibc2 defines this with 6 arguments */ /* #undef HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE */ #define HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE 1
[22 Aug 2005 19:29]
Hartmut Holzgraefe
were you building from a freshly unpacked source archive or reusing a source tree that had already been used on another machine? (just want to make sure you are not tricked by the "configure" cache mechanism ...)
[22 Aug 2005 20:52]
[ name withheld ]
I download a completely fresh mysql-4.0.25 and it compiled properly, so looks like you were right about the configuration from a previous build being cached. Changing "make clean" to "make distclean" in our build scripts, and apologies for taking your time with this. Thanks for a great product!