I removed mysqli and mysql useflags after recieveing warnings about them, and it still doesn't compile Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: checking for mSQL support... yes checking mSQL version... 1.0 checking for MSSQL support via FreeTDS... yes checking for dnet_addr in -ldnet_stub... no checking for MySQL support... no checking for specified location of the MySQL UNIX socket... no checking for MySQLi support... no checking whether to enable embedded MySQLi support... no checking for ncurses support... yes checking for initscr in -lncurses... no configure: error: Wrong ncurses lib version or lib not found !!! ERROR: dev-php/php-5.0.3 failed. !!! Function econf, Line 447, Exitcode 1 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. escargot portage # emerge --info Portage 2.0.51-r8 (gcc34-x86-2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r1 i686) ================================================================= System uname: 2.6.10-gentoo-r1 i686 AMD Athlon(tm) XP 1700+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4,dev-lang/python-2.1.3-r1,dev-lang/python-2.2.3-r5 [2.3.4 (#1, Sep 9 2004, 08:36:27)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.4, 2.1.3-r1, 2.2.3-r5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.7.9, 1.8.5-r2, 1.9.3, 1.5, 1.6.3 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow 3dnowex X aac aalib accessibility acl acpi acpi4linux alsa amd apache2 apm artsartswrappersuid audiofile avi berkdb bidi bitmap-fonts bonobo canna cap caps cdr cjk cjkcrypt codecs crypt cscope cups dba dga directfb divx4linux djbfft doc dts dv dvb dvd dvdr dvdread edl encode esd evms2 f77 faac faad fam fbcon ffmpeg flac flash flatfile fmod foomaticdb fortran freetype freewnn fs gd gdbm ggi gif gimp gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml guile hardenedphp icq ieee1394 imagemagick imap imlib immqt-bc intl jabber jack javajavascript jbig jce joystick jp2 jpeg kde kerberos krb4 ldap libcaca libcss libdvdread libg++ libwww live ltsp lzo lzw lzw-tiff m17n-lib mad maildir md5sum mdb mikmod ming mmx mmx2 mng mono motif mozdevelop mozdomi mozilla mozplaintext mozsvg mozxmlterm mp3 mpeg mpeg4 mpimplayer msn msql mssql mule music mysql mysqli nas ncurses net network nls nptl ntlm nvidia offensive oggvorbis ooo-kde opengl oss pam pdflib perl pic png posix postgres python qt quicktime readline rtc samba sasl scanner sdl slang smime spell sse ssl svg svga tcltk tcpd tga theora threads tiff timidity transcode truetype type1 uim unicode usb v4l v4l2 vhosts vim-with-x virus-scan vnc wifi wmf x86 xine xinerama xml2 xmms xpm xv xvid xvmc yahoo zeo zlib linguas_en_US linguas_en linguas_zh_TW linguas_zh_CN linguas_ru linguas_es"
attach your config.log from php.
Tested dev-php/php-5.0.3-r1 here and had no problems. Please reopen if you still experience this problem.