I'm trying to build php-5.1.6-r6 on x86 machine with hardened profile. Here is the build error: /bin/sh /var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/libtool --silent --preserve-dup-deps --mode=compile /var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/meta_ccld -I/usr/local/solid/include -Iext/odbc/ -I/var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/ext/odbc/ -DPHP_ATOM_INC -I/var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/include -I/var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/main -I/var/tmp/portage/php-5.1.6-r6/work/php-5.1.6 -I/usr/include/libxml2 -I/var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/ext/date/lib -I/opt/fdftk-6.0/include -I/usr/include/freetype2 -I/var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/ext/mbstring/oniguruma -I/var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/ext/mbstring/libmbfl -I/var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/TSRM -I/var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/Zend -D_REENTRANT -mtune=athlon-tbird -O3 -pipe -fomit-frame-pointer -pthread -DZTS -prefer-pic -c /var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/ext/odbc/php_odbc.c -o ext/odbc/php_odbc.lo In file included from /var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/ext/odbc/php_odbc.c:37: /var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/ext/odbc/php_odbc_includes.h:199:21: WINDOWS.H: No such file or directory /var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/ext/odbc/php_odbc.c: In function `zm_startup_odbc': /var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/ext/odbc/php_odbc.c:422: warning: passing arg 3 of `ts_allocate_id' from incompatible pointer type /var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/ext/odbc/php_odbc.c: In function `odbc_do_connect': /var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/ext/odbc/php_odbc.c:2265: error: `ODBC_TYPE' undeclared (first use in this function) /var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/ext/odbc/php_odbc.c:2265: error: (Each undeclared identifier is reported only once /var/tmp/portage/php-5.1.6-r6/work/php-5.1.6/ext/odbc/php_odbc.c:2265: error: for each function it appears in.) make: *** [ext/odbc/php_odbc.lo] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-lang/php-5.1.6-r6 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile php-5.1.6-r6.ebuild, line 173: Called src_compile_normal php-5.1.6-r6.ebuild, line 323: Called php5_1-sapi_src_compile php5_1-sapi.eclass, line 577: Called die !!! make failed !!! If you need support, post the topmost build error, and the call stack if relevant. and "emerge --info" Portage 2.1.1-r1 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r4, 2.6.14-hardened-r8 i686) ================================================================= System uname: 2.6.14-hardened-r8 i686 AMD Duron(tm) Processor Gentoo Base System version 1.12.5 Last Sync: Sun, 05 Nov 2006 15:00:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-mtune=athlon-tbird -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /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/" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-mtune=athlon-tbird -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distcc distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dfx 3dnow acl acpi apache2 bash-completion berkdb bzip2 caps cracklib crypt curl curlwrappers dlloader doc elibc_glibc ftp gd gdbm gnutls gpm hal hardened hardenedphp idn input_devices_keyboard input_devices_mouse kernel_linux libwww lmsensors memlimit mysql mysqli ncurses nls nocardbus nptl nptlonly pam perl php pic pnp posix python readline samba sharedext sharedmem snmp solid ssl sysvipc tcpd threads tokenizer truetype unicode usb userland_GNU userlocales x86 xinetd xml xorg zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Post the output of emerge -pv =dev-lang/php-5.1.6-r6
dev-lang/php-5.1.6-r6 [5.1.6-r4] USE="apache2 berkdb bzip2 cgi cli crypt ctype curl curlwrappers doc fdftk flatfile* force-cgi-redirect* ftp gd gdbm hardenedphp memlimit mysql mysqli ncurses nls pic posix readline session sharedext* simplexml snmp soap solid* sqlite ssl sysvipc* threads tokenizer* truetype unicode xml xmlreader xmlwriter* zip zlib -adabas -apache -bcmath -birdstep -calendar -cdb -cjk -concurrentmodphp -db2 -dbase -dbmaker -debug -discard-path -empress -empress-bcs -esoob -exif -fastbuild -filepro -firebird -frontbase -gd-external -gmp -hash -hyperwave-api -iconv -imap -informix -inifile -interbase -iodbc -ipv6 -java-external -kerberos -ldap -libedit -mcve -mhash -ming -msql -mssql -oci8 (-oci8-instant-client) -odbc -pcntl -pcre -pdo -pdo-external -postgres -qdbm -recode -reflection -sapdb -sasl -sharedmem -sockets -spell -spl -sybase -sybase-ct -tidy -vm-goto -vm-switch -wddx -xmlrpc -xpm -xsl -yaz"
according to portage instructions I set USE="+odbc" because "+solid" flag, but the same error occurs when I set USE="-solid -odbc" php builded without errors
Well if you have the "solid" USE flag enabled we don't support that. Only the "odbc" USE flag is supported and works here, but the "solid" USE flag is a commercial database extension that depends on files and stuff we cannot test, so it's unsupported. Best regards, CHTEKK.
*** Bug 170173 has been marked as a duplicate of this bug. ***