Open LDAP +universal won't build on 10.6.2
Mark Hattam
mark at dxradio.demon.co.uk
Sat Jan 23 13:36:38 PST 2010
On 22 Jan 2010, at 23:28, Mark Hattam wrote:
>
> On 22 Jan 2010, at 23:00, Mark Hattam wrote:
>
>> On 22 Jan 2010, at 08:57, Ryan Schmidt wrote:
>>
>>> On Jan 22, 2010, at 02:53, Russell Jones wrote:
>>>
>>>> Ryan Schmidt wrote:
>>>
>>>>
>>>
>>>>> On Jan 21, 2010, at 10:16, Russell Jones wrote:
>>>>>
>>>>>> I filed a bug in trac ( http://trac.macports.org/ticket/23300 ) about this a few days ago. Anyone able to shed some light on why it doesn't work? It wasn't clear to me from the debug output. Something to do with the wrong type of libraries being created for the storage back-ends, it seems. I can't see why it happens or what to do about it. I suppose the +aci variant is irrelevant? Is any further information needed?
>>>>>
>>>>> I'm fixing this momentarily. Please wait an hour, then "sudo port selfupdate" and try again.
>>>>
>>>> Now working, thanks!
>>>> So the problem was that openldap didn't depend on icu?
>>>
>>> The universal build was fixed by switching to the muniversal portgroup.
>>>
>>> But I fixed many other things at the same time, including updating the version and adding the missing icu dependency.
>>>
>>> See all my changes here:
>>>
>>> http://trac.macports.org/changeset/62920
>>
>>
>> Just rebooted the iMac to find that Apache2 no longer runs following the ldap upgrade today ...
>>
>> httpd: Syntax error on line 117 of /opt/local/apache2/conf/httpd.conf: Cannot load /opt/local/apache2/modules/libphp5.so into server: dlopen(/opt/local/apache2/modules/libphp5.so, 10): Library not loaded: /opt/local/lib/libldap-2.3.0.dylib\n Referenced from: /opt/local/apache2/modules/libphp5.so\n Reason: image not found
>>
>>
>> Do I have to start rebuilding Apache2 or php5 to get round this?
>>
>> searching for linldap seems to find it still listed
>>
>> iMac:logs mark$ locate libldap
>> /opt/local/lib/libldap-2.3.0.2.23.dylib
>> /opt/local/lib/libldap-2.3.0.dylib
>> /opt/local/lib/libldap.a
>> /opt/local/lib/libldap.dylib
>> /opt/local/lib/libldap.la
>> /opt/local/lib/libldap_r-2.3.0.2.23.dylib
>> /opt/local/lib/libldap_r-2.3.0.dylib
>> /opt/local/lib/libldap_r.a
>> /opt/local/lib/libldap_r.dylib
>> /opt/local/lib/libldap_r.la
>>
>>
>> Mark
>
>
>
> But "locate" might be lying ...
>
> iMac:lib mark$ ls -la /opt/local/lib/ | grep libldap
> -rw-r--r-- 2 root admin 279624 22 Jan 02:35 libldap-2.4.2.5.4.dylib
> lrw-r--r-- 1 root admin 23 22 Jan 02:36 libldap-2.4.2.dylib -> libldap-2.4.2.5.4.dylib
> -rw-r--r-- 2 root admin 421224 22 Jan 02:35 libldap.a
> lrw-r--r-- 1 root admin 23 22 Jan 02:36 libldap.dylib -> libldap-2.4.2.5.4.dylib
> -rw-r--r-- 2 root admin 946 22 Jan 02:35 libldap.la
> -rw-r--r-- 2 root admin 304336 22 Jan 02:35 libldap_r-2.4.2.5.4.dylib
> lrw-r--r-- 1 root admin 25 22 Jan 02:36 libldap_r-2.4.2.dylib -> libldap_r-2.4.2.5.4.dylib
> -rw-r--r-- 2 root admin 466072 22 Jan 02:35 libldap_r.a
> lrw-r--r-- 1 root admin 25 22 Jan 02:36 libldap_r.dylib -> libldap_r-2.4.2.5.4.dylib
> -rw-r--r-- 2 root admin 960 22 Jan 02:35 libldap_r.la
>
> so indeed libldap-2.3.0.dylib is not there now.
>
> Mark
Today, I did
sudo port uninstall -f php5
sudo port install php5 +apache2
apachectl restart
which now lets apache2 run again (forced uninstall to avoid all the php5-xyz ports refusing to let php5 be unistalled)
Presumably as LDAP appears in my phpinfo() as ...
ldap
LDAP Support enabled
RCS Version $Id: ldap.c 287897 2009-08-30 15:33:59Z iliaa $
Total Links 0/unlimited
API Version 3001
Vendor Name OpenLDAP
Vendor Version 20421
... then it matters that I updated OpenLDAP yesterday.
Mark
More information about the macports-users
mailing list