Opened 16 years ago

Closed 16 years ago

Last modified 12 years ago

#15807 closed defect (fixed)

fontconfig-2.6.0 build error on Panther because freetype-2.3.7 installed to wrong location

Reported by: wustenfuchs@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: freetype

Description

2003 Apple Powerbook G4 12" - Mac OS-X 10.3.9 - XCode 1.5 - Macports 1.6.0

Trying to install gtk2 as part of wireshark - failed on fontconfig-2.6.0. I have never submitted a bug report before so please excuse any formatting errors on my part...

Terminal output as follows:

ROMMEL:~ Rommel$ sudo port -dRst install fontconfig
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/fontconfig
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/fontconfig
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Searching for dependency: libiconv
DEBUG: Found Dependency: receipt exists for libiconv
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: Searching for dependency: expat
DEBUG: Found Dependency: receipt exists for expat
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/print/freetype
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/print/freetype
DEBUG: Searching for dependency: freetype
DEBUG: Found Dependency: receipt exists for freetype
--->  Fetching fontconfig
--->  Verifying checksum(s) for fontconfig
--->  Extracting fontconfig
--->  Configuring fontconfig
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/print/freetype
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
trace: access denied to /opt/local/bin/pkg-config (pkgconfig)
--->  Building fontconfig with target all
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/print/freetype
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/fontconfig-2.6.0" && make all " returned error 2
Command output: if /bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2   -Wall -Wpointer-arith -Wstrict-prototypes   -Wmissing-prototypes -Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR='"/opt/local/var/cache/fontconfig"' -DFONTCONFIG_PATH='"/opt/local/etc/fonts"'  -I/opt/local/include  -O2 -MT fcpat.lo -MD -MP -MF ".deps/fcpat.Tpo" -c -o fcpat.lo fcpat.c; \
then mv -f ".deps/fcpat.Tpo" ".deps/fcpat.Plo"; else rm -f ".deps/fcpat.Tpo"; exit 1; fi
 /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/opt/local/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/opt/local/etc/fonts\" -I/opt/local/include -O2 -MT fcpat.lo -MD -MP -MF .deps/fcpat.Tpo -c fcpat.c  -fno-common -DPIC -o .libs/fcpat.o
 /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/opt/local/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/opt/local/etc/fonts\" -I/opt/local/include -O2 -MT fcpat.lo -MD -MP -MF .deps/fcpat.Tpo -c fcpat.c -o fcpat.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2   -Wall -Wpointer-arith -Wstrict-prototypes   -Wmissing-prototypes -Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR='"/opt/local/var/cache/fontconfig"' -DFONTCONFIG_PATH='"/opt/local/etc/fonts"'  -I/opt/local/include  -O2 -MT fcserialize.lo -MD -MP -MF ".deps/fcserialize.Tpo" -c -o fcserialize.lo fcserialize.c; \
then mv -f ".deps/fcserialize.Tpo" ".deps/fcserialize.Plo"; else rm -f ".deps/fcserialize.Tpo"; exit 1; fi
 /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/opt/local/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/opt/local/etc/fonts\" -I/opt/local/include -O2 -MT fcserialize.lo -MD -MP -MF .deps/fcserialize.Tpo -c fcserialize.c  -fno-common -DPIC -o .libs/fcserialize.o
 /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/opt/local/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/opt/local/etc/fonts\" -I/opt/local/include -O2 -MT fcserialize.lo -MD -MP -MF .deps/fcserialize.Tpo -c fcserialize.c -o fcserialize.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2   -Wall -Wpointer-arith -Wstrict-prototypes   -Wmissing-prototypes -Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR='"/opt/local/var/cache/fontconfig"' -DFONTCONFIG_PATH='"/opt/local/etc/fonts"'  -I/opt/local/include  -O2 -MT fcstr.lo -MD -MP -MF ".deps/fcstr.Tpo" -c -o fcstr.lo fcstr.c; \
then mv -f ".deps/fcstr.Tpo" ".deps/fcstr.Plo"; else rm -f ".deps/fcstr.Tpo"; exit 1; fi
 /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/opt/local/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/opt/local/etc/fonts\" -I/opt/local/include -O2 -MT fcstr.lo -MD -MP -MF .deps/fcstr.Tpo -c fcstr.c  -fno-common -DPIC -o .libs/fcstr.o
 /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/opt/local/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/opt/local/etc/fonts\" -I/opt/local/include -O2 -MT fcstr.lo -MD -MP -MF .deps/fcstr.Tpo -c fcstr.c -o fcstr.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2   -Wall -Wpointer-arith -Wstrict-prototypes   -Wmissing-prototypes -Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR='"/opt/local/var/cache/fontconfig"' -DFONTCONFIG_PATH='"/opt/local/etc/fonts"'  -I/opt/local/include  -O2 -MT fcxml.lo -MD -MP -MF ".deps/fcxml.Tpo" -c -o fcxml.lo fcxml.c; \
then mv -f ".deps/fcxml.Tpo" ".deps/fcxml.Plo"; else rm -f ".deps/fcxml.Tpo"; exit 1; fi
 /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/opt/local/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/opt/local/etc/fonts\" -I/opt/local/include -O2 -MT fcxml.lo -MD -MP -MF .deps/fcxml.Tpo -c fcxml.c  -fno-common -DPIC -o .libs/fcxml.o
 /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/opt/local/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/opt/local/etc/fonts\" -I/opt/local/include -O2 -MT fcxml.lo -MD -MP -MF .deps/fcxml.Tpo -c fcxml.c -o fcxml.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2   -Wall -Wpointer-arith -Wstrict-prototypes   -Wmissing-prototypes -Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR='"/opt/local/var/cache/fontconfig"' -DFONTCONFIG_PATH='"/opt/local/etc/fonts"'  -I/opt/local/include  -O2 -MT ftglue.lo -MD -MP -MF ".deps/ftglue.Tpo" -c -o ftglue.lo ftglue.c; \
then mv -f ".deps/ftglue.Tpo" ".deps/ftglue.Plo"; else rm -f ".deps/ftglue.Tpo"; exit 1; fi
 /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/opt/local/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/opt/local/etc/fonts\" -I/opt/local/include -O2 -MT ftglue.lo -MD -MP -MF .deps/ftglue.Tpo -c ftglue.c  -fno-common -DPIC -o .libs/ftglue.o
 /usr/bin/gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/opt/local/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/opt/local/etc/fonts\" -I/opt/local/include -O2 -MT ftglue.lo -MD -MP -MF .deps/ftglue.Tpo -c ftglue.c -o ftglue.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=link /usr/bin/gcc-3.3  -O2  -L/opt/local/lib -o libfontconfig.la -rpath /opt/local/lib -version-info 4:0:3 -no-undefined  fcatomic.lo fcblanks.lo fccache.lo fccfg.lo fccharset.lo fcdbg.lo fcdefault.lo fcdir.lo fcfreetype.lo fcfs.lo fcinit.lo fclang.lo fclist.lo fcmatch.lo fcmatrix.lo fcname.lo fcpat.lo fcserialize.lo fcstr.lo fcxml.lo ftglue.lo -liconv -L/usr/X11R6/lib -lfreetype  -lexpat 
/usr/bin/gcc-3.3 -dynamiclib  -o .libs/libfontconfig.1.3.0.dylib  .libs/fcatomic.o .libs/fcblanks.o .libs/fccache.o .libs/fccfg.o .libs/fccharset.o .libs/fcdbg.o .libs/fcdefault.o .libs/fcdir.o .libs/fcfreetype.o .libs/fcfs.o .libs/fcinit.o .libs/fclang.o .libs/fclist.o .libs/fcmatch.o .libs/fcmatrix.o .libs/fcname.o .libs/fcpat.o .libs/fcserialize.o .libs/fcstr.o .libs/fcxml.o .libs/ftglue.o  -L/opt/local/lib /opt/local/lib/libiconv.dylib -L/usr/X11R6/lib -lfreetype /opt/local/lib/libexpat.dylib  -install_name  /opt/local/lib/libfontconfig.1.dylib -compatibility_version 5 -current_version 5.0 -Wl,-single_module
ld: Undefined symbols:
_FT_Load_Sfnt_Table
_FT_Select_Size
/usr/bin/libtool: internal link edit command failed
make[3]: *** [libfontconfig.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

This same error was encountered a couple of weeks ago, and since then I have reinstalled the os from scratch and downloaded and installed a fresh copy of MacPorts and Xcode, with the same results. Any ideas?

Change History (7)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to ryandesign@…
Summary: fontconfig-2.6.0 build errorfontconfig-2.6.0 build error on Panther

Assigning to maintainer.

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

fontconfig 2.6.0 is successfully installed on my Power Mac G4 with Mac OS X 10.3.9, Xcode 1.5, MacPorts trunk.

The only curious thing I see so far in your output is "-I/usr/X11R6/include/freetype2". It shouldn't be looking for freetype in /usr/X11R6; it should be looking for it in /opt/local just like everything else.

comment:3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

It seems that freetype 2.3.7 installed by MacPorts installs into /usr/local on Panther. That is very wrong and may explain why fontconfig then couldn't find it in the MacPorts prefix, and looked for it instead in /usr/X11R6. I will see if I can fix the freetype port.

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

Resolution: fixed
Status: newclosed
Summary: fontconfig-2.6.0 build error on Pantherfontconfig-2.6.0 build error on Panther because freetype-2.3.7 installed to wrong location

Here is the freetype project's ticket for this bug. I committed a fix in r37994. Please wait 30 minutes, then "sudo port -ncuf upgrade freetype" to get the fixed version, then you should be able to install fontconfig. If not, please re-open this ticket.

And thank you very much for reporting this problem.

comment:5 in reply to:  4 Changed 16 years ago by wustenfuchs@…

Replying to ryandesign@macports.org:

Here is the freetype project's ticket for this bug. I committed a fix in r37994. Please wait 30 minutes, then "sudo port -ncuf upgrade freetype" to get the fixed version, then you should be able to install fontconfig. If not, please re-open this ticket.

And thank you very much for reporting this problem.

Thankyou. New builds of freetype and fontconfig appear fine.

comment:6 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

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

Keywords: fontconfig-2.6.0 build error removed
Port: freetype added

The problem was that FreeType started using a feature of GNU make only available in version 3.80 and later, and Panther's GNU make is 3.79. Since MacPorts no longer supports Panther, I removed the patch in r92394. Any remaining Panther users should install a newer version of GNU make, for example by installing the gmake port.

Note: See TracTickets for help on using tickets.