Re: PHP 4.0 Bug #5845: compile with imap support fails do to c-lient
| From: | Mark Melvin | Date: | Sat, 29 Jul 2000 01:02:43 +0000 |
| Subject: | Re: PHP 4.0 Bug #5845: compile with imap support fails do to c-lient | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-26797@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: <gfajardo@iei.net>
To: <php-dev@lists.php.net>
Sent: Saturday, July 29, 2000 05:51
Subject: [PHP-DEV] PHP 4.0 Bug #5845: compile with imap support fails do to
c-lient
<--cut-->
>
> cd ..;
gcc -funsigned-char -I/usr/local/ports/php-4.0.1pl2 -I/usr/local/ports/php-
4.0.1pl2/main -I/usr/local/ports/php-4.0.1pl2/main -I/usr/local/ports/php-4.
0.1pl2/Zend -I/usr/local/ports/php-4.0.1pl2/Zend -I/usr/local/ports/php-4.0.
1pl2 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
./apaci -o
helpers/dummy
helpers/dummy.c -R/usr/local/lib -rdynamic -L/usr/local/lib -Lmodules/php
4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -lc-client4 -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
>
Those external symbols are defined in php in ext/imap. Somehow the linking
phase
failed to find those in libmodphp4.a, it can be tested with a simple program
that imports mm_notify from -lmodphp4. Otherwise it might be a problem of
circular reference.
You can try compiling imap from source or forcing to use static library.