Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#12251 closed defect (fixed)

BUG: GD2 and fontconfig port problems

Reported by: pedro.custodio@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: pedro.custodio@…, ryandesign (Ryan Carsten Schmidt), mail@…, sebastic@…
Port:

Description

I'm having quite a lot of trouble installing GD2 on my Intel macbook pro... during the install of the GD2 port, it fails because of the fontconfig and once I try to installed it via its own port, I get the following error:

--->  Building fontconfig with target all
Error: Target com.apple.build returned: shell command " cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_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:511:2: error: #endif without #if
fcaliastail.h:513: error: only weak aliases are supported in this configuration
fcaliastail.h:514:2: error: #endif without #if
fcaliastail.h:516: error: only weak aliases are supported in this configuration
fcaliastail.h:517:2: error: #endif without #if
fcaliastail.h:519: error: only weak aliases are supported in this configuration
fcaliastail.h:520:2: error: #endif without #if
fcaliastail.h:522: error: only weak aliases are supported in this configuration
fcaliastail.h:523:2: error: #endif without #if
fcaliastail.h:525: error: only weak aliases are supported in this configuration
fcaliastail.h:526:2: error: #endif without #if
fcaliastail.h:528: error: only weak aliases are supported in this configuration
fcaliastail.h:529:2: error: #endif without #if
fcaliastail.h:531: error: only weak aliases are supported in this configuration
fcaliastail.h:532:2: error: #endif without #if
fcaliastail.h:534: error: only weak aliases are supported in this configuration
fcaliastail.h:535:2: error: #endif without #if
fcaliastail.h:537: error: only weak aliases are supported in this configuration
fcaliastail.h:538:2: error: #endif without #if
fcaliastail.h:540: error: only weak aliases are supported in this configuration
fcaliastail.h:541:2: error: #endif without #if
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

Error: Status 1 encountered during processing.

I have the latest XCode tools and DarwinPorts and gcc 4.0.1... and since I've managed without problems to install on a another mac intel, I'm wondering if its due to any other pre-installed port...

currently my port installed list has the following items:

The following ports are currently installed:
  apr @1.2.8_0 (active)
  apr-util @1.2.8_1 (active)
  bzip2 @1.0.4_1 (active)
  cclient @2004g_0 (active)
  curl @7.16.1_0+darwin_8 (active)
  db44 @4.4.20_0+darwin_8 (active)
  expat @2.0.0_1
  expat @2.0.1_0 (active)
  freeimage @3.9.2-20070101_0 (active)
  freetype @2.3.4_0 (active)
  gettext @0.15_0 (active)
  ghostscript @8.54_0 (active)
  ImageMagick @6.3.3-5_0+darwin_8 (active)
  jpeg @6b_1 (active)
  libiconv @1.11_0+darwin_8 (active)
  libmcrypt @2.5.8_0+darwin_8 (active)
  libpng @1.2.10_2+darwin_8 (active)
  libpng @1.2.16_0+darwin_8
  libtool @1.5.22_0 (active)
  libxml2 @2.6.27_0 (active)
  libxslt @1.1.20_0 (active)
  lynx @2.8.5rel.2_0 (active)
  mhash @0.9.8.1_0+darwin_8 (active)
  ncftp @3.2.0_0 (active)
  ncurses @5.5_1+darwin_8 (active)
  ncursesw @5.5_0+darwin_8 (active)
  neon @0.26.2_1 (active)
  openssl @0.9.8d_0+darwin_8 (active)
  pcre @7.0_0 (active)
  php5 @5.2.1_3+darwin_8+macosx (active)
  pkgconfig @0.21_0 (active)
  python24 @2.4.3_1+darwin_8 (active)
  python25 @2.5_0+darwin_8 (active)
  rb-rubygems @0.9.0_0 (active)
  readline @5.1.004_0 (active)
  ruby @1.8.5_2 (active)
  sqlite3 @3.3.7_0+darwin_8 (active)
  subversion @1.4.2_0 (active)
  swig @1.3.31_0+darwin_8 (active)
  tidy @20051026_0+darwin_8 (active)
  tiff @3.8.2_0+darwin_8 (active)
  wget @1.10.2_0+darwin_8 (active)
  zlib @1.2.3_0 (active)

Hope someone can help me on this one...

Change History (9)

comment:1 Changed 17 years ago by mail@…

Hi, i've got the same Problems on a PowerBook G4 (Tiger 10.4.10, XCode 2.4.1, GCC 4.0.1) I'm on version 1.5 of MacPorts some time ago it compiled on this mac but don't know what version...

my installed Ports are: bison @2.3 devel/bison bzip2 @1.0.4 archivers/bzip2 expat @2.0.1 textproc/expat freetype @2.3.5 print/freetype gettext @0.16.1 devel/gettext gnupg @1.4.7 mail/gnupg gpgme @1.1.4 devel/gpgme jpeg @6b graphics/jpeg libassuan @1.0.1 devel/libassuan libgcrypt @1.2.4 devel/libgcrypt libgpg-error @1.5 devel/libgpg-error libiconv @1.11 textproc/libiconv libksba @1.0.1 devel/libksba libpcap @0.9.5 net/libpcap libpng @1.2.18 graphics/libpng lynx @2.8.6rel.5 www/lynx m4 @1.4.9 devel/m4 ncftp @3.2.0 net/ncftp ncurses @5.6 devel/ncurses ncursesw @5.6 devel/ncursesw nmap @4.20 net/nmap openssl @0.9.8e devel/openssl p7zip @4.47 archivers/p7zip pcre @7.1 devel/pcre pinentry @0.7.2 security/pinentry pth @2.0.6 devel/pth readline @5.2.001 devel/readline wget @1.10.2 net/wget zlib @1.2.3 archivers/zlib

comment:2 Changed 17 years ago by nox@…

Milestone: Port Bugs
Priority: BlockerHigh
Summary: GD2 and fontconfig port problemsBUG: GD2 and fontconfig port problems
Version: 1.4.40

comment:3 Changed 17 years ago by sebastic@…

I've also experienced this problem 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_graphics_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.
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBXML2... configure: error: Package requirements (libxml-2.0 >= 2.6) were not met:

No package 'libxml-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBXML2_CFLAGS
and LIBXML2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

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_graphics_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

comment:4 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: pedro.custodio@… ryandesign@… mail@… sebastic@… added

comment:5 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-dev@… to ryandesign@…

comment:6 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

See also #12332.

comment:7 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Sebastiaan discovered that his real problem was an outdated expat. After upgrading expat, his fontconfig built just fine. Will the other people experiencing this problem in this bug please test whether the solution listed there helps them too, and report back here?

comment:8 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Priority: HighNormal
Resolution: fixed
Status: newclosed

I'm going to assume that this problem got resolved for the people reporting it in this ticket. But I don't think the cause was anything thus far discussed in this ticket. See #14102 for the real culprit.

comment:9 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.