Still no solution for configging apache(1.3.27) when PHP(4.3.0) is done with -- with-imap.
Any suggestions? Thanks, Stephen Here's my output: hostname# ./configure --prefix=/usr/local/apache --activate- module=src/modules/php4/libphp4.a Configuring for Apache, Version 1.3.27 + using installation path layout: Apache (config.layout) + activated php4 module (modules/php4/libphp4.a) Creating Makefile Creating Configuration.apaci in src Creating Makefile in src + configured for FreeBSD 4.6.2 platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules o php4_module uses ConfigStart/End + using builtin Expat + checking sizeof various data types + doing sanity check on compiler and options ** A test compilation with your Makefile configuration ** failed. The below error output from the compilation ** test will give you an idea what is failing. Note that ** Apache requires an ANSI C Compiler, such as gcc. ======== Error Output for sanity check ======== cd ..; gcc -funsigned-char -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` -o helpers/dummy helpers/dummy.c -R/usr/local/lib - R/usr/local/mysql/lib/mysql -rdynamic -L/usr/local/lib - L/usr/local/mysql/lib/mysql -Lmodules/php4 -L../modules/php4 - L../../modules/php4 -lmodphp4 -rdynamic -L/usr/local/lib - L/usr/local/mysql/lib/mysql -lc-client4 -lmysqlclient -lcrypt -lpam -lintl - lcrypt -lm -lcrypt -lcrypt /usr/local/lib/libc-client4.so: undefined reference to `mm_expunged' /usr/local/lib/libc-client4.so: undefined reference to `mm_diskerror' /usr/local/lib/libc-client4.so: undefined reference to `mm_lsub' /usr/local/lib/libc-client4.so: undefined reference to `mm_flags' /usr/local/lib/libc-client4.so: undefined reference to `mm_fatal' /usr/local/lib/libc-client4.so: undefined reference to `mm_nocritical' /usr/local/lib/libc-client4.so: undefined reference to `mm_notify' /usr/local/lib/libc-client4.so: undefined reference to `mm_searched' /usr/local/lib/libc-client4.so: undefined reference to `mm_status' /usr/local/lib/libc-client4.so: undefined reference to `mm_login' /usr/local/lib/libc-client4.so: undefined reference to `mm_list' /usr/local/lib/libc-client4.so: undefined reference to `mm_critical' /usr/local/lib/libc-client4.so: undefined reference to `mm_exists' /usr/local/lib/libc-client4.so: undefined reference to `mm_log' /usr/local/lib/libc-client4.so: undefined reference to `mm_dlog' *** Error code 1 Stop in /usr/local/src/apache_1.3.27/src/helpers. ============= End of Error Report ============= Aborting! Quoting Joerg Aldinger <[EMAIL PROTECTED]>: > When trying to configure PHP 4.3.0 on RedHat 7.2 with the following > command: > > ./configure --no-create --prefix=/usr --exec-prefix=/usr > --bindir=/usr/bin > --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share > --sysconfdir=/etc --sharedstatedir=/usr/com --localstatedir=/var > --libdir=/usr/lib --includedir=/usr/include --infodir=/usr/share/info > --mandir=/usr/share/man --with-apxs=/usr/sbin/apxs > --enable-force-cgi-redirect --enable-discard-path --with-layout=GNU > --with-config-file-path=/etc --enable-safe-mode > --with-exec-dir=/usr/bin > --enable-magic-quotes --disable-rpath --with-openssl --with-zlib > --enable-bcmath --with-bz2 --enable-calendar --with-curl --enable-dbx > --enable-dio --enable-exif --enable-ftp=shared --with-gd > --with-jpeg-dir=/usr --with-png-dir=/usr --with-ttf > --with-freetype-dir=/usr > --enable-gd-native-ttf --with-gettext=shared --with-iconv > --with-imap=shared > --with-kerberos --with-imap-ssl --with-ldap=shared --enable-mbstring > --with-mcal --with-mysql=shared,/usr --with-unixODBC=shared > --with-pfpro > --with-pgsql=shared --with-pspell --enable-shmop > --with-snmp=shared,/usr > --enable-ucd-snmp-hack --enable-sockets --with-regex=system > --enable-sysvsem > --enable-sysvshm --enable-wddx --with-expat-dir=/usr --enable-yp > --with-zip > --enable-versioning --with-pic --enable-memory-limit > > I get the following error: > > ... > checking for IMAP support... yes, shared > checking for pam_start in -lpam... no > checking for crypt in -lcrypt... (cached) yes > checking whether SSL libraries are needed for c-client... /usr/lib > checking whether IMAP works... no > configure: error: build test failed. Please check the config.log for > details. > > In config.log, here's what it says at the end: > > configure:34453: checking for IMAP support > configure:34811: checking for pam_start in -lpam > configure:34830: gcc -o conftest -g -O2 -DLINUX=22 -DMOD_SSL=208105 > -DEAPI > -DEAPI_MM -DFD_SETSIZE=4096 conftest.c -lpam -lfreety$ > /usr/bin/ld: cannot find -lpam > collect2: ld returned 1 exit status > configure: failed program was: > #line 34819 "configure" > #include "confdefs.h" > /* Override any gcc2 internal prototype to avoid an error. */ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ > char pam_start(); > > int main() { > pam_start() > ; return 0; } > configure:34858: checking for crypt in -lcrypt > configure:35252: checking whether SSL libraries are needed for c-client > configure:35413: checking whether IMAP works > configure:35446: gcc -o conftest -g -O2 -DLINUX=22 -DMOD_SSL=208105 > -DEAPI > -DEAPI_MM -DFD_SETSIZE=4096 conftest.c -lcrypto -lssl$ > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): > In > function `ssl_onceonlyinit': > /usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:286: the use > of > `tmpnam' is dangerous, better use `mkstemp' > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): > In > function `checkpw': > /usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:124: > undefined > reference to `pam_start' > /usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:124: > undefined > reference to `pam_authenticate' > /usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:124: > undefined > reference to `pam_acct_mgmt' > /usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:124: > undefined > reference to `pam_setcred' > /usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:130: > undefined > reference to `pam_setcred' > /usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:131: > undefined > reference to `pam_end' > /usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:156: > undefined > reference to `pam_end' > collect2: ld returned 1 exit status > configure: failed program was: > #line 35421 "configure" > #include "confdefs.h" > > void mm_log(void){} > void mm_dlog(void){} > void mm_flags(void){} > void mm_fatal(void){} > void mm_critical(void){} > void mm_nocritical(void){} > void mm_notify(void){} > void mm_login(void){} > void mm_diskerror(void){} > void mm_status(void){} > void mm_lsub(void){} > void mm_list(void){} > void mm_exists(void){} > void mm_searched(void){} > void mm_expunged(void){} > char mail_open(); > int main() { > mail_open(0,"",0); > return 0; > } > > Any clues on what is causing this error? How can I resolve it? Any > comments > are appreciated...! > > Thanks in advance and Happy New Year to all of you, > > Joerg Aldinger > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php