Toon posts:

(Solaris 9) kan php4.3.2 niet compileren met imap support

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik ben een Solaris 9 webserver aan het bouwen, maar ik loop tegen een probleem aan bij PHP.

Ik heb de volgende source distributies gedownload :

- apache-1.3.27
- mod-ssl-2.8.14
- mysql-3.23.56
- openssl-0.9.7b
- imap-2002d
- php-4.3.2

imap heb ik op de volgende wijze gecompileerd :

bash-2.05# make gso SSLTYPE=none

Dit gaat helemaal goed.
hierna heb ik, zoals de installatieprocedure van php aangeeft, de imap-2002d/c-client/*.h files gecopieerd naar /usr/local/include en de imap-2002d/c-client/*.c files naar /usr/local/lib. Ook heb ik de binary imap-2002d/c-client/c-client.a gekopieerd naar /usr/local/lib/libc-client.a

hierna ben ik naar de php directory gegaan en heb ik de volgende configure gegeven :

bash-2.05# ./configure --with-mysql=/misc1/mysql --with-apache=../apache_1.3.27 --with-imap=../imap-2002d --enable-track-vars --enable-ftp

(de mysql en apache paden kloppen en apache heeft al een ./configure gehad)

dit gaat helemaal goed, maar als ik dan een make geef :

bash-2.05# make
gcc -Iext/ctype/ -I/opt/sources/php-4.3.2/ext/ctype/ -DPHP_ATOM_INC -I/opt/sour
ces/php-4.3.2/include -I/opt/sources/php-4.3.2/main -I/opt/sources/php-4.3.2 -I/
opt/sources/php-4.3.2/Zend -I/opt/sources/imap-2002d/c-client -I/misc1/mysql/inc
lude/mysql -I/opt/sources/php-4.3.2/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -I
/opt/sources/php-4.3.2/TSRM -g -O2 -c /opt/sources/php-4.3.2/ext/ctype/ctype.c
-o ext/ctype/ctype.o && echo > ext/ctype/ctype.lo
In file included from /opt/sources/php-4.3.2/Zend/zend.h:59,
from /opt/sources/php-4.3.2/main/php.h:34,
from /opt/sources/php-4.3.2/ext/ctype/ctype.c:23:
/opt/sources/imap-2002d/c-client/unix.h:182: syntax error before "MAILSTREAM"
/opt/sources/imap-2002d/c-client/unix.h:182: warning: no semicolon at end of str
uct or union
/opt/sources/imap-2002d/c-client/unix.h:189: syntax error before '}' token
/opt/sources/imap-2002d/c-client/unix.h:189: warning: data definition has no typ
e or storage class
/opt/sources/imap-2002d/c-client/unix.h:193: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:193: warning: data definition has no typ
e or storage class
/opt/sources/imap-2002d/c-client/unix.h:196: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:197: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:198: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:199: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:200: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:201: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:202: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:202: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:202: warning: data definition has no typ
e or storage class
/opt/sources/imap-2002d/c-client/unix.h:203: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:204: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:206: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:207: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:209: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:210: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:211: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:212: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:213: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:214: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:215: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:216: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:219: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:221: syntax error before "DOTLOCK"
/opt/sources/imap-2002d/c-client/unix.h:222: syntax error before "MAILSTREAM"
/opt/sources/imap-2002d/c-client/unix.h:223: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:224: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:225: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:226: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:228: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:229: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:230: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:231: syntax error before '*' token
In file included from /opt/sources/php-4.3.2/main/php.h:92,
from /opt/sources/php-4.3.2/ext/ctype/ctype.c:23:
/opt/sources/imap-2002d/c-client/unix.h:159: redefinition of `struct unix_local'
/opt/sources/imap-2002d/c-client/unix.h:171: redefinition of `UNIXLOCAL'
/opt/sources/imap-2002d/c-client/unix.h:171: `UNIXLOCAL' previously declared her
e
/opt/sources/imap-2002d/c-client/unix.h:182: syntax error before "MAILSTREAM"
/opt/sources/imap-2002d/c-client/unix.h:182: warning: no semicolon at end of str
uct or union
/opt/sources/imap-2002d/c-client/unix.h:189: syntax error before '}' token
e or storage class
/opt/sources/imap-2002d/c-client/unix.h:193: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:193: warning: data definition has no typ
e or storage class
/opt/sources/imap-2002d/c-client/unix.h:196: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:197: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:198: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:199: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:200: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:201: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:202: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:202: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:202: warning: data definition has no typ
e or storage class
/opt/sources/imap-2002d/c-client/unix.h:203: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:204: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:206: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:207: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:209: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:210: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:211: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:212: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:213: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:214: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:215: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:216: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:219: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:221: syntax error before "DOTLOCK"
/opt/sources/imap-2002d/c-client/unix.h:222: syntax error before "MAILSTREAM"
/opt/sources/imap-2002d/c-client/unix.h:223: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:224: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:225: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:226: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:228: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:229: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:230: syntax error before '*' token
/opt/sources/imap-2002d/c-client/unix.h:231: syntax error before '*' token
make: *** [ext/ctype/ctype.lo] Error 1


Zoeken op usenet en google gaf aan dat de oplossing zou zijn om CC=gcc voor de configure te zetten, maar dit geeft hetzelfde resultaat.
Een andere gevonden oplossing zou zijn om een directory /usr/local/c-client aan te maken en de imap-200d/c-client/*.h en *.c files daarin te zetten en dan de --with-imap daarnaar te laten wijzen, dit werkt ook niet.

de GCC versie die geinstalleerd is is GCC-3.2.3

Iemand een idee hoe dit opgelost kan worden?

Verwijderd

Topicstarter
al opgelost. Hint, niet de php install instructies geloven! :)