php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18895 PHP configure's does not find SASL2 on System
Submitted: 2002-08-13 19:55 UTC Modified: 2002-09-29 20:28 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: herbert at pontoip dot com dot br Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.2 OS: Slackware 8.1 w/ Kernel 2.4.19
Private report: No CVE-ID: None
 [2002-08-13 19:55 UTC] herbert at pontoip dot com dot br
I wave cyrus-imapd-2.1.5 installed on /usr/local/cyrus
and cyrus-sasl-2.1.7 installed on /usr/local/sasl2.
I'm trying to configure PHP with cyrus and it give me the following error:

sasl not found
configure: error: Please Re-install the cyrus distribution

I look at configure script and note that it does not search SASL very well. It pre-supposes that SASL may be installed on some default locations.

I suggest including a new option on configure to specify where SASL is, when using --with-cyrus option.

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-13 19:59 UTC] herbert at pontoip dot com dot br
I was able to compile it doing the following:

ln -s \
/usr/local/sasl2/include/sasl/sasl.h \
/usr/local/cyrus/include

ln -s \
/usr/local/sasl2/include/sasl \
/usr/local/cyrus/include

ln -s \
/usr/local/sasl2/lib/libsasl2.so \
/usr/local/cyrus/lib/libsasl.so


I had not tested PHP with this yet, but phpinfo() shows me that Cyrus IMAPD support is enabled.
 [2002-08-13 22:32 UTC] kalowsky@php.net
Duplicate of 17119
 [2002-09-19 07:38 UTC] bug at systron dot de
here:
php-4.2.3
linux 2.4.18
cyrus-imapd-2.1.9
cyrus-sasl-2.1.6
httpd-2.0.40
/usr/local/include/sasl/hmac-md5.h
/usr/local/include/sasl/md5.h
/usr/local/include/sasl/md5global.h
/usr/local/include/sasl/prop.h
/usr/local/include/sasl/sasl.h
/usr/local/include/sasl/saslplug.h
/usr/local/include/sasl/saslutil.h
/usr/local/lib/libsasl2.la
/usr/local/lib/libsasl2.so
/usr/local/lib/libsasl2.so.2
/usr/local/lib/libsasl2.so.2.0.6

./configure  --with-apxs2=/usr/local/apache2/bin/apxs
 --with-pear --disable-debug --enable-track-vars --with-ftp
 --with-xml --with-kerberos=/usr/heimdal --enable-sockets
 --with-imap-ssl=/usr/src/imap-2002.RC6 --with-gettext
 --with-cyrus --with-openssl=yes 

==> configure: error: Please Re-install the cyrus  distribution

now I do: ln -s /usr/local/include/sasl/sasl.h /usr/local/include

and run configure again:
==> checking for cyrus imap support... yes
but also
==> configure: error: Unable to find required gettext library

I have no idea for a workaround.
 [2002-09-29 20:28 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Aug 19 03:01:30 2024 UTC