kompilace php 5.0.5
Jan Povolny
povolny na utrv.ujep.cz
Pátek Září 9 08:26:30 CEST 2005
Dobry den,
resim ted pristup z linux serveru do databaze oracle na jinem serveru a
potrebuji proto podporu OCI v php, kterou tam standardne z distra (FC2, PHP
4.3.4) nemam. Stahl jsem zdrojaky k novemu php (5.0.5) a pokousim se
neuspesne o kompilaci. Postupuji nasledovne. Jelikoz je tech prepinacu pro
configure mnoho, vzal jsem stavajici nastaveni kompilace php z distra
(pomoci info.php) a doplnil k tomu prepinac pro oracle instant client.
Configure probehne ok, kompilace se vsak zastavi az hodne daleko pri
prekladu sockets.c. Ten hleda soubory v /usr/include/netinet (konkretne in.h
a tcp.h) ,ja mam vsak v FC2 tyto soubory v /usr/include/linux. Pokud
vytvorim netinet a vlozim je tam, poskoci kompilace o kus dal, ale nakonec
stejne skonci s touto chybou
---cut---
/bin/sh
/mnt/data/Linux/php/php-5.0.5/libtool --silent --preserve-dup-deps --mode=compile
gcc -Iext/sockets/ -I/mnt/data/Linux/php/php-5.0.5/ext/sockets/ -DPHP_ATOM_INC
-I/mnt/data/Linux/php/php-5.0.5/include -I/mnt/data/Linux/php/php-5.0.5/main
-I/mnt/data/Linux/php/php-5.0.5 -I/usr/include/libxml2 -I/usr/kerberos/include
-I/usr/include/freetype2 -I/usr/include/imap -I/mnt/data/Linux/php/php-5.0.5/ext/mbstring/oniguruma
-I/mnt/data/Linux/php/php-5.0.5/ext/mbstring/libmbfl -I/mnt/data/Linux/php/php-5.0.5/ext/mbstring/libmbfl/mbfl
-I/usr/include/mysql -I/usr/include/ncurses -I/home/oracle/oinstall/instantclient_10_2/sdk/include
-I/usr/include/pspell -I/mnt/data/Linux/php/php-5.0.5/TSRM -I/mnt/data/Linux/php/php-5.0.5/Zend
-g -O2 -prefer-non-pic -c
/mnt/data/Linux/php/php-5.0.5/ext/sockets/sockets.c -o
ext/sockets/sockets.lo
In file included from /usr/include/netinet/tcp.h:21,
from
/mnt/data/Linux/php/php-5.0.5/ext/sockets/sockets.c:42:
/usr/include/asm/byteorder.h:6:2: warning: #warning using private kernel
header; include <endian.h> instead!
In file included from
/mnt/data/Linux/php/php-5.0.5/ext/sockets/sockets.c:42:
/usr/include/netinet/tcp.h:105: error: braced-group within expression
allowed only inside a function
/usr/include/netinet/tcp.h:105: error: enumerator value for `TCP_FLAG_CWR'
not integer constant
/usr/include/netinet/tcp.h:106: error: syntax error before "__u32"
/usr/include/netinet/tcp.h:107: error: syntax error before "__u32"
/usr/include/netinet/tcp.h:108: error: syntax error before "__u32"
/usr/include/netinet/tcp.h:109: error: syntax error before "__u32"
/usr/include/netinet/tcp.h:110: error: syntax error before "__u32"
/usr/include/netinet/tcp.h:111: error: syntax error before "__u32"
/usr/include/netinet/tcp.h:112: error: syntax error before "__u32"
/usr/include/netinet/tcp.h:113: error: syntax error before "__u32"
/usr/include/netinet/tcp.h:114: error: syntax error before "__u32"
make: *** [ext/sockets/sockets.lo] Error 1
------
Nestalo se to nekomu. Budu rad za kazdou pomoc. Predem velmi dekuji.
Jan Povolny
Další informace o konferenci Linux