more woes with php 5.2.6

Ryan Schmidt ryandesign at macports.org
Fri Jul 25 15:05:13 PDT 2008


On Jul 25, 2008, at 16:40, Mark Hattam wrote:

> At 17:30 -0500 24/7/08, Ryan Schmidt wrote:
>
>> On Jul 24, 2008, at 16:30, Mark Hattam wrote:
>>
>>>> On Jul 22, 2008, at 14:08, Mark Hattam wrote:
>>>>
>>>>> After a shutdown & restart, the Powerbook (10.4.11) wouldn't  
>>>>> run up
>>>>> Apache/php5 ... so tried uninstalling and re-installing ...  
>>>>> Apache by
>>>>> itself seems OK, but php5 won't install. Obviously it had  
>>>>> previously,
>>>>> when 5.2.6_1 first worked, but now it wont. I'm up to date on port
>>>>> sync (selfupdate).
>>>>>
>>>>>
>>>>> Powerbook:~ $ sudo port install  php5 @5.2.6_1+apache2+macosx 
>>>>> +mysql5+sqlite
>>>>>
>>>>> --->  Building php5 with target all
>>>>> Error: Target org.macports.build returned: shell command " cd
>>>>> "/opt/local/var/macports/build/ 
>>>>> _opt_local_var_macports_sources_rsync.macports.org_release_ports_w 
>>>>> ww_php5/work/php-5.2.6"
>>>>> && make all " returned error 2
>>>>
>>>> [snip]
>>>>
>>>>> /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning can't  
>>>>> open
>>>>> dynamic library: /opt/local/lib/libxml2.2.dylib referenced from:
>>>>> /opt/local/lib/libexslt.dylib (checking for undefined symbols  
>>>>> may be
>>>>> affected) (No such file or directory, errno = 2)
>>>>> /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined  
>>>>> symbols:
>>>>> _xmlTextReaderSchemaValidate
>>>>> _xmlTextReaderSetup
>>>>> collect2: ld returned 1 exit status
>>>>> make: *** [libs/libphp5.bundle] Error 1
>>>>>
>>>>> Error: Status 1 encountered during processing.
>>>>
>>>> It seems you do not have /opt/local/lib/libxml2.2.dylib
>>>> I wonder why not.
>>>> On my system, that is a symlink to libxml2.2.6.32.dylib and it's  
>>>> provided by the libxml2 port.
>>>> What version of the libxml2 port do you have installed?
>>>> Try "port installed libxml2"
>>>
>>> Yes, that's pretty much what I thought ... how has it gone? I  
>>> usually only do reboots on the PowerBook after Apple updates. But  
>>> on Saturday I shut it down and restarted it in the evening. On  
>>> restart I found Apache2 wouldn't run, which is a rather big blow.
>>>
>>> Welcome to Darwin!
>>> modem-645:~ $ sudo port installed libxml2
>>> The following ports are currently installed:
>>>   libxml2 @2.6.31_0
>>>   libxml2 @2.6.32_0
>>>   libxml2 @2.6.32_1 (active)
>>
>>
>> Try
>>
>> sudo port deactivate libxml2 @2.6.32_1
>> sudo port activate libxml2 @2.6.32_1
>>
>> Does that bring back the /opt/local/lib/libxml2.2.dylib symlink?
>
>
> modem-3637:~ $ sudo port deactivate libxml2 @2.6.32_1
> --->  Deactivating libxml2 2.6.32_1
>
> modem-3637:~ $ sudo port activate libxml2 @2.6.32_1
> --->  Activating libxml2 2.6.32_1
>
> modem-3637:~ $ cd /opt/local/lib/
> modem-3637:/opt/local/lib $ ls -la
> lrwxr-xr-x     1 root      admin        9 Jul 25 22:33 libxml2 ->  
> libxml2.2
> -rwxr-xr-x     2 root      admin  1319504 Jul  4 01:53 libxml2.2
> lrwxr-xr-x     1 root      admin        9 Jul 25 22:33  
> libxml2.2.6.32 -> libxml2.2
> -rwxr-xr-x     2 root      admin      835 Jul  4 01:53 libxml2.la
>
>
> Doesn't seem to have (re-)added a link here. And trying to install  
> php5 still results in the same error.

On my system I see:

$ ls -l *xml*
-rwxr-xr-x   2 rschmidt  admin  1179072 Jul  4 00:15  
libxml2.2.6.32.dylib
lrwxr-xr-x   1 rschmidt  admin       20 Jul  4 00:16 libxml2.2.dylib - 
 > libxml2.2.6.32.dylib
lrwxr-xr-x   1 rschmidt  admin       20 Jul  4 00:16 libxml2.dylib ->  
libxml2.2.6.32.dylib
-rwxr-xr-x   2 rschmidt  admin      838 Jul  4 00:15 libxml2.la
-rw-r--r--   2 rschmidt  admin      214 Jul  4 00:15 xml2Conf.sh

So there are a number of curious differences.
1. Why do your files not have the .dylib extension?
2. Why are your symlinks pointing to libxml2.2 instead of to  
libxml2.2.6.32?
3. Why are your libxml2.2 and libxml2.la untouched since July 4,  
implying they are not a part of the libxml2 port?

I'd also like to know what version of Xcode you have. Go to / 
Developer/Applications and get info on Xcode. If the version is less  
than 2.4.1, please upgrade to 2.4.1 or 2.5.

Then please do:

sudo port -f uninstall libxml2 @2.6.32_1

Then look in /opt/local/lib and see if libxml2.2 and libxml2.la  
remain. If so, delete them manually. In fact, after you uninstall  
libxml2, make sure all of the following are absent, and if they're  
present, delete them:

/opt/local/bin/xml2-config
/opt/local/bin/xmlcatalog
/opt/local/bin/xmllint
/opt/local/include/libxml2/*
/opt/local/lib/libxml2*
/opt/local/lib/pkgconfig/libxml-2.0.pc
/opt/local/lib/xml2Conf.sh
/opt/local/share/aclocal/libxml.m4
/opt/local/share/doc/libxml2-2.6.32/*
/opt/local/share/gtk-doc/html/libxml2/*
/opt/local/share/man/man1/xml2-config*
/opt/local/share/man/man1/xmlcatalog*
/opt/local/share/man/man1/xmllint*
/opt/local/share/man/man3/libxml*

Then reinstall libxml2:

sudo port install libxml2

Let us know if that fixes things.



More information about the macports-users mailing list