NetBSD Problem Report #49147

From ef@math.uni-bonn.de  Sun Aug 24 19:51:39 2014
Return-Path: <ef@math.uni-bonn.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 98FADAEFE8
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 24 Aug 2014 19:51:39 +0000 (UTC)
Message-Id: <20140824195135.C44478430@gumme.math.uni-bonn.de>
Date: Sun, 24 Aug 2014 21:51:35 +0200 (CEST)
From: ef@math.uni-bonn.de
Reply-To: ef@math.uni-bonn.de
To: gnats-bugs@gnats.NetBSD.org
Subject: graphics/libwmf build failures
X-Send-Pr-Version: 3.95

>Number:         49147
>Category:       pkg
>Synopsis:       graphics/libwmf build failures
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bsiegert
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 24 19:55:00 +0000 2014
>Closed-Date:    Wed Oct 05 18:39:30 +0000 2016
>Last-Modified:  Wed Oct 05 18:39:30 +0000 2016
>Originator:     Edgar Fuß
>Release:        pkgsrc-2014Q2
>Organization:
Mathematisches Institut der Uni Bonn
>Environment:

>Description:
	Building graphics/libwmf (with clang on OS X 10.6.8) fails when compiling 
	trio.c due to missing #includes:
		libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../.. -I[...]/graphics/libwmf/work/.buildlink/include -I[...]/graphics/libwmf/work/.x11-buildlink/include -I[...]/graphics/libwmf/work/.buildlink/include/freetype2 -pipe -O2 -Qunused-arguments -MT trio.lo -MD -MP -MF .deps/trio.Tpo -c trio.c  -fno-common -DPIC -o .libs/trio.o
		trio.c:1071:16: error: use of undeclared identifier 'ptrdiff_t'
				  if (sizeof(ptrdiff_t) == sizeof(ULONGLONG))
					     ^
	If you fix that, it fails to link libwmflite due to a missing library:
		libtool: link: clang -dynamiclib  -o .libs/libwmflite-0.2.7.dylib  .libs/api.o .libs/bbuf.o .libs/meta.o .libs/player.o .libs/recorder.o   -L[...]/graphics/libwmf/work/.buildlink/lib -L[...]/graphics/libwmf/work/.x11-buildlink/lib -lm  -O2   -install_name  /usr/pkg/lib/libwmflite-0.2.7.dylib -compatibility_version 8 -current_version 8.1 -Wl,-single_module
		Undefined symbols:
		  "_trio_fprintf", referenced from:
			[...]
>How-To-Repeat:
	cd graphics/libwmf && make build
>Fix:
	Include the following two patches (and make makepatchsum)
	$NetBSD: patch-af $

	Include <stddef.h> for ptrdiff_t and <unistd.h> for read()

	--- src/extra/trio/trio.c.orig	2001-06-07 10:23:02.000000000 +0200
	+++ src/extra/trio/trio.c	2014-08-24 21:11:27.000000000 +0200
	@@ -66,6 +66,8 @@
	 #include <limits.h>
	 #include <float.h>
	 #include <stdarg.h>
	+#include <stddef.h>
	+#include <unistd.h>
	 #include <errno.h>
	 #if defined(TRIO_C99)
	 # include <stdint.h>

	$NetBSD: patch-ag $

	Link libwmflite with trio

	--- src/Makefile.in.orig	2005-07-27 23:47:05.000000000 +0200
	+++ src/Makefile.in	2014-08-24 21:36:08.000000000 +0200
	@@ -69,7 +69,7 @@
	 am_libwmf_la_OBJECTS = font.lo stream.lo wmf.lo xml.lo
	 libwmf_la_OBJECTS = $(am_libwmf_la_OBJECTS)
	 @LIBWMF_BUILD_ALL_TRUE@am_libwmf_la_rpath = -rpath $(libdir)
	-libwmflite_la_LIBADD =
	+libwmflite_la_LIBADD = $(LIBTRIO)
	 am_libwmflite_la_OBJECTS = api.lo bbuf.lo meta.lo player.lo \
		recorder.lo
	 libwmflite_la_OBJECTS = $(am_libwmflite_la_OBJECTS)

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->macos-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 24 Aug 2014 20:16:41 +0000
Responsible-Changed-Why:
OS X problem.


From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49147: graphics/libwmf build failures
Date: Wed, 27 Aug 2014 07:14:03 +0000

 On Sun, Aug 24, 2014 at 07:55:00PM +0000, ef@math.uni-bonn.de wrote:
  > >Confidential:   yes
  > >Description:
  > 	Building graphics/libwmf (with clang on OS X 10.6.8) fails when compiling 
  > 	trio.c due to missing #includes:

 Is there any reason this needs to be confidential? I expect that was a
 mistake, but it's always better to ask...

 -- 
 David A. Holland
 dholland@netbsd.org

From: Edgar =?iso-8859-1?B?RnXf?= <ef@math.uni-bonn.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49147: graphics/libwmf build failures
Date: Wed, 27 Aug 2014 11:41:21 +0200

 > Is there any reason this needs to be confidential?
 No.

 > I expect that was a mistake, but it's always better to ask...
 Yes. Thanks.

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/49147: graphics/libwmf build failures
Date: Thu, 28 Aug 2014 17:36:28 +0000

 On Wed, Aug 27, 2014 at 07:15:01AM +0000, David Holland wrote:
  >  Is there any reason this needs to be confidential? I expect that was a
  >  mistake, but it's always better to ask...

 The PR is no longer confidential. I'm looking into how my question
 escaped onto the mailing list before the setting was changed... :-|

 -- 
 David A. Holland
 dholland@netbsd.org

Responsible-Changed-From-To: macos-pkg-people->bsiegert
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Tue, 05 Jul 2016 12:29:09 +0000
Responsible-Changed-Why:
take


State-Changed-From-To: open->feedback
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 20 Aug 2016 12:29:56 +0000
State-Changed-Why:
Are these patches still required? The current version (0.2.8.4nb16)
builds fine for me on Mac OS X with clang.


From: Edgar =?iso-8859-1?B?RnXf?= <ef@math.uni-bonn.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49147 (graphics/libwmf build failures)
Date: Wed, 24 Aug 2016 10:09:14 +0200

 > Are these patches still required?
 I don't know.

 > The current version (0.2.8.4nb16) builds fine for me on Mac OS X with clang.
 Which OS X/Xcode Version did you use?

State-Changed-From-To: feedback->open
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Wed, 05 Oct 2016 09:19:41 +0000
State-Changed-Why:
Feedback received.

I managed to build this under Mac OS 10.11 (Yosemite) with XCode 7 and clang.


State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 05 Oct 2016 18:39:30 +0000
State-Changed-Why:
sounds like it works now


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.