NetBSD Problem Report #48481

From www@NetBSD.org  Wed Dec 25 10:10:31 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A0507A63C4
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 25 Dec 2013 10:10:31 +0000 (UTC)
Message-Id: <20131225101030.0FB5CA6468@mollari.NetBSD.org>
Date: Wed, 25 Dec 2013 10:10:30 +0000 (UTC)
From: jaapb@NetBSD.org
Reply-To: jaapb@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: fonts/fontconfig fails to compile on -CURRENT
X-Send-Pr-Version: www-1.0

>Number:         48481
>Category:       pkg
>Synopsis:       fonts/fontconfig fails to compile on -CURRENT
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 25 10:15:00 +0000 2013
>Closed-Date:    Sun May 24 10:17:49 +0000 2020
>Last-Modified:  Sun May 24 10:17:49 +0000 2020
>Originator:     Jaap Boender
>Release:        NetBSD 6.99.28, pkgsrc HEAD
>Organization:
>Environment:
NetBSD marion-dufresne.kerguelen.org 6.99.28 NetBSD 6.99.28 (MARION-DUFRESNE) #13: Tue Dec 24 17:09:18 GMT 2013  root@marion-dufresne.kerguelen.org:/usr/obj/sys/arch/amd64/compile/MARION-DUFRESNE amd64
>Description:
A make in <pkgsrc>/fonts/fontconfig fails with the following error message: (this is with the --disable-silent-rules in configure enabled)

/bin/sh ../libtool  --tag=CC   --mode=link gcc  -O2 -mfpmath=sse -msse3 -march=native -pipe -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include/freetype2  -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -Wl,-R/usr/pkg/lib -o fc-cache fc-cache.o ../src/libfontconfig.la 
libtool: link: gcc -O2 -mfpmath=sse -msse3 -march=native -pipe -I/usr/pkgsrc/fonts/fontconfig/work/.buildlink/include -I/usr/pkgsrc/fonts/fontconfig/work/.x11-buildlink/include/freetype2 -Wl,-R/usr/X11R7/lib -Wl,-R/usr/pkg/lib -o .libs/fc-cache fc-cache.o  -L/usr/pkgsrc/fonts/fontconfig/work/.buildlink/lib -L/usr/pkgsrc/fonts/fontconfig/work/.x11-buildlink/lib -L../src/.libs -lfontconfig -lfreetype -lz -lexpat -Wl,-rpath,/usr/pkg/lib
fc-cache.o: In function `main':
fc-cache.c:(.text+0x709): undefined reference to `FcStrListFirst'
Makefile:473: recipe for target 'fc-cache' failed

This seems to be a new problem for 2.11.0, the previous version compiled fine. I'm running native X under -CURRENT.
>How-To-Repeat:
Run 'make' in <pkgsrc>/fonts/fontconfig.
>Fix:
I've looked around a bit, but it's not immediately obvious.

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48481: fonts/fontconfig fails to compile on -CURRENT
Date: Thu, 26 Dec 2013 05:05:10 +0000

 On Wed, Dec 25, 2013 at 10:15:00AM +0000, jaapb@NetBSD.org wrote:
  > fc-cache.o: In function `main':
  > fc-cache.c:(.text+0x709): undefined reference to `FcStrListFirst'

 This is caused by compiling against the pkgsrc version and linking
 against the native version, which can happen for a variety of reasons,
 the most common of which is badly ordered rpath options.

 With one thing and another I'm not sure it's really worth trying to
 fix it; is there some reason in particular you need to use pkgsrc
 fontconfig on top of native?

 -- 
 David A. Holland
 dholland@netbsd.org

From: Jaap Boender <jaapb@kerguelen.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48481: fonts/fontconfig fails to compile on -CURRENT
Date: Thu, 26 Dec 2013 16:01:24 +0100

 SSByYW4gaW50byBpdCB3aGVuIHJlY29tcGlsaW5nIHN0dWZmIG9uIC1DVVJSRU5ULCBzbyBJJ2xs
 IGp1c3QgZGVsZXRlIHRoZSBvbGQgZm9udGNvbmZpZyBwYWNrYWdlIHRvIG1ha2Ugc3VyZSB0aGUg
 cmlnaHQgbGlicmFyeSBpcyB1c2VkLiBJZiBhbGwgZ29lcyB3ZWxsIHRoZXJlLCB5b3UgYXJlIHJp
 Z2h0IHRoYXQgdGhpcyBkb2Vzbid0IG5lZWQgZml4aW5nLg==

From: Jaap Boender <jaapb@kerguelen.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/48481: fonts/fontconfig fails to compile on -CURRENT
Date: Thu, 26 Dec 2013 16:34:07 +0000

 Sorry about that, didn't realise my phone sent bizarre mails. In any case, 
 I just ran into this when recompiling things after upgrading, not sure if 
 it's an artefact from the old -STABLE or an error in detection. I'll 
 investigate more, but you are right that this probably doesn't need fixing 
 in the fontconfig package.

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48481: fonts/fontconfig fails to compile on -CURRENT
Date: Sun, 29 Dec 2013 20:03:35 +0000

 On Thu, Dec 26, 2013 at 03:35:00PM +0000, Jaap Boender wrote:
  >  Sorry about that, didn't realise my phone sent bizarre mails. In any case, 
  >  I just ran into this when recompiling things after upgrading, not sure if 
  >  it's an artefact from the old -STABLE or an error in detection. I'll 
  >  investigate more, but you are right that this probably doesn't need fixing 
  >  in the fontconfig package.

 If it turns out you need it for some reason, we'd better fix it. Also,
 if this comes up via an ordinary upgrade path (e.g. using pkg-rr) we
 should try to figure out how to make that not happen.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Jaap Boender <jaapb@kerguelen.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/48481: fonts/fontconfig fails to compile on -CURRENT
Date: Mon, 30 Dec 2013 11:53:13 +0000

 I've just recompiled a bunch of stuff and everything works without fontconfig, 
 so the problem was in the upgrade path, I should think. I just upgraded to -
 CURRENT and then ran pkg-rr, but I seem to recall (now) that when upgrading to 
 a new major release you're supposed to recompile everything from scratch 
 anyway - in which case the problem shouldn't occur.

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48481: fonts/fontconfig fails to compile on -CURRENT
Date: Fri, 10 Jan 2014 18:32:19 +0000

 On Mon, Dec 30, 2013 at 11:55:00AM +0000, Jaap Boender wrote:
  >  I've just recompiled a bunch of stuff and everything works without
  > fontconfig, so the problem was in the upgrade path, I should
  > think. I just upgraded to - CURRENT and then ran pkg-rr, but I seem
  > to recall (now) that when upgrading to a new major release you're
  > supposed to recompile everything from scratch anyway - in which
  > case the problem shouldn't occur.

 Yeah, that's generally a good idea owing to possible library version
 bumps in base. Still, it would be nice if pkg_rr reacted to changes of
 builtin packages better; dunno how possible it is.

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: open->closed
State-Changed-By: nia@NetBSD.org
State-Changed-When: Sun, 24 May 2020 10:17:49 +0000
State-Changed-Why:
A few recent bulk build reports indicate that it now works




>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.