Changes between Initial Version and Version 1 of Ticket #20239


Ignore:
Timestamp:
Jul 9, 2009, 2:03:57 AM (15 years ago)
Author:
blb@…
Comment:

Actually not using -lxml is correct, it should be using -lxml2 (and appears to be doing so). Odd that it isn't finding that symbol, what is the output from running the following?

nm /opt/local/lib/libxml2.2.dylib |grep xmlInitParser

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20239

    • Property Cc jwa@… added
    • Property Owner changed from macports-tickets@… to ryandesign@…
  • Ticket #20239 – Description

    initial v1  
     1{{{
    12$ sudo port -v install ph5p
    23...
     
    1213Warning: the following items did not execute (for php5): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
    1314Error: Status 1 encountered during processing.
    14 
     15}}}
    1516The libxml is happily installed, I checked with "sudo port install libxml", which ends up not installing it because the latest libxml already installed.  If I look at the config.log (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_php5/work/php-5.3.0/config.log), I see at the end:
    1617
     18{{{
    1719...
    1820configure:20354: /usr/bin/gcc-4.0 -o conftest -O2 -gstabs -fvisibility=hidden -I/opt/local/include -no-cpp-precomp -L/opt/local/lib -Wl,-rpath,/opt/local/lib -L/opt/local/lib conftest.c
     
    2931      return 0;
    3032    }
    31 
     33}}}
    3234Which will not work since the compile command is missing -lxml.  If I create conftest.c with the above content, and copy the confdefs.h from the directory of config.log, AND add the -lxml, the test compiles and links.  If I leave out the -lxml, I get this error:
    33 
     35{{{
    3436Undefined symbols:
    3537  "_xmlInitParser", referenced from:
     
    3739ld: symbol(s) not found
    3840collect2: ld returned 1 exit status
    39 
     41}}}
    4042So the configure test is missing -lxml?