Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62138 - compile mysql-4.0.20(-r1) fails while compiling libmysql.c
Summary: compile mysql-4.0.20(-r1) fails while compiling libmysql.c
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-29 13:44 UTC by Mirko Guenther
Modified: 2004-08-29 20:38 UTC (History)
0 users

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 Mirko Guenther 2004-08-29 13:44:23 UTC
While compling (with a minimum of CFLAGS) mysql, I get folowing error:
Making all in libmysql_r
make[2]: Entering directory `/var/tmp/portage/mysql-4.0.20-r1/work/mysql-4.0.20/libmysql_r'
if /bin/sh ../libtool --preserve-dup-deps --mode=compile gcc -DDEFAULT_CHARSET_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DDONT_USE_RAID  -DMYSQL_CLIENT -I. -I. -I.. -I./../include -I../include -I./.. -I.. -I..     -O3 -DDBUG_OFF -O2 -march=pentium2 -mmmx -pipe -DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS  -MT libmysql.lo -MD -MP -MF ".deps/libmysql.Tpo" \
  -c -o libmysql.lo `test -f 'libmysql.c' || echo './'`libmysql.c; \
then mv -f ".deps/libmysql.Tpo" ".deps/libmysql.Plo"; \
else rm -f ".deps/libmysql.Tpo"; exit 1; \
fi
mkdir .libs
 gcc -DDEFAULT_CHARSET_HOME=\"/usr\" -DDATADIR=\"/var/lib/mysql\" -DSHAREDIR=\"/usr/share/mysql\" -DDONT_USE_RAID -DMYSQL_CLIENT -I. -I. -I.. -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -O2 -march=pentium2 -mmmx -pipe -DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS -MT libmysql.lo -MD -MP -MF .deps/libmysql.Tpo -c libmysql.c  -fPIC -DPIC -o .libs/libmysql.o
libmysql.c: In function `mysql_real_connect':
libmysql.c:1849: warning: passing arg 5 of `gethostbyname_r' from incompatible pointer type
libmysql.c:1849: error: too few arguments to function `gethostbyname_r'
libmysql.c:1849: warning: assignment makes pointer from integer without a cast
make[2]: *** [libmysql.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/mysql-4.0.20-r1/work/mysql-4.0.20/libmysql_r'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mysql-4.0.20-r1/work/mysql-4.0.20'
make: *** [all] Error 2

!!! ERROR: dev-db/mysql-4.0.20-r1 failed.
!!! Function src_compile, Line 161, Exitcode 2
!!! compile problem

the configure script also says:
checking style of gethost* routines... other
checking style of gethostname_r routines... other
checking 3 argument to gethostname_r routines... char

I've fund the function 'gethostbyname_r' in 'netdb.h', which comes from glibc.
My installed glibc are sys-libs/glibc-2.3.3.20040420-r1  (-build -debug -debug -erandom -hardened +nls +nptl +pic)
is the interface of the function changed with the last glibc version?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.50-r10 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 Celeron (Mendocino)
Gentoo Base System version 1.5.3
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium2 -mmmx -pipe -fforce-addr -fmerge-all-constants
-funroll-all-loops -fprefetch-loop-arrays -falign-labels=1 -falign-loops=16
-falign-jumps=16 -fomit-frame-pointer -frerun-cse-after-loop -frerun-loop-opt
-falign-functions=4 -mpreferred-stack-boundary=4 -minline-all-stringops
-mno-push-args -maccumulate-outgoing-args -fPIC "
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium2 -mmmx -pipe -fforce-addr -fmerge-all-constants
-funroll-all-loops -fprefetch-loop-arrays -falign-labels=1 -falign-loops=16
-falign-jumps=16 -fomit-frame-pointer -frerun-cse-after-loop -frerun-loop-opt
-falign-functions=4 -mpreferred-stack-boundary=4 -minline-all-stringops
-mno-push-args -maccumulate-outgoing-args -fPIC "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/
ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.inode.at/
ftp://gentoo.inode.at/source/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib acpi alsa apm avi berkdb bonobo crypt cups directfb
divx4linux encode esd fbcon foomaticdb gd gd-external gdbm gif gimpprint gmp gpm
gtk gtk2 imlib java joystick jpeg libg++ libwww mad mikmod mmx mng motif mpeg
mysql ncurses nls nptl oav oggvorbis opengl oss pam pcmcia pdflib perl php pic
png ppds python quicktime readline samba sdl slang socks5 speex spell ssl svg
svga tcltk tcpd tetex theora threads tiff truetype usb video_cards_neomagic wmf
x86 xft xml xml2 xmms xosd xv xvid zlib"
Comment 1 Markus Nigbur (RETIRED) gentoo-dev 2004-08-29 20:38:56 UTC
The usual ntpl problem with mysql..
See bug #29248.