Greetings,
I have been battling to build PHP 4.2.2 with IMAP and PDF support as a
Apache module here in Mac OS X land.
I have successfully built PHP with most of the options I would like to
enable:
./configure --disable-cli --with-apxs \
--with-mysql --with-pgsql \
--with-gd=/usr/local --with-png-dir=/usr/local \
--with-zlib-dir=/usr --with-jpeg-dir=/usr/local \
--with-freetype-dir=/usr/local --with-t1lib=/usr/local \
--enable-trans-sid --enable-exif \
--with-xml --enable-wddx \
--with-curl=/usr/local --enable-ftp \
--enable-mbstring --enable-mbstr-enc-trans \
--with-ldap --enable-dbx \
--enable-dbase --with-mcrypt=/usr/local \
--enable-sockets
The module seems to work.
When I attempt to enable imap support (--with-imap --with-imap-ssl),
Apache fails to start with the following error:
dyld: /usr/sbin/httpd Undefined symbols:
_ssl_onceonlyinit
Note that I enabled SSL support with my imap build, and I have one
instance of the symbol in defined in mail.h - not in lib. I presume
this is a imap issue?
If I however, attempt to add support for PDFlib:
--with-pdflib=/usr/local/pdflib
The module is created however Apache fails to start with the error:
Syntax error on line 243 of /etc/httpd/httpd.conf:
Cannot load /usr/libexec/httpd/libphp4.so into server: (reason
unknown)
/usr/sbin/apachectl start: httpd could not be started
After running "gdb httpd' I get the message:
Undefined symbols:
_dyld_object_images
I grepped and googled but alas I can not find such a symbol anywhere. I
have a hunch that this is an issue for PDFlib.
All of the libraries were built as shared libraries.
Any ideas or suggestions are most welcomed.
Also, as a side note, when I do a 'make install', the make fails on
apxs. It is looking for libphp4.dylib not the created libphp4.so. If
I edit config_vars.mk, the make install proceeds just fine.
Thanks for your time and the wizardly technology!
Yours,
Jeshua Lacock __________________________
Programmer/Owner Phone: 760.935.4736
http://OpenOSX.com Fax: 760.935.4845
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php