NetBSD Problem Report #47063

From www@NetBSD.org  Fri Oct 12 15:52:55 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 0113C63E3BF
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 12 Oct 2012 15:52:54 +0000 (UTC)
Message-Id: <20121012155253.B1D8363B8DB@www.NetBSD.org>
Date: Fri, 12 Oct 2012 15:52:53 +0000 (UTC)
From: davshao@gmail.com
Reply-To: davshao@gmail.com
To: gnats-bugs@NetBSD.org
Subject: print/ghostscript 9.05 fails to build on DragonFly 3.3-DEVEL
X-Send-Pr-Version: www-1.0

>Number:         47063
>Category:       pkg
>Synopsis:       print/ghostscript 9.05 fails to build on DragonFly 3.3-DEVEL
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    rumko
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 12 15:55:03 +0000 2012
>Closed-Date:    Tue Oct 16 10:25:32 +0000 2012
>Last-Modified:  Tue Oct 16 10:25:32 +0000 2012
>Originator:     David Shao
>Release:        DragonFly  3.3-DEVELOPMENT x86_64 i386
>Organization:
>Environment:
DragonFly  3.3-DEVELOPMENT x86_64 i386
>Description:
current pkgsrc:
commit 5e1ddeaec621873b611566c8206db4dda45ece5e
Author: pkgsrc fixup <pkgsrc@dragonflybsd.org>
Date:   Thu Oct 11 19:09:00 2012 -0700

Samples of the output from building ghostscript:

The supported build options for ghostscript are:

        cups debug disable-compile-inits fontconfig
        x11

The currently selected options are:

        fontconfig x11
...
checking supported compiler flags... 
   -O
   -Wall
   -Wstrict-prototypes
   -Wundef
   -Wmissing-declarations
   -Wmissing-prototypes
   -Wwrite-strings
   -Wno-strict-aliasing
   -Wdeclaration-after-statement
   -fno-builtin
   -fno-common
...
checking for local freetype library source... yes
...
Libtiff is now configured for x86_64-pc-dragonfly

  Installation directory:             /usr/local
  Documentation directory:            ${prefix}/share/doc/tiff-3.9.2
  C compiler:                         cc -std=gnu99 -g -DA4 -fPIC -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -DUSE_LIBPAPER -Wall -W
  C++ compiler:                       c++ -g -DA4 -fPIC -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2
...
cc  -DHAVE_MKSTEMP   -DHAVE_FONTCONFIG  -DHAVE_SETLOCALE -DHAVE_SSE2  -DHAVE_BSWAP32  -O  -Ijpeg -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H=1 -DHAVE_SYS_TIME_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long int" -g -DA4 -fPIC -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -DUSE_LIBPAPER   -Ifreetype/include -DFT2_BUILD_LIBRARY -DDARWIN_NO_CARBON  -o ./soobj/fttype1.o -c freetype/src/base/fttype1.c
In file included from freetype/include/freetype/internal/services/svpsinfo.h:23,
                 from freetype/src/base/fttype1.c:22:
freetype/include/freetype/internal/t1types.h:82: error: nested redefinition of 'enum T1_EncodingType_'
freetype/include/freetype/internal/t1types.h:82: error: redeclaration of 'enum T1_EncodingType_'
freetype/include/freetype/internal/t1types.h:83: error: redeclaration of enumerator 'T1_ENCODING_TYPE_NONE'
/usr/pkgsrc/print/ghostscript/work/.buildlink/include/freetype2/freetype/t1tables.h:508: note: previous definition of 'T1_ENCODING_TYPE_NONE' was here
freetype/include/freetype/internal/t1types.h:84: error: redeclaration of enumerator 'T1_ENCODING_TYPE_ARRAY'
/usr/pkgsrc/print/ghostscript/work/.buildlink/include/freetype2/freetype/t1tables.h:509: note: previous definition of 'T1_ENCODING_TYPE_ARRAY' was here
freetype/include/freetype/internal/t1types.h:85: error: redeclaration of enumerator 'T1_ENCODING_TYPE_STANDARD'
/usr/pkgsrc/print/ghostscript/work/.buildlink/include/freetype2/freetype/t1tables.h:510: note: previous definition of 'T1_ENCODING_TYPE_STANDARD' was here
freetype/include/freetype/internal/t1types.h:86: error: redeclaration of enumerator 'T1_ENCODING_TYPE_ISOLATIN1'
/usr/pkgsrc/print/ghostscript/work/.buildlink/include/freetype2/freetype/t1tables.h:511: note: previous definition of 'T1_ENCODING_TYPE_ISOLATIN1' was here
freetype/include/freetype/internal/t1types.h:89: error: redeclaration of enumerator 'T1_ENCODING_TYPE_EXPERT'
/usr/pkgsrc/print/ghostscript/work/.buildlink/include/freetype2/freetype/t1tables.h:514: note: previous definition of 'T1_ENCODING_TYPE_EXPERT' was here
freetype/include/freetype/internal/t1types.h:89: error: redefinition of typedef 'T1_EncodingType'
/usr/pkgsrc/print/ghostscript/work/.buildlink/include/freetype2/freetype/t1tables.h:514: note: previous declaration of 'T1_EncodingType' was here
gmake[2]: *** [soobj/fttype1.o] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/print/ghostscript/work/ghostscript-9.05'
gmake[1]: *** [so-subtarget] Error 2
gmake[1]: Leaving directory `/usr/pkgsrc/print/ghostscript/work/ghostscript-9.05'
gmake: *** [so] Error 2
*** Error code 2



>How-To-Repeat:
Update to pkgsrc current

commit 5e1ddeaec621873b611566c8206db4dda45ece5e
Author: pkgsrc fixup <pkgsrc@dragonflybsd.org>
Date:   Thu Oct 11 19:09:00 2012 -0700

on DragonFly 3.3-DEVELOPMENT
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->rumko
Responsible-Changed-By: rumko@NetBSD.org
Responsible-Changed-When: Sat, 13 Oct 2012 08:48:27 +0000
Responsible-Changed-Why:
I'll take care of this

From: Rumko <rumko@rumko.net>
To: gnats-bugs@netbsd.org
Cc: pkgsrc-bugs@netbsd.org,
 gnats-admin@netbsd.org
Subject: Re: pkg/47063 (print/ghostscript 9.05 fails to build on DragonFly 3.3-DEVEL)
Date: Sun, 14 Oct 2012 12:39:31 +0200

 --nextPart1636623.02e0J0DMdY
 Content-Type: multipart/mixed;
   boundary="Boundary-01=_jZpeQ9E/4jz4u8J"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline

 --Boundary-01=_jZpeQ9E/4jz4u8J
 Content-Type: text/plain;
   charset="iso-8859-2"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline

 On Saturday 13. of October 2012 10:48:29 rumko@netbsd.org wrote:
 > Synopsis: print/ghostscript 9.05 fails to build on DragonFly 3.3-DEVEL
 >
 > Responsible-Changed-From-To: pkg-manager->rumko
 > Responsible-Changed-By: rumko@NetBSD.org
 > Responsible-Changed-When: Sat, 13 Oct 2012 08:48:27 +0000
 > Responsible-Changed-Why:
 > I'll take care of this

 The attached patch seems to fix the problem, but needs more testing.
 Thanks to wiz, it's also tested on NetBSD, but it also needs to be tested w=
 ith=20
 native X, not just modular xorg.

 Any volunteers?
 =2D-=20
 Regards,
 Rumko

 --Boundary-01=_jZpeQ9E/4jz4u8J
 Content-Type: text/x-diff;
   charset="iso 8859-15";
   name="0001-print-ghostscript-fix-building-with-an-already-insta.patch"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
 	filename="0001-print-ghostscript-fix-building-with-an-already-insta.patch"

 =46rom 5a25cc52f0c182d182d623c30894f0d73a7f8b94 Mon Sep 17 00:00:00 2001
 =46rom: Rumko <rumcic@gmail.com>
 Date: Sat, 13 Oct 2012 10:19:21 +0200
 Subject: [PATCH] print/ghostscript: fix building with an already installed
  freetype

 =2D--
  print/ghostscript/Makefile | 2 ++
  1 file changed, 2 insertions(+)

 diff --git a/print/ghostscript/Makefile b/print/ghostscript/Makefile
 index aaf5284..1c1fff0 100644
 =2D-- a/print/ghostscript/Makefile
 +++ b/print/ghostscript/Makefile
 @@ -89,6 +89,7 @@ post-extract:
  	${RM} -rf ${WRKSRC}/libpng
  #	${RM} -rf ${WRKSRC}/tiff
  #	${RM} -rf ${WRKSRC}/zlib
 +	${RM} -rf ${WRKSRC}/freetype
  #
  #  To allow outside customization, rename cidfmap
  #	 (if you look at inside of the file, it is logically empty)
 @@ -103,6 +104,7 @@ post-install:
  .include "../../graphics/png/buildlink3.mk"
  .include "../../graphics/tiff/buildlink3.mk"
  .include "../../devel/zlib/buildlink3.mk"
 +.include "../../graphics/freetype2/buildlink3.mk"
  # pkgsrc jasper is too new
  #.include "../../graphics/jasper/buildlink3.mk"
  .include "../../mk/bsd.pkg.mk"
 =2D-=20
 1.7.12.2


 --Boundary-01=_jZpeQ9E/4jz4u8J--

 --nextPart1636623.02e0J0DMdY
 Content-Type: application/pgp-signature; name=signature.asc 
 Content-Description: This is a digitally signed message part.

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.19 (DragonFly)

 iEYEABECAAYFAlB6lmMACgkQxV3ce2RZW71qDgCfbrAtrUSxpwWAdPsgOmwmCrMP
 jAsAoKqklXvbkGzW8yK2QyMXp914oG/Z
 =H2Dz
 -----END PGP SIGNATURE-----

 --nextPart1636623.02e0J0DMdY--

From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47063 (print/ghostscript 9.05 fails to build on DragonFly 3.3-DEVEL)
Date: Sun, 14 Oct 2012 08:27:38 -0700

 On Sun, Oct 14, 2012 at 3:40 AM, Rumko <rumko@rumko.net> wrote:

 >  The attached patch seems to fix the problem, but needs more testing.
 >  Thanks to wiz, it's also tested on NetBSD, but it also needs to be tested w=
 >  ith=20
 >  native X, not just modular xorg.
 >
 >  Any volunteers?
 >  =2D-=20
 >  Regards,
 >  Rumko
 >

 >  Date: Sat, 13 Oct 2012 10:19:21 +0200
 >  Subject: [PATCH] print/ghostscript: fix building with an already installed
 >   freetype
 >
 >  =2D--
 >   print/ghostscript/Makefile | 2 ++
 >   1 file changed, 2 insertions(+)
 >
 >  diff --git a/print/ghostscript/Makefile b/print/ghostscript/Makefile
 >  index aaf5284..1c1fff0 100644
 >  =2D-- a/print/ghostscript/Makefile
 >  +++ b/print/ghostscript/Makefile
 >  @@ -89,6 +89,7 @@ post-extract:
 >         ${RM} -rf ${WRKSRC}/libpng
 >   #     ${RM} -rf ${WRKSRC}/tiff
 >   #     ${RM} -rf ${WRKSRC}/zlib
 >  +      ${RM} -rf ${WRKSRC}/freetype
 >   #
 >   #  To allow outside customization, rename cidfmap
 >   #      (if you look at inside of the file, it is logically empty)
 >  @@ -103,6 +104,7 @@ post-install:
 >   .include "../../graphics/png/buildlink3.mk"
 >   .include "../../graphics/tiff/buildlink3.mk"
 >   .include "../../devel/zlib/buildlink3.mk"
 >  +.include "../../graphics/freetype2/buildlink3.mk"
 >   # pkgsrc jasper is too new
 >   #.include "../../graphics/jasper/buildlink3.mk"
 >   .include "../../mk/bsd.pkg.mk"
 >  =2D-=20
 >  1.7.12.2

 Above patch tested on a DragonFly 3.3-DEVELOPMENT x86_64 machine where
 ghostscript is a dependency of the various foomatic* packages, the
 foomatic* packages required for printing on an HP OfficeJet 7310
 printer.   print/ghostscript built and printing from gvim was
 successful.  Thanks!

From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47063 (print/ghostscript 9.05 fails to build on DragonFly 3.3-DEVEL)
Date: Mon, 15 Oct 2012 10:45:44 -0700

 On Sun, Oct 14, 2012 at 3:40 AM, Rumko <rumko@rumko.net> wrote:


 >  The attached patch seems to fix the problem, but needs more testing.
 >  Thanks to wiz, it's also tested on NetBSD, but it also needs to be tested w=
 >  ith=20
 >  native X, not just modular xorg.
 >
 >  Any volunteers?

 The patch adding freetype configuration options in
 print/ghostscript/Makefile has been tested successfully on DragonFly
 3.3-DEVELOPMENT x86_64 and i386, post-import of FreeBSD's
 implementation of libusb, with ghostscript 9.05 successfully built,
 cups and foomatic* replace cleaned, and printing from both Firefox
 16.0.1 and from gvim by an ordinary non-root user.  Thanks!

From: "Rumko" <rumko@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47063 CVS commit: pkgsrc/print/ghostscript
Date: Tue, 16 Oct 2012 10:10:17 +0000

 Module Name:	pkgsrc
 Committed By:	rumko
 Date:		Tue Oct 16 10:10:17 UTC 2012

 Modified Files:
 	pkgsrc/print/ghostscript: Makefile

 Log Message:
 Do not use bundled freetype, use pkgsrc's.

 The bundled freetype conflicts with pkgsrc's and results in build errors.
 Closes PR pkg/47063.

 Ok@ wiz


 To generate a diff of this commit:
 cvs rdiff -u -r1.90 -r1.91 pkgsrc/print/ghostscript/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: rumko@NetBSD.org
State-Changed-When: Tue, 16 Oct 2012 10:25:32 +0000
State-Changed-Why:
Fix confirmed by bug reporter.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.