Newsgroup: it.comp.www.php
Titolo: IMAP e php406: problemi di compilazione

 Ciao a tutti... sarò schematico:
Debian/GNU 2.2r3 potato
Apache 1.3.20
php 4.0.6 (col 4.0.5 succede la stessa cosa.
Compilo il php e va a buon fine con il flar --with-imap .
Compilo apache e in configure mi gli errori che vi allego.
Ho installato c-client in tutte le versioni, ho anche compilato i sorgenti.
Ho fatto di tutto.
Ma nulla...
Chi ha già risolto il problema?
Max
**********************************
Configuring for Apache, Version 1.3.20
 + using installation path layout: Apache (config.layout)
 + activated php4 module (modules/php4/libphp4.a)
 + activated perl module (modules/perl/libperl.a)
 + on-the-fly added and activated gzip module (modules/extra/mod_gzip.o)
Creating Makefile
Creating Configuration.apaci in src
      + id: mod_perl/1.25
      + id: Perl/v5.6.1 (linux) [perl]
cd ..; gcc  -DLINUX=22 -I/usr/include/db1 -I/usr/local/src/php-4.0.6
-I/usr/local/src/php-4.0.6/main -I/usr/local/src/php-4.0.6/main
-I/usr/local/src/php-4.0.6/Zend -I/usr/local/src/php-4.0.6/Zend
-I/usr/local/src/php-4.0.6/TSRM -I/usr/local/src/php-4.0.6/TSRM
-I/usr/local/src/php-4.0.6 -DMOD_PERL -DUSE_PERL_SSI -DDEBIAN
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
`./apaci` -I. -I/usr/lib/perl/5.6.1/CORE    -o helpers/dummy helpers/dummy.c
-Wl,-rpath,/lib -Wl,-rpath,/usr/local/mysql/lib/mysql  -rdynamic -L/lib
-L/usr/local/mysql/lib/mysql -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4  -lpam -lc-client  -ldl -lmysqlclient -lpam
-lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err   -lm -lcrypt -ldb1 -rdynamic  -L/usr/local/lib
/usr/lib/perl/5.6.1/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.6.1/CORE
-lperl -ldl -lm -lc -lcrypt
/usr/lib/libc-client.so: undefined reference to `mm_expunged'
/usr/lib/libc-client.so: undefined reference to `mm_diskerror'
/usr/lib/libc-client.so: undefined reference to `mm_lsub'
/usr/lib/libc-client.so: undefined reference to `mm_flags'
/usr/lib/libc-client.so: undefined reference to `mm_fatal'
/usr/lib/libc-client.so: undefined reference to `mm_nocritical'
/usr/lib/libc-client.so: undefined reference to `mm_notify'
/usr/lib/libc-client.so: undefined reference to `mm_searched'
/usr/lib/libc-client.so: undefined reference to `mm_status'
/usr/lib/libc-client.so: undefined reference to `mm_login'
/usr/lib/libc-client.so: undefined reference to `mm_list'
/usr/lib/libc-client.so: undefined reference to `mm_critical'
/usr/lib/libc-client.so: undefined reference to `mm_exists'
/usr/lib/libc-client.so: undefined reference to `mm_log'
/usr/lib/libc-client.so: undefined reference to `mm_dlog'
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
Creating Makefile in src

Io per prima cosa ho compilato apache con la seguente stringa:
./configure --prefix=/usr/local/apache --enable-module=rewrite --enable-shar
ed=rewrite
Devi scaricarti le c-client extension per PHP e installarle (E' tutto
documentato benissimo all'interno del file INSTALL)
http://www.trlinux.com/dist/c-client.tar.gz
dopodichè compili PHP con la seguente stringa (+ulteriori tue se
necessario):
./configure --with-apxs=/usr/local/apache/bin/apxs --with-imap --enable-trac
k-vars
Apporti le modifiche al file httpd.conf in modo settare PHP
Il gioco è fatto