On Oct 21, 2007, at 10:27, Sebastiaan Couwenberg wrote:
On Sat Jan 27 20:16:11 PST 2007, Ryan Schmidt wrote:
However, we need to discover if there is a real problem with the fontconfig 2.4.2 portfile, and if so, we need to fix it. Has anybody else been able to successfully compile fontconfig 2.4.2 on Mac OS X 10.3.9? Has anybody else experienced the same problems as Ed?
I experienced the same problem as Ed when I wanted to upgrade fontconfig when port reported it as outdated:
fontconfig 2.4.2_0 < 2.4.2_1
The package would fail to compile:
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_por ts_graphics_fontconfig/work/fontconfig-2.4.2" && make all " returned error 2 Command output: fcaliastail.h:508:2: error: #endif without #if fcaliastail.h:510: error: only weak aliases are supported in this configuration [...] fcaliastail.h:543: error: only weak aliases are supported in this configuration fcaliastail.h:544:2: error: #endif without #if fcaliastail.h:545:2: error: #endif without #if make[3]: *** [fcatomic.lo] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
I eventually tracked it down to a missing dependency on libxml2:
horus:/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_graph ics_fontconfig/work/fontconfig-2.4.2 root# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk [...] checking expat.h usability... no checking expat.h presence... no checking for expat.h... no checking xmlparse.h usability... no checking xmlparse.h presence... no checking for xmlparse.h... no configure: WARNING: Cannot find usable expat library. Trying to use libxml2 as fallback.
[snip] fontconfig declares a dependency on expat. I wonder why fontconfig doesn't think this expat is usable? I assume you do have the expat port installed. What happens if you forcibly uninstall and reinstall expat? Is fontconfig able to use expat then? sudo port -f uninstall expat sudo port clean --work expat sudo port install expat sudo port -f uninstall fontconfig sudo port clean --work fontconfig sudo port -dv install fontconfig If that still doesn't work, please show me the output of "port contents expat" and "sudo port -dv install fontconfig" Do you have MacPorts 1.5.20, and Mac OS X 10.3.9 with all Apple software updates, and Xcode 1.5?
I searched for libxml and installed libxml2:
horus:~ root# port search libxml p5-libxml-enno perl/p5-libxml-enno 1.02 libxml-enno contains the modules XML::DOM, XML::XQL, XML::Checker and several other packages that are no longer distributed separately. p5-libxml-perl perl/p5-libxml-perl 0.08 Collection of Perl modules for working with XML. p5-xml-libxml perl/p5-xml-libxml 1.63 Perl interface to libxml2. p5-xml-libxml-common perl/p5-xml-libxml-common 0.13 Perl extensions for common items of various XML modules. py-libxml2 python/py-libxml2 2.6.21 Python bindings for libxml2 py25-libxml2 python/py25-libxml2 2.6.21 Python bindings for libxml2 rb-libxml2 ruby/rb-libxml2 0.3.6 Ruby bindings for libxml2 libxml textproc/libxml 1.8.17 XML parsing library libxml2 textproc/libxml2 2.6.30 gnome xml library libxmldiff textproc/libxmldiff 0.2.5 libxmldiff aims at providing efficient diff on XML files libxmlxx textproc/libxmlxx 1.0.5 libxml++ is a C++ interface for working with XML files libxmlxx2 textproc/libxmlxx2 2.18.1 libxml++ is a C++ interface for working with XML files
horus:~ root# port install libxml2
After cleaning fontconfig it successfully build again:
horus:/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_graph ics_fontconfig/work/fontconfig-2.4.2 root# make clean [...]
horus:~ root# port install fontconfig - ---> Fetching fontconfig - ---> Verifying checksum(s) for fontconfig - ---> Extracting fontconfig - ---> Configuring fontconfig - ---> Building fontconfig with target all - ---> Staging fontconfig into destroot - ---> Installing fontconfig 2.4.2_1+macosx - ---> Activating fontconfig 2.4.2_1+macosx
I've updated the bug report on this issue to include what I wrote above: http://trac.macports.org/projects/macports/ticket/12251