[NTLUG:Discuss] mysql configure/make head-banger

Kelledin kelledin+NTLUG at skarpsey.dyndns.org
Mon Jul 29 15:31:17 CDT 2002


On Monday 29 July 2002 03:11 pm, Dennis Daupert wrote:
> Hi folks,
>
> I've tried to get a post out to the mysql mailing list for
> several days, but for some reason
> it keeps getting bounced back. But I'm trying to install on
> linux, so maybe this is the best
> list to post on, after all :-)
>
> I'm trying to install mysql 3.23.51 on SuSE 8 from the source
> tarball. I did ./config, then make.
>
> There are the last few lines from make:
>
>  libmysql.c: In function `mysql_real_connect':
>  libmysql.c:1325: warning: passing arg 5 of `gethostbyname_r'
> from incompatible pointer type
>  libmysql.c:1325: too few arguments to function
> `gethostbyname_r' libmysql.c:1325: warning: assignment makes
> pointer from integer without a cast
>  make[2]: *** [libmysql.lo] Error 1
>  make[2]: Leaving directory
> `/home/perl/downloads/db/mysql-3.23.51/libmysql'
>  make[1]: *** [all-recursive] Error 1
>  make[1]: Leaving directory
> `/home/perl/downloads/db/mysql-3.23.51' make: ***
> [all-recursive-am] Error 2
>
> Here's some info from the mysql debug tool:
>
>  Release: mysql-3.23.51 (Source distribution)
>
>  Environment:
>       machine: Dell Optiplex GX1,
>       os: SuSE Linux 2.4.18-4GB,
>       target: ?
>       libraries ?
>  System: Linux hdeteam 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC
> 2002 i686 unknown
>  Architecture: i686
>
>  Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake
> /usr/bin/gcc /usr/bin/cc
>  GCC: Reading specs from
> /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs gcc version
> 2.95.3 20010315 (SuSE)
>  Compilation info: CC='gcc'  CFLAGS=''  CXX='gcc'  CXXFLAGS=''
>  LDFLAGS='' LIBC:
>  -rwxr-xr-x    1 root     root      1394238 Mar 23 12:34
> /lib/libc.so.6 -rw-r--r--    1 root     root     25361424 Mar
> 23 12:05 /usr/lib/libc.a -rw-r--r--    1 root     root        
>  178 Mar 23 12:05 /usr/lib/libc.so Configure command:
>
>  CFLAGS="-O3" CC=gcc CXX=gcc CXXFLAGS="-O3 \
>         -felide-constructors -fno-exceptions \
>         -fno-rtti" ./configure --prefix=/usr/local/mysql
> --enable-assembler \
>         --with-named-curses-libs=/usr/lib/curses \
>         --with-mysqld-ldflags=-all-static
>
> Can someone repoint me to the right direction?
>
> /dennis

This looks like a glibc deficiency.  The problem is a lack of a 
proper gethostbyname_r() function in glibc; glibc-2.2.5 (my 
glibc) has it, your glibc apparently doesn't, and mysql 
apparently can't work around this deficiency (although judging 
from the source code, it certainly tries).

The best thing might be to simply upgrade your glibc to version 
2.2.5.  This is not something you should try to do from source; 
it's better to upgrade it via a precompiled update RPM provided 
by SuSE for your specific version of SuSE.

If you can't upgrade glibc, you may be able to hack around this 
problem by adjusting defines in MySQL's config.h file after 
./configure is done.  If you can post your /usr/include/netdb.h 
file (as an attachment, if you please), I might be able to 
figure out what you need to do.

-- 
Kelledin
"If a server crashes in a server farm and no one pings it, does 
it still cost four figures to fix?"





More information about the Discuss mailing list