NetBSD Problem Report #37719
From dauphin@enst.fr Tue Jan 8 15:53:49 2008
Return-Path: <dauphin@enst.fr>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 21FC463BB70
for <gnats-bugs@gnats.netbsd.org>; Tue, 8 Jan 2008 15:53:49 +0000 (UTC)
Message-Id: <1199807622.10784@bi.enst.fr>
Date: Tue, 8 Jan 2008 16:53:42 +0100
To: "gnats bugs" <gnats-bugs@NetBSD.org>
Subject: graphics/gimp-refocus-it
X-Send-Pr-Version: gtk-send-pr 0.4.8
X-GNATS-Notify:
>Number: 37719
>Category: pkg
>Synopsis: graphics/gimp-refocus-it
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: solaris-pkg-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 08 15:55:01 +0000 2008
>Closed-Date:
>Last-Modified: Thu Jun 03 10:36:05 +0000 2021
>Originator: Gilles Dauphin
>Release: SunOS 5.10 i86pc
>Organization:
ENST
>Environment:
System: SunOS bi.enst.fr 5.10 Generic_120012-14 i86pc
>Description:
Making all in gimp-plugin
if gcc -DLOCALEDIR=\"/usr/pkg/share/locale\" -DDATADIR=\""/usr/pkg/share/"\" -DHAVE_CONFIG_H -I. -I. -I.. -I../gimp_plugin -
I../src -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/pkg/include/gimp-2.0 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/gl
ib-2.0/include -I/usr/pkg/include/gtk-2.0 -I/usr/pkg/lib/gtk-2.0/include -I/usr/pkg/include/atk-1.0 -I/usr/pkg/include/cairo -
I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/freetype2 -I/usr/pkg/include -I/usr/pkg/include/libpng12 -DPNG_NO_ASSEMBLER_CO
DE -I/usr/pkg/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/pkg/include/freetype2 -D_REENTRANT -O -I/usr/pkg/include -
I/usr/pkg/include/db4 -I/usr/include -I/usr/pkg/include/freetype2 -D_REENTRANT -Wall -MT main-gimp.o -MD -MP -MF ".deps/main-g
imp.Tpo" -c -o main-gimp.o `test -f 'main-gimp.c' || echo './'`main-gimp.c; then mv -f ".deps/main-gimp.Tpo" ".deps/main-gim
p.Po"; else rm -f ".deps/main-gimp.Tpo"; exit 1; fi
main-gimp.c: In function 'query':
main-gimp.c:375: warning: implicit declaration of function 'asprintf'
gcc -O -I/usr/pkg/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/pkg/include/freetype2 -D_REENTRANT -Wall -R/usr/pkg/l
ib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o gimp_plugin-refocus-it main-gimp.o ../src/librefocus-it.a -Wl,-R/usr/pkg/lib -L/usr/
pkg/lib -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl
-lm -lm
Undefined first referenced
symbol in file
asprintf main-gimp.o
ld: fatal: Symbol referencing errors. No output written to gimp_plugin-refocus-it
collect2: ld returned 1 exit status
*** Error code 1
>How-To-Repeat:
bmake
>Fix:
add -lasprintf somewhere??
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: obache@narn.netbsd.org
Responsible-Changed-When: Sun, 20 Jan 2008 07:30:58 +0000
Responsible-Changed-Why:
Problem on solaris.
From: Tobias Nygren <tnn@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: "Gilles Dauphin" <dauphin@enst.fr>
Subject: Re: pkg/37719: graphics/gimp-refocus-it
Date: Wed, 23 Jan 2008 07:04:01 +0100
On Tue, 8 Jan 2008 15:55:01 +0000 (UTC)
"Gilles Dauphin" <dauphin@enst.fr> wrote:
> Undefined first referenced
> symbol in file
> asprintf main-gimp.o
The package has USE_FEATURES+=asprintf.
Does it pick up a build dependency on libnbcompat?
Does the following change in Makefile help?
LDFLAGS+= ${FEATURE_LIBS}
State-Changed-From-To: open->feedback
State-Changed-By: tnn@narn.netbsd.org
State-Changed-When: Wed, 23 Jan 2008 06:06:09 +0000
State-Changed-Why:
Awaitng feedback on possible build fix.
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
To: gnats-bugs@NetBSD.org, tnn@NetBSD.org
Cc: dauphin@enst.fr
Subject: Re: pkg/37719: graphics/gimp-refocus-it
Date: Wed, 23 Jan 2008 14:24:11 +0100 (CET)
> X-Greylist: delayed 1280 seconds by postgrey-1.30 at revol1.enst.fr; Wed, 23
Jan 2008 07:25:31 CET
> Date: Wed, 23 Jan 2008 07:04:01 +0100
> From: Tobias Nygren <tnn@NetBSD.org>
> To: gnats-bugs@NetBSD.org
> Cc: "Gilles Dauphin" <dauphin@enst.fr>
> Subject: Re: pkg/37719: graphics/gimp-refocus-it
>
> On Tue, 8 Jan 2008 15:55:01 +0000 (UTC)
> "Gilles Dauphin" <dauphin@enst.fr> wrote:
>
> > Undefined first referenced
> > symbol in file
> > asprintf main-gimp.o
>
> The package has USE_FEATURES+=asprintf.
> Does it pick up a build dependency on libnbcompat?
> Does the following change in Makefile help?
>
> LDFLAGS+= ${FEATURE_LIBS}
Sorry, No it does not help
I add the following to my Makefile
LIBS+= -lasprintf
...
.include "../../devel/gettext-asprintf/buildlink3.mk"
and it works.
Thanks
Gilles
State-Changed-From-To: feedback->open
State-Changed-By: tnn@narn.netbsd.org
State-Changed-When: Wed, 23 Jan 2008 15:07:12 +0000
State-Changed-Why:
Feedback was provided. Presumably libnbcompat is not linked in
because it's a static library and we're building a dynamic module.
I think the features framework needs improvements in this area,
so that it can opt to use gettext-asprintf or similar automatically.
>Unformatted:
(Contact us)
$NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.