Thanks everybody for all the suggestions. OK, I tried:
# emerge 'dev-lang/php-4*' mysql apache
whith the following in my /etc/portage/package.use
=dev-lang/php-4* -adabas -apache apache2 bcmath berkdb birdstep bzip2
calendar cdb cgi cjk -cli crypt ctype curl -db2 dba -dbase -dbmaker -dbx
debug discard-path doc empress empress-bcs esoob exif expat -fastbuild
-fdftk filepro firebird flatfile force-cgi-redirect -frontbase ftp gd
-gd-external gdbm gmp hardenedphp -hyperwave-api iconv imap -informix
inifile -interbase odbc ipv6 -java-external -java-internal kerberos ldap
-libedit mcal mcve memlimit mhash ming -mnogosearch -msql -mssql mysql
ncurses nls -oci8 -oci8-instant-client odbc -oracle7 overload -ovrimos
pecl pcntl pcre -pfpro pic posix -postgres readline -recode -sapdb
session sharedext sharedmem snmp sockets solid spell -sqlite ssl -sybase
-sybase-ct sysvipc -threads tiff tokenizer truetype wddx xml xmlrpc xpm
xsl yaz zip zlib
=dev-db/mysql-4* berkdb big-tables cluster debug doc extraengine
geometry perl readline ssl tcpd utf8
=net-www/apache-2.0.5* apache2 debug doc ldap mpm-prefork no-suexec ssl
threads
The compile bombs here:
----------------------------------------------------------------------
/bin/sh /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/libtool
--preserve-dup-deps --mode=compile gcc -I/usr/local/solid/include
-Iext/odbc/ -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/
-DPHP_ATOM_INC -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/include
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/main
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1 -I/usr/include/libxml2
-I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/imap
-I/usr/interbase/include
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/mbregex
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/libmbfl
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/libmbfl/mbfl
-I/usr/include/mcal -I/usr/include/mysql -I/usr/include/pspell
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/xml/expat
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/TSRM
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/Zend -O2
-march=pentium4 -g -Wall -prefer-pic -c
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c -o
ext/odbc/php_odbc.lo
mkdir ext/odbc/.libs
gcc -I/usr/local/solid/include -Iext/odbc/
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/ -DPHP_ATOM_INC
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/include
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/main
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1 -I/usr/include/libxml2
-I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/imap
-I/usr/interbase/include
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/mbregex
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/libmbfl
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/libmbfl/mbfl
-I/usr/include/mcal -I/usr/include/mysql -I/usr/include/pspell
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/xml/expat
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/TSRM
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/Zend -O2 -march=pentium4
-g -Wall -c
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c -fPIC
-DPIC -o ext/odbc/.libs/php_odbc.o
In file included from
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:37:
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc_includes.h:185:21:
WINDOWS.H: No such file or directory
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c: In
function `zif_odbc_execute':
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:977:
warning: dereferencing type-punned pointer will break strict-aliasing rules
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c: In
function `odbc_do_connect':
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2212:
error: `ODBC_TYPE' undeclared (first use in this function)
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2212:
error: (Each undeclared identifier is reported only once
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2212:
error: for each function it appears in.)
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2226:
warning: dereferencing type-punned pointer will break strict-aliasing rules
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2296:
warning: dereferencing type-punned pointer will break strict-aliasing rules
make: *** [ext/odbc/php_odbc.lo] Error 1
!!! ERROR: dev-lang/php-4.4.1-r3 failed.
!!! Function php4_4-sapi_src_compile, Line 517, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status
message.
Any thoughts anyone?
Thanks again,
RV
On 09/02/06, LYL <[EMAIL PROTECTED]> wrote:
dev-lang/php is php v5.0 up, while dev-php/php is php4
That's not correct. Just to make it perfectly clear - *anyone* who is
currently using dev-php/{php,mod_php} in any shape or form should
migrate to dev-lang/php as soon as possible The former ebuilds are
emphatically dead and *completely* unsupported and will eventually
disappear from the portage tree! Indeed, other packages marked stable
will assume the usage of dev-lang/php. Almost anything to do with PEAR
uses a revision of the php-pear eclass which depends on dev-lang/php
for example.
However, as Christopher remarked earlier in the thread, it is
necessary to mask out php-5 if you want to stick with php-4 (for the
simple reason that php-5 is marked stable).
Further reading:
http://tinyurl.com/9qwy7
http://www.gentoo.org/proj/en/php/php-upgrading.xml
http://www.gentoo.org/proj/en/php
I'd also suggest reading
http://svn.gnqs.org/projects/gentoo-php-overlay/wiki/CommonQuestions#DoYouRecommendAnyUSEFlags.
Further questions are best directed towards the #gentoo-php channel on freenode.
Cheers,
--Kerin
--
[email protected] mailing list