Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#2053 closed defect (fixed)

Unable to install GTK2 - Fontconfig

Reported by: earnan@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

This is my first bug so It might be bogus.

When installing GTK2 I get a failure on Fonconfigr. To generate this error I ran: port install fontconfig The specific error is configure: error: cannot find expat library

Change History (7)

comment:1 Changed 20 years ago by olegb@…

please provide the output of:

"sudo port -dv install fontconfig" "port installed" and tell us what platform and version you are using.

comment:2 Changed 20 years ago by Torsten.Eriksson@…

I seem also to have a problem with the installation of gtk2:

/Torsten

Output:


tibook:/usr/local/darwinports/dports/gnome root# port install gtk2 ---> Installing freetype 2.1.7_0 ---> Activating freetype 2.1.7_0 ---> Installing fontconfig 2.2.2_1 ---> Activating fontconfig 2.2.2_1 ---> Installing Xft2 2.1.6_0 ---> Activating Xft2 2.1.6_0 ---> Installing pango 1.4.0_2 ---> Activating pango 1.4.0_2 ---> Building gtk2 with target all Error: Target com.apple.build returned: shell command "cd "/usr/local/darwinports/dports/x11/gtk2/ work/gtk+-2.4.1" && make all CFLAGS+="-I/usr/X11R6/include"" returned error 2 Command output: make[2]: Nothing to be done for `all'. Making all in gdk-pixbuf make all-recursive Making all in pixops make[4]: Nothing to be done for `all'. Making all in gdk make all-recursive Making all in x11 if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -DXTHREADS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/ include -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/ X11R6/include -I/usr/local/include -no-cpp-precomp -DX_LOCALE -I/usr/X11R6/include -MT gdkasync.lo -MD -MP -MF ".deps/gdkasync.Tpo" \

-c -o gdkasync.lo test -f 'gdkasync.c' || echo './'gdkasync.c; \

then mv -f ".deps/gdkasync.Tpo" ".deps/gdkasync.Plo"; \ else rm -f ".deps/gdkasync.Tpo"; exit 1; \ fi

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../

gdk -I../../gdk -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -DXTHREADS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/ include/freetype2 -I/usr/X11R6/include -I/usr/local/include -no-cpp-precomp -DX_LOCALE -I/usr/ X11R6/include -MT gdkasync.lo -MD -MP -MF .deps/gdkasync.Tpo -c gdkasync.c -fno-common -DPIC -o .libs/gdkasync.o In file included from /usr/X11R6/include/X11/Xft/Xft.h:35,

from ../../gdk/x11/gdkdrawable-x11.h:35, from ../../gdk/x11/gdkwindow-x11.h:30, from gdkprivate-x11.h:36, from gdkx.h:78, from gdkasync.c:49:

/usr/local/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!" /usr/local/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files." /usr/local/include/freetype2/freetype/freetype.h:22:2: #error "Example:" /usr/local/include/freetype2/freetype/freetype.h:23:2: #error " #include <ft2build.h>" /usr/local/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H" make[4]: * [gdkasync.lo] Error 1 make[3]: * [all-recursive] Error 1 make[2]: * [all] Error 2 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

tibook:/usr/local/darwinports/dports/gnome root# port -dv install fontconfig DEBUG: Requested variant powerpc is not provided by port fontconfig. DEBUG: Requested variant darwin is not provided by port fontconfig. DEBUG: Found Dependency: receipt exists for expat DEBUG: Found Dependency: receipt exists for freetype DEBUG: Skipping completed com.apple.main (fontconfig) DEBUG: Skipping completed com.apple.fetch (fontconfig) DEBUG: Skipping completed com.apple.checksum (fontconfig) DEBUG: Skipping completed com.apple.extract (fontconfig) DEBUG: Skipping completed com.apple.patch (fontconfig) DEBUG: Skipping completed com.apple.configure (fontconfig) DEBUG: Skipping completed com.apple.build (fontconfig) DEBUG: Skipping completed com.apple.destroot (fontconfig) DEBUG: Skipping com.apple.install (fontconfig) since this port is already installed DEBUG: Skipping com.apple.activate (fontconfig) since this port is already active tibook:/usr/local/darwinports/dports/gnome root# port installed The following ports are currently installed:

atk 1.6.1_0 (active) expat 1.95.7_0 (active) fontconfig 2.2.2_1 (active) freetype 2.1.7_0 (active) glib2 2.4.0_0 (active) jpeg 6b_0 (active) pango 1.4.0_2 (active) render 0.8_1 (active) tiff 3.6.1_0 (active) Xft2 2.1.6_0 (active) xrender 0.8.4_0 (active)

comment:3 Changed 20 years ago by Torsten.Eriksson@…

Sorry, forgot to supply platform info: Mac OS X 10.3.4 X11 1.0

comment:4 Changed 20 years ago by earnan@…

I checked out the ports the same day I filed the bug. Before that I had no ports installed. I however do have fink installed and have used it some.

Rorshuck:~/.gnupg earnan$ x -version

This is a pre-release version of XFree86, and is not supported in any way. Bugs may be reported to XFree86@… and patches submitted to fixes@…. Before reporting bugs in pre-release versions, please check the latest version in the XFree86 CVS repository (http://www.XFree86.Org/cvs)

XFree86 Version 4.3.99.16 / X Window System (protocol Version 11, revision 0, vendor release 6600) Release Date: 20 November 2003

If the server is older than 6-12 months, or if your hardware is newer than the above date, look for a newer version before reporting problems. (See http://www.XFree86.Org/FAQ)

Operating System: Darwin Apple Computer, Inc.

Rorshuck:~/.gnupg earnan$ uname -a Darwin Rorshuck.local 7.4.0 Darwin Kernel Version 7.4.0: Wed May 12 16:58:24 PDT 2004; root:xnu/ xnu-517.7.7.obj~7/RELEASE_PPC Power Macintosh powerpc

Rorshuck:~/.gnupg earnan$ sudo port -dv install fontconfig Password: DEBUG: Requested variant powerpc is not provided by port fontconfig. DEBUG: Requested variant darwin is not provided by port fontconfig. DEBUG: Found Dependency: path: /usr/X11R6/lib filename: libexpat.0.dylib regex: libexpat\.0\.dylib$ DEBUG: Found Dependency: receipt exists for freetype DEBUG: Skipping completed com.apple.main (fontconfig) DEBUG: Skipping completed com.apple.fetch (fontconfig) DEBUG: Skipping completed com.apple.checksum (fontconfig) DEBUG: Skipping completed com.apple.extract (fontconfig) DEBUG: Skipping completed com.apple.patch (fontconfig) ---> Configuring fontconfig DEBUG: Executing com.apple.configure (fontconfig) DEBUG: Assembled command: 'cd "/Users/earnan/darwinports/dports/graphics/fontconfig/work/ fontconfig-2.2.2" && CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib ./configure --prefix=/ opt/local --mandir=/opt/local/share/man' 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 whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking build system type... powerpc-apple-darwin7.4.0 checking host system type... powerpc-apple-darwin7.4.0 checking for a sed that does not truncate output... /usr/bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -p checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 65536 checking command to parse /usr/bin/nm -p output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fno-common checking if gcc PIC flag -fno-common works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin7.4.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common checking if g++ PIC flag -fno-common works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin7.4.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool checking whether make sets $(MAKE)... (cached) yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for pid_t... yes checking for vprintf... yes checking for _doprnt... no checking for geteuid... yes checking for getuid... yes checking for link... yes checking for memmove... yes checking for memset... yes checking for mkstemp... yes checking for strchr... yes checking for strrchr... yes checking for strtol... yes checking for getopt... yes checking for getopt_long... yes checking for freetype-config... /opt/local/bin/freetype-config checking for FT_Get_First_Char... yes 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: error: cannot find expat library Error: Target com.apple.configure returned: configure failure: shell command "cd "/Users/earnan/ darwinports/dports/graphics/fontconfig/work/fontconfig-2.2.2" && CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib ./configure --prefix=/opt/local --mandir=/opt/local/share/man" returned error 1 Command output: checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for pid_t... yes checking for vprintf... yes checking for _doprnt... no checking for geteuid... yes checking for getuid... yes checking for link... yes checking for memmove... yes checking for memset... yes checking for mkstemp... yes checking for strchr... yes checking for strrchr... yes checking for strtol... yes checking for getopt... yes checking for getopt_long... yes checking for freetype-config... /opt/local/bin/freetype-config checking for FT_Get_First_Char... yes 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: error: cannot find expat library

Warning: the following items did not execute (for fontconfig): com.apple.activate com.apple.configure com.apple.build com.apple.destroot com.apple.install

comment:5 Changed 20 years ago by Torsten.Eriksson@…

Sorry, please ignore my comments here... I should have realized this is a different problem. I'll try to do better. /Torsten

comment:6 Changed 20 years ago by alexmoreno@…

This must be a deps problem. i´ve solved this problem installing expat by hand:

port install expat

and then installing gtk2, bluefish (was my problem) or whatever worked:

port install bluefish

comment:7 Changed 20 years ago by blb@…

Resolution: fixed
Status: newclosed

fontconfig has been updated to require a DP-installed expat, since it appears some systems have the expat library through X11 but not the header.

Note: See TracTickets for help on using tickets.