Opened 3 years ago

Closed 3 years ago

#61563 closed defect (invalid)

ghostscript @9.53.3 does not configure on PPC Tiger, Mac OS X 10.4.11, because of a pkg-config malfunction?

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: tiger ppc Cc: ryandesign (Ryan Carsten Schmidt)
Port: ghostscript freetype

Description

checking for fontconfig with pkg-config... no
checking for FcInitLoadConfigAndFonts in -lfontconfig... yes
checking fontconfig/fontconfig.h usability... yes
checking fontconfig/fontconfig.h presence... yes
checking for fontconfig/fontconfig.h... yes
checking for local freetype library source... no
checking for system freetype2 >= 2.4.2 with pkg-config... no
configure: error: No usable Freetype source or library found
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostpdl-9.53.3" && ./configure --prefix=/opt/local --enable-gpdl --disable-compile-inits --disable-cups --disable-dbus --disable-gtk --without-pcl --without-xps --without-gpdl --with-x --without-luratech --with-system-libtiff 
Exit code: 1
Error: Failed to configure ghostscript, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostpdl-9.53.3/config.log
Error: Failed to configure ghostscript: configure failure: command execution failed
DEBUG: Error code: NONE
DEBUG: Backtrace: configure failure: command execution failed

Config.log contains:

configure:7748: checking fontconfig/fontconfig.h usability
configure:7748: /opt/local/bin/gcc-apple-4.2 -c -pipe -Os -arch ppc -DHAVE_RESTRICT=1 -DUSE_LIBICONV_GNU -DUSE_LIBPAPER -isystem/opt/local/include conftest.c >&5
configure:7748: $? = 0
configure:7748: result: yes
configure:7748: checking fontconfig/fontconfig.h presence
configure:7748: /opt/local/bin/gcc-apple-4.2 -E -isystem/opt/local/include conftest.c
configure:7748: $? = 0
configure:7748: result: yes
configure:7748: checking for fontconfig/fontconfig.h
configure:7748: result: yes
configure:7952: checking for local freetype library source
configure:7967: result: no
configure:7970: checking for system freetype2 >= 2.4.2 with pkg-config
configure:7989: result: no
configure:8090: error: No usable Freetype source or library found

## ---------------- ##
## Cache variables. ##
## ---------------- ##

Configure has:

 7977	      if test x"$PKGCONFIG" != x""; then
 7978	        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system freetype2 >= 2.4.2 with pkg-config" >&5
 7979	$as_echo_n "checking for system freetype2 >= 2.4.2 with pkg-config... " >&6; }
 7980	            # pkg-config needs the libtool version, which != the freetype2 version <sigh!>
 7981	            # There is a table of corresponding ft2<->libtool numbers in freetype/docs/VERSION.DLL
 7982	            if $PKGCONFIG --atleast-version=12.0.6 freetype2; then
 7983	                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 7984	$as_echo "yes" >&6; }
 7985	                if test "x$FT_CFLAGS" = "x"; then
 7986	                  FT_CFLAGS="$CFLAGS `$PKGCONFIG --cflags freetype2`"
 7987			fi
 7988			if test "x$FT_LIBS" = "x"; then
 7989	                  FT_LIBS="`$PKGCONFIG --libs-only-l freetype2`"
 7990	                fi
 7991			if test "x$FT_LIB_PATH" = "x"; then
 7992			  FT_LIB_PATH="`$PKGCONFIG --libs-only-L freetype2`"
 7993			fi
 7994			FT_BRIDGE=1
 7995	                SHARE_FT=1
 7996	            else
 7997	                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7998	$as_echo "no" >&6; }
 7999	                AFS=1
 8000	            fi

and /opt/local/lib/pkgconfig/freetype2.pc has:

pete 233 /\ cat /opt/local/lib/pkgconfig/freetype2.pc
prefix=/opt/local
exec_prefix=/opt/local
libdir=/opt/local/lib
includedir=/opt/local/include

Name: FreeType 2
URL: https://freetype.org
Description: A free, high-quality, and portable font engine.
Version: 23.4.17
Requires:
Requires.private: zlib, bzip2, libpng, libbrotlidec
Libs: -L${libdir} -lfreetype
Libs.private: -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices
Cflags: -I${includedir}/freetype2

Installed are:

  fontconfig @2.13.1_0 (active) platform='darwin 8' archs='ppc' date='2018-09-08T01:50:30+0200'
  freetype @2.10.4_0 (active) platform='darwin 8' archs='ppc' date='2020-10-22T15:34:03+0200'

Attachments (1)

main.log (59.4 KB) - added by ballapete (Peter "Pete" Dyballa) 3 years ago.
Main.log from PPC Tiger, Mac OS X 10.4.11

Download all attachments as: .zip

Change History (10)

Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger, Mac OS X 10.4.11

comment:1 Changed 3 years ago by kencu (Ken)

I installed this one the other day without troubles...

$ port -v installed ghostscript
The following ports are currently installed:
  ghostscript @9.16_1+x11 platform='darwin 8' archs='ppc' date='2016-03-01T17:40:22-0800'
  ghostscript @9.19_0+x11 platform='darwin 8' archs='ppc' date='2016-07-11T19:14:08-0700'
  ghostscript @9.21_2+x11 platform='darwin 8' archs='ppc' date='2017-08-12T15:59:47-0700'
  ghostscript @9.22_0+x11 platform='darwin 8' archs='ppc' date='2017-10-07T17:11:53-0700'
  ghostscript @9.23_2+x11 platform='darwin 8' archs='ppc' date='2018-04-14T12:44:41-0700'
  ghostscript @9.23_3+x11 platform='darwin 8' archs='ppc' date='2018-05-19T01:16:40-0700'
  ghostscript @9.24_0+x11 platform='darwin 8' archs='ppc' date='2018-09-06T15:29:59-0700'
  ghostscript @9.24_1+x11 platform='darwin 8' archs='ppc' date='2018-09-10T21:36:47-0700'
  ghostscript @9.25_0+x11 platform='darwin 8' archs='ppc' date='2018-09-28T18:31:04-0700'
  ghostscript @9.25_1+x11 platform='darwin 8' archs='ppc' date='2018-11-02T05:23:34-0700'
  ghostscript @9.26_0+x11 platform='darwin 8' archs='ppc' date='2018-11-25T08:27:11-0800'
  ghostscript @9.27_1+x11 platform='darwin 8' archs='ppc' date='2019-06-29T21:09:11-0700'
  ghostscript @9.50_0+x11 platform='darwin 8' archs='ppc' date='2019-11-05T19:01:08-0800'
  ghostscript @9.50_1+x11 platform='darwin 8' archs='ppc' date='2020-06-13T19:37:54-0700'
  ghostscript @9.52_0+x11 platform='darwin 8' archs='ppc' date='2020-07-08T08:24:17-0700'
  ghostscript @9.53.3_0+x11 (active) platform='darwin 8' archs='ppc' date='2020-11-15T14:08:32-080

comment:2 Changed 3 years ago by kencu (Ken)

from the log:

checking for local freetype library source... no
checking for system freetype2 >= 2.4.2 with pkg-config... yes
checking for local jpeg library source... no
$ port -v installed freetype  
The following ports are currently installed:
  freetype @2.6.3_0 platform='darwin 8' archs='ppc' date='2016-03-01T16:34:10-0800'
  freetype @2.6.4_0 platform='darwin 8' archs='ppc' date='2016-07-11T18:59:16-0700'
  freetype @2.6.5_0 platform='darwin 8' archs='ppc' date='2016-07-20T09:03:41-0700'
  freetype @2.7_0 platform='darwin 8' archs='ppc' date='2016-09-13T22:31:40-0700'
  freetype @2.7.1_0 platform='darwin 8' archs='ppc' date='2017-02-08T14:10:51-0800'
  freetype @2.8_0 platform='darwin 8' archs='ppc' date='2017-08-12T11:45:24-0700'
  freetype @2.8.1_0 platform='darwin 8' archs='ppc' date='2018-04-25T18:11:09-0700'
  freetype @2.9.1_0 platform='darwin 8' archs='ppc' date='2018-09-01T16:26:35-0700'
  freetype @2.10.0_0 platform='darwin 8' archs='ppc' date='2019-05-04T12:15:38-0700'
  freetype @2.10.1_0 platform='darwin 8' archs='ppc' date='2019-07-10T22:52:12-0700'
  freetype @2.10.2_1 platform='darwin 8' archs='ppc' date='2020-05-24T16:49:24-0700'
  freetype @2.10.3_0 platform='darwin 8' archs='ppc' date='2020-10-17T15:17:16-0700'
  freetype @2.10.4_0 (active) platform='darwin 8' archs='ppc' date='2020-10-22T17:17:21-0700'
$ cat /opt/local/lib/pkgconfig/freetype2.pc
prefix=/opt/local
exec_prefix=/opt/local
libdir=/opt/local/lib
includedir=/opt/local/include

Name: FreeType 2
URL: https://freetype.org
Description: A free, high-quality, and portable font engine.
Version: 23.4.17
Requires:
Requires.private: zlib, libpng, libbrotlidec
Libs: -L${libdir} -lfreetype
Libs.private: -lbz2 -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices
Cflags: -I${includedir}/freetype2

comment:3 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

The PC file seems to be the culprit: Mine has bzip2 among the required private libraries but not among their switches… Recreating/Reinstalling the libbz2 PC file seems to work: pkg-config does not return an error. (Ghostscript has to wait until other build have finished.)

comment:4 in reply to:  3 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Replying to ballapete: Rresetting the PC file your contents allowed Ghostscript to build!

comment:5 Changed 3 years ago by kencu (Ken)

Can we sort out why your freetype pkgconfig file came out like it did? I'm not sure how it came to pass that your pkgconfig file for freetype was different than mine...

comment:6 Changed 3 years ago by kencu (Ken)

Cc: ryandesign added
Port: freetype added

comment:7 Changed 3 years ago by kencu (Ken)

copying you in Ryan as freetype maintainer, as it --appears-- that is where the issue is here?

comment:8 in reply to:  5 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Replying to kencu:

Can we sort out why your freetype pkgconfig file came out like it did? I'm not sure how it came to pass that your pkgconfig file for freetype was different than mine...

The reason is clear: I saw that configure failed to determine that bzip2 existed by means of a PC file, not seeing that it detected its existence by other means. So I created the PC file (#61365). When I discovered that it's not necessary I removed it – not taking into account that Freetype now was referring to this non-existent file and passing this to its consumers. I saw this finally when I invoked pkg-config with --debug.

Sorry for this nonsense!

comment:9 Changed 3 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.