php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19701 imap c-client problems
Submitted: 2002-10-01 20:55 UTC Modified: 2002-10-26 01:00 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: graemel at omniconnect dot com dot au Assigned:
Status: No Feedback Package: IMAP related
PHP Version: 4.2.3 OS: OpenBSD 3.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: graemel at omniconnect dot com dot au
New email:
PHP Version: OS:

 

 [2002-10-01 20:55 UTC] graemel at omniconnect dot com dot au
The c-client library is static, however php assumes that the library is shared.  When apache (1.3.26) is started with php compiled with --with-imap=/path/to/imap  (I'm using the latest release candidate) I get the error

/usr/libexec/ld.so: Undefined symbol "_unixdriver" in httpd:/usr/local/apache/libexec/libphp4.so

I've changed the LDFLAGS to include -lc-client but when compiling I receive this error:

Warning: This library needs some functionality provided by -lc-client.
I have the capability to make that library automatically link in when
you link to this library.  But I can only do this if you have a
shared version of the library, which you do not appear to have.

The unixdriver function is in libc-client.a - how do I get it to link statically?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 21:01 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


And add your full configure line into this report too..

 [2002-10-01 22:05 UTC] graemel at omniconnect dot com dot au
I've been compiling wiht the following options:

--with-xml --with-gettext --with-pgsql=/usr/local/pgsql --with-apxs=/usr/local/apache/bin/apxs --with-imap=/usr/local/src/imap-2002.RC6

The version of imap seems to be irrelevant.  All of them fail - this is just the latest version.

Both the release version and the latest snapshot work fine and build a working dso without --with-imap

If I include --with-imap on the snapshot, it builds ok, but does not build a dso, and I get the following on a "make install"

[activating module `php4' in /usr/local/apache/conf/httpd.conf]
cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so
cp: libs/libphp4.so: No such file or directory
apxs:Break: Command failed with rc=1
*** Error code 1
 [2002-10-02 06:15 UTC] sniper@php.net
Do you have any files in libs/ ? What about .libs/ ?

 [2002-10-02 20:03 UTC] graemel at omniconnect dot com dot au
I have the following files in libs/

libphp4.a    libphp4.la

and in .libs/

libphp4.a    libphp4.la   libphp4.lai
 [2002-10-03 21:56 UTC] graemel at omniconnect dot com dot au
I've gone and linked the php module (current snapshot) statically to apache.  Not really what I wanted, but imap support works with this.
 [2002-10-06 16:33 UTC] mattphilips at hotmail dot com
Same problem for me: 

MacOSX 10.2.1
Apache 1.3.26
UW IMAP imap-2002.RC7  with SSL
PHP 4.2.3
./configure --with-apxs --prefix=/usr --sysconfdir=/etc --
localstatedir=/var --mandir=/usr/share/man --infodir=/usr/
share/info --with-openssl --with-imap --with-imap-ssl --
with-xml --with-zlib

I get the "Warning: This library needs some functionality 
provided by -lc-client..."
 [2002-10-09 11:56 UTC] mattphilips at hotmail dot com
Fixed by getting snap source
 [2002-10-09 12:23 UTC] kalowsky@php.net
As per user comment.
 [2002-10-10 02:06 UTC] mfischer@php.net
Re-opening for feedback.

The comment was not from the user who opened the report.
 [2002-10-10 08:39 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-10-26 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC