[Imap-uw] Re: Linking problems with imap2006b + PHP 5 on
Solaris 9
Mark Crispin
mrc at CAC.Washington.EDU
Wed Apr 11 11:50:03 PDT 2007
[Redirecting to imap-uw - if you use the old c-client name it has to be
manually approved by the moderator before being posted...]
On Wed, 11 Apr 2007, Vadim Zeitlin wrote:
> This can happen for the static library too and there is a standard way to
> prevent this from happening: define the version constants in the library
> header file and require the user code to pass them to the library
> initialization function.
Currently, the "library initialization function" for c-client is the
linkage.c stuff (env_init() is OS-dependent), which sadly some developers
fail to use (and then I get their bug reports when things don't work as
expected...). My preference would be to eliminate it entirely rather than
introduce another way for things to go wrong.
In practice, I haven't observed the version skew problem with static
library linkings, especially when you use the normal distribution and the
.a file is in the same place as the .h files! There's also currently no
mechanism in place for a version which is anything other than an advisory
string, and as you noted that needs to happen.
Maybe in a future release...
-- Mark --
http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
More information about the Imap-uw
mailing list