NetBSD Problem Report #53264

From www@NetBSD.org  Sun May  6 05:11:20 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id AC01A7A159
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  6 May 2018 05:11:20 +0000 (UTC)
Message-Id: <20180506051119.A9C407A272@mollari.NetBSD.org>
Date: Sun,  6 May 2018 05:11:19 +0000 (UTC)
From: davshao@NetBSD.org
Reply-To: davshao@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: graphics/libotf Freetype library wan't found in your system!
X-Send-Pr-Version: www-1.0

>Number:         53264
>Category:       pkg
>Synopsis:       graphics/libotf Freetype library wan't found in your system!
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 06 05:15:00 +0000 2018
>Closed-Date:    Wed May 09 06:44:09 +0000 2018
>Last-Modified:  Wed May 09 06:44:09 +0000 2018
>Originator:     David Shao
>Release:        pkgsrc current cvs
>Organization:
>Environment:
DragonFly  5.3-DEVELOPMENT DragonFly v5.3.0.200.gf0746-DEVELOPMENT #0: Fri May  4 23:31:28 PDT 2018    xxxxxx@:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64
>Description:
Trying to build graphics/libotf after the update to freetype2 results in

checking for GNU libc compatible malloc... yes
checking for freetype-config... no
Freetype library wan't found in your system!

libotf is important because a suggested option xft2 for editors/emacs25 pulls in libotf as a dependency.
>How-To-Repeat:

>Fix:
Why not use the release notes for freetype 2.9.1 which state:

"The `configure' script no longer installs `freetype-config' by default.
For backwards compatibility, a new configure options `--enable-freetype-config' is provided that reverts this decision."

>Release-Note:

>Audit-Trail:
From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53264 CVS commit: pkgsrc/graphics/libotf
Date: Mon, 7 May 2018 07:55:33 +0000

 Module Name:	pkgsrc
 Committed By:	dholland
 Date:		Mon May  7 07:55:33 UTC 2018

 Modified Files:
 	pkgsrc/graphics/libotf: Makefile distinfo
 Added Files:
 	pkgsrc/graphics/libotf/patches: patch-configure

 Log Message:
 Use pkg-config instead of freetype-config; should fix PR 53264.


 To generate a diff of this commit:
 cvs rdiff -u -r1.16 -r1.17 pkgsrc/graphics/libotf/Makefile
 cvs rdiff -u -r1.9 -r1.10 pkgsrc/graphics/libotf/distinfo
 cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/libotf/patches/patch-configure

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

From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/53264: graphics/libotf Freetype library wan't found in your system!
Date: Tue, 8 May 2018 17:18:20 -0700

 graphics/libotf now builds on DragonFly 5.3-DEVELOPMENT.

 Unfortunately, devel/m17n-lib still does not:

 checking for libotf-config... yes
 checking for OTF_check_features in -lotf... yes
 checking otf.h usability... yes
 checking otf.h presence... yes
 checking for otf.h... yes
 checking for OTF_drive_gpos2 in -lotf... yes
 checking for freetype-config... no
 ...
 m17n-X.c: In function 'xft_open':
 m17n-X.c:1153:12: error: 'mfont__ft_driver' undeclared (first use in
 this function)
    rfont = (mfont__ft_driver.open) (frame, font, spec, rfont);
             ^
 m17n-X.c:1153:12: note: each undeclared identifier is reported only
 once for each function it appears in
 m17n-X.c: In function 'xft_has_char':
 m17n-X.c:1242:16: error: 'mfont__ft_driver' undeclared (first use in
 this function)
        result = mfont__ft_driver.has_char (frame, font, spec, c, code);
                 ^
 m17n-X.c: In function 'xft_encode_char':
 m17n-X.c:1259:14: error: 'mfont__ft_driver' undeclared (first use in
 this function)
        code = mfont__ft_driver.encode_char (frame, font, spec, code);
               ^
 m17n-X.c: In function 'xft_check_capability':
 m17n-X.c:1356:12: error: 'mfont__ft_driver' undeclared (first use in
 this function)
    result = mfont__ft_driver.check_capability (rfont, capability);
             ^
 m17n-X.c: In function 'xft_check_otf':
 m17n-X.c:1369:12: error: 'mfont__ft_driver' undeclared (first use in
 this function)
    result = mfont__ft_driver.check_otf (font, spec);
             ^
 m17n-X.c: In function 'xft_drive_otf':
 m17n-X.c:1385:12: error: 'mfont__ft_driver' undeclared (first use in
 this function)
    result = mfont__ft_driver.drive_otf (font, spec, in, from, to, out,
             ^
 m17n-X.c: In function 'xft_iterate_otf_feature':
 m17n-X.c:1409:12: error: 'mfont__ft_driver' undeclared (first use in
 this function)
    result = mfont__ft_driver.iterate_otf_feature (font, spec, from, to, table);
             ^
 m17n-X.c: In function 'mwin__device_get_prop':
 m17n-X.c:1441:12: warning: cast to pointer from integer of different
 size [-Wint-to-pointer-cast]
      return (void *) device->depth;
             ^
 m17n-X.c: In function 'device_init':
 m17n-X.c:2125:23: error: 'mfont__ft_driver' undeclared (first use in
 this function)
    xft_driver.select = mfont__ft_driver.select;
                        ^
 m17n-X.c: In function 'device_open':
 m17n-X.c:2199:10: warning: cast from pointer to integer of different
 size [-Wpointer-to-int-cast]
   depth = (unsigned) mplist_value (plist);
           ^
 *** Error code 1

 Stop.
 bmake[2]: stopped in /usr/pkgsrc/devel/m17n-lib/work/m17n-lib-1.8.0/src

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Wed, 09 May 2018 06:44:09 +0000
State-Changed-Why:
libotf fixed, please file a new bug report for the other problem. Thanks.


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