Newsgroup: it.comp.os.linux.iniziare
Titolo: Compilazione PHP3 su RH6.2

Sto provando (senza successo) a compilare PHP 3.0.18 sotto RedHat 6.2
per implementare il supporto per MySQL. Il configure viene eseguito
correttamente, ma quando lancio il make si blocca. Credo che manchi
qualche libreria ma non saprei proprio quale... :/
Ho installato la freestyle-devel come suggerito dal file INSTALL.RedHat
ma non funge...
Recentemente ho aggiornato la glibc. Che sia li il problema?
TIA
P.S.: riporto l'output del comando make.
--inizio--
gcc -g -O2 -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
-I../lib/
expat-lite -O2 -fpic -DSHARED_MODULE  -I. -I.   -I/usr/include/apache
       -I/usr/include/freetype -I/usr/include/mysql
-I/usr/include/apache    -c
language-parser.tab.c -o language-parser.tab.o
In file included from /usr/include/bits/posix1_lim.h:126,
                 from /usr/include/limits.h:30,
                 from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/li
mits.h:117,
                 from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/sy
slimits.h:7,
                 from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/li
mits.h:11,
                 from /usr/include/sys/param.h:23,
                 from /usr/include/apache/ap_config.h:1011,
                 from php.h:199,
                 from language-parser.y:52:
/usr/include/bits/local_lim.h:27: linux/limits.h: No such file or
directory
In file included from /usr/include/apache/ap_config.h:1011,
                 from php.h:199,
                 from language-parser.y:52:
/usr/include/sys/param.h:24: linux/limits.h: No such file or directory
/usr/include/sys/param.h:25: linux/param.h: No such file or directory
In file included from /usr/include/sys/socket.h:34,
                 from /usr/include/apache/ap_config.h:1092,
                 from php.h:199,
                 from language-parser.y:52:
/usr/include/bits/socket.h:295: asm/socket.h: No such file or directory
In file included from /usr/include/sys/ioctl.h:27,
                 from /usr/include/apache/ap_config.h:1103,
                 from php.h:199,
                 from language-parser.y:52:
/usr/include/bits/ioctls.h:24: asm/ioctls.h: No such file or directory
In file included from /usr/include/sys/ioctl.h:30,
                 from /usr/include/apache/ap_config.h:1103,
                 from php.h:199,
                 from language-parser.y:52:
/usr/include/bits/ioctl-types.h:25: asm/ioctls.h: No such file or
directory
In file included from /usr/include/signal.h:300,
                 from /usr/include/apache/ap_config.h:1124,
                 from php.h:199,
                 from language-parser.y:52:
/usr/include/bits/sigcontext.h:28: asm/sigcontext.h: No such file or
directory
In file included from /usr/include/errno.h:36,
                 from /usr/include/apache/ap_config.h:1147,
                 from php.h:199,
                 from language-parser.y:52:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
make: *** [language-parser.tab.o] Error 1
-- 
Outside of a dog a book is a man's best friend.
Inside of a dog is too dark to read.  (Groucho Marx)
"ab_bar" is rot13 encoded

directory
Significa che in /usr/include/bits/sigcontext.h, alla linea 28
esiste un richiamo ad un file di include che non viene trovato.
# include <asm/sigcontext.h>
/usr/include/asm e'  generalmente un link simbolico che punta in:
[mario@mario include]$ ls -l linux asm
lrwxrwxrwx  1 root  root   27 set 29 09:22 asm ->/usr/src/linux/include/asm/
lrwxrwxrwx  1 root  root   29 set 29 09:22 linux -> /usr/src/linux/include/linux/ 
Il comando "rpm -V glibc-devel" che dice ?
Se non esiste il link crealo, e se non hai i kernel headers installati
installali. Se invece hai brasato i kernel headers di proposito ti sei
scordato di ricreare i due link, semplicemente.
-- 
Ciao, Mario.
http://digilander.iol.it/mccmario/

     linux -> /usr/src/linux/include/linux/ 
Il problema era proprio questo. Quando ho aggiornato il kernel deve aver
eliminato i due link.
Grazie per il tempestivo aiuto.
Mi ero perso in un bicchier d'acqua :))
