more woes with php 5.2.6

Mark Hattam mark at dxradio.demon.co.uk
Sat Jul 26 02:34:09 PDT 2008


At 23:00 -0500 25/7/08, Ryan Schmidt wrote:
>On Jul 25, 2008, at 20:09, Mark Hattam wrote:
>
>>At 17:05 -0500 25/7/08, Ryan Schmidt wrote:
>>
>>>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_www_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.
>>
>>
>>Get Info on XCode says it is "Xcode version 2.5" ... I re-installed
>>2.5 on the 25 May when the php5 port was updated but wouldn't upgrade
>>properly. Doing that did get php5 working, and it continued to work
>>right up til the shutdown/reboot I did last weekend.
>>
>>Doing your suggestions
>>
>>modem-1327: $ sudo port -f uninstall libxml2 @2.6.32_1
>>--->  Unable to uninstall libxml2 2.6.32_1, the following ports depend on it:
>>--->    libxslt
>>--->    libxslt
>>Warning: Uninstall forced.  Proceeding despite dependencies.
>>--->  Deactivating libxml2 2.6.32_1
>>--->  Uninstalling libxml2 2.6.32_1
>>
>>modem-1327:~ $ cd /opt/local/lib
>>modem-1327:/opt/local/lib $ ls -la
>>lrwxr-xr-x     1 root      admin       14 Apr 16  2007 libxar.dylib
>>-> libxar.1.dylib
>>-rwxr-xr-x     2 root      admin   232616 May  8 22:30 libxslt.1.1.23.dylib
>>(ie now no libxml........ anything)
>>
>>All your "check for" items do not exist.
>>
>>Install libxml2 ...
>>
>>modem-1327: $ sudo port install libxml2
>>Password:
>>--->  Fetching libxml2
>>--->  Verifying checksum(s) for libxml2
>>--->  Extracting libxml2
>>--->  Configuring libxml2
>>--->  Building libxml2 with target all
>>--->  Staging libxml2 into destroot
>>Warning: violation by /opt/local/man
>>Warning: libxml2 violates the layout of the ports-filesystems!
>>Warning: Please fix or indicate this misbehavior (if it is intended),
>>it will be an error in future releases!
>
>What got put into /opt/local/man? There should be no destroot 
>violation in this port. What does "port contents libxml2" say?
>
>>--->  Installing libxml2 2.6.32_1
>>--->  Activating libxml2 2.6.32_1
>>--->  Cleaning libxml2
>>
>>Check the /opt/local/lib/ directory for libxml stuff ...
>>
>>modem-1327: $ cd /opt/local/lib
>>modem-1327:/opt/local/lib markhattam$ ls -la
>>
>>lrwxr-xr-x     1 root      admin        9 Jul 26 02:04 libxml2 -> libxml2.2
>>-rwxr-xr-x     2 root      admin  1319504 Jul 26 02:04 libxml2.2
>>lrwxr-xr-x     1 root      admin        9 Jul 26 02:04 libxml2.2.6.32
>>-> libxml2.2
>>-rwxr-xr-x     2 root      admin      835 Jul 26 02:04 libxml2.la
>>
>>which apart from the date now being today looks remarkably similar to
>>what I had before
>>
>>>>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
>
>What got put into /opt/local/man? There should be no destroot 
>violation in this port. What does "port contents libxml2" say?
>
>Your system seems to be building libxml2 very differently from mine. 
>And I don't yet know why.
>
>Do you have anything in /usr/local or /sw which might be 
>interfering? Have you set the DYLD_LIBRARY_PATH or 
>DYLD_FALLBACK_LIBRARY_PATH variables to some value? (When you do 
>"echo $DYLD_LIBRARY_PATH" or "echo $DYLD_FALLBACK_LIBRARY_PATH" is 
>it non-empty?)
>
>Try uninstalling and rebuilding, this time capturing the debug info 
>and the config.log and sending those to me. Do:
>
>sudo port -f uninstall libxml2 @2.6.32_1
>sudo port -d destroot libxml2 2>&1 | tee ~/Desktop/libxml2.txt
>cp `port dir libxml2`/work/libxml2-2.6.32/config.log ~/Desktop
>sudo port install libxml2
>
>Then send me config.log and libxml2.txt from your Desktop. I can 
>compare these with what my system produces and hopefully spot the 
>problem.


Looking at /opt/local/man, the items with a Jun26 02:04 timestamp seem to be
drwxr-xr-x    199 root      admin   6766 Jul 26 02:04 man1
drwxr-xr-x   1894 root      admin  64396 Jul 26 02:04 man3
drwxr-xr-x     12 root      admin    408 Jun 28 02:04 man5

man1 seems to have these
-r--r--r--     2 root      admin    625 Jun 28 02:04 svn.1.gz
-r--r--r--     2 root      admin    645 Jun 28 02:04 svnadmin.1.gz
-r--r--r--     2 root      admin    648 Jun 28 02:04 svndumpfilter.1.gz
-r--r--r--     2 root      admin    642 Jun 28 02:04 svnlook.1.gz
-r--r--r--     2 root      admin    644 Jun 28 02:04 svnsync.1.gz
-r--r--r--     2 root      admin    652 Jun 28 02:04 svnversion.1.gz
-rw-r--r--     2 root      admin   1184 Jul 26 02:04 xml2-config.1
-rw-r--r--     2 root      admin   6135 Jul 26 02:04 xmlcatalog.1
-rw-r--r--     2 root      admin  10824 Jul 26 02:04 xmllint.1

man3 has
-rw-r--r--      2 root  admin   1630 Jul 26 02:04 libxml.3

man5 has
-r--r--r--    2 root  admin   1154 Jun 28 02:04 svnserve.conf.5.gz

but I could have easily missed an item or two scanning through the listings.

sudo port contents libxml2 gives me (for /opt/local/man/...)
[snip]
   /opt/local/man/man1/xml2-config.1
   /opt/local/man/man1/xmlcatalog.1
   /opt/local/man/man1/xmllint.1
   /opt/local/man/man3/libxml.3
[/snip]

I don't believe I have anything in /usr/local which is relevant ... I 
have no idea what "hermes" is.

modem-612:/usr/local $ ls -la
total 0
drwxr-xr-x    3 root  wheel  102 Mar 20 23:15 .
drwxr-xr-x   11 root  wheel  374 May 24 22:50 ..
drwxr-xr-x    4 root  wheel  136 Mar 20 23:15 hermes

and there is no /usr/local/sw /usr/sw or /sw directory

The two "echo" commands don't produce any return value ...

modem-612:/usr $ echo $DYLD_LIBRARY_PATH

modem-612:/usr $ echo $DYLD_FALLBACK_LIBRARY_PATH


uninstall went the same as last time
the -d destroot log and the config.log I'll send to you personally 
rather than bog down the list.

The install

modem-612:/usr $ sudo port install libxml2
--->  Installing libxml2 2.6.32_1
--->  Activating libxml2 2.6.32_1
--->  Cleaning libxml2

again puts the same things into /opt/local/lib/

Mark



More information about the macports-users mailing list