From nobody@FreeBSD.org  Sat Oct  7 16:20:37 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6A77116A416
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  7 Oct 2006 16:20:37 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2497943D72
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  7 Oct 2006 16:20:34 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k97GKYLY042293
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 7 Oct 2006 16:20:34 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k97GKXFp042292;
	Sat, 7 Oct 2006 16:20:34 GMT
	(envelope-from nobody)
Message-Id: <200610071620.k97GKXFp042292@www.freebsd.org>
Date: Sat, 7 Oct 2006 16:20:34 GMT
From: M de Wit <mcawdewit@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: When building GIMP using ports it crashes on glade/.libs/libglade-2.0.so: undefined reference to `g_object_ref_sink'
X-Send-Pr-Version: www-2.3

>Number:         104117
>Category:       ports
>Synopsis:       devel/libglade2: When building GIMP using ports it crashes on glade/.libs/libglade-2.0.so: undefined reference to `g_object_ref_sink'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 07 16:30:19 GMT 2006
>Closed-Date:    Sat Oct 28 18:13:27 GMT 2006
>Last-Modified:  Sat Oct 28 18:13:27 GMT 2006
>Originator:     M de Wit
>Release:        6.1-RELEASE FreeBSD amd64
>Organization:
-- 
>Environment:
FreeBSD blaster.mars.local 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:15:57 UTC 2006     root@bloom.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  amd64
>Description:
I'm trying to build gimp gimp-2.2.13,1 from ports repsitory.

< snip of error >
gmake[2]: Entering directory `/usr/ports/devel/libglade2/work/libglade-2.6.0'
/bin/sh ./libtool --tag=CC --mode=link cc  -O2 -fno-strict-aliasing -pipe  -Wall -std=c9x  -L/usr/local/lib -o test-libglade  test-libglade.o glade/libglade-2.0.la -Wl,--rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/X11R6/lib -lxml2 -lgtk-x11-2.0 -lgdk-x11-2.0 -lXrandr -lXi -lXinerama -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lXcursor -lXfixes -lcairo -lpangoft2-1.0 -lfontconfig -lfreetype -lz -lpango-1.0 -lm -lXrender -lX11 -lXext -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -liconv   
cc -O2 -fno-strict-aliasing -pipe -Wall -std=c9x -o .libs/test-libglade test-libglade.o -Wl,--rpath -Wl,/usr/local/lib  -L/usr/local/lib glade/.libs/libglade-2.0.so -L/usr/X11R6/lib /usr/local/lib/libxml2.so /usr/X11R6/lib/libgtk-x11-2.0.so /usr/X11R6/lib/libgdk-x11-2.0.so -lXrandr -lXi -lXinerama /usr/local/lib/libatk-1.0.so /usr/X11R6/lib/libgdk_pixbuf-2.0.so /usr/X11R6/lib/libpangocairo-1.0.so -lXcursor -lXfixes /usr/local/lib/libcairo.so -pthread -lpng /usr/X11R6/lib/libpangoft2-1.0.so /usr/X11R6/lib/libfontconfig.so /usr/local/lib/libexpat.so /usr/local/lib/libfreetype.so -lz /usr/X11R6/lib/libpango-1.0.so -lm -lXrender -lX11 -lXext /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgmodule-2.0.so /usr/local/lib/libglib-2.0.so /usr/local/lib/libintl.so /usr/local/lib/libiconv.so  -Wl,--rpath -Wl,/usr/X11R6/lib -Wl,--rpath -Wl,/usr/local/lib
glade/.libs/libglade-2.0.so: undefined reference to `g_object_ref_sink'
gmake[2]: *** [test-libglade] Error 1
gmake[2]: Leaving directory `/usr/ports/devel/libglade2/work/libglade-2.6.0'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/devel/libglade2/work/libglade-2.6.0'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/devel/libglade2.
*** Error code 1

Stop in /usr/ports/x11-toolkits/py-gtk2.
*** Error code 1

Stop in /usr/ports/graphics/gimp.

< end snip >

< snip Makefile >

LIB_DEPENDS=    wmf.2:${PORTSDIR}/graphics/libwmf \
                aa.1:${PORTSDIR}/graphics/aalib \
                exif.12:${PORTSDIR}/graphics/libexif \
                mng.1:${PORTSDIR}/graphics/libmng \
                png.5:${PORTSDIR}/graphics/png \
                jpeg.9:${PORTSDIR}/graphics/jpeg \
                tiff.4:${PORTSDIR}/graphics/tiff

CONFLICTS=      gimp-1.* gimpshop-[0-9]*

SHLIBVER?=      200

USE_BZIP2=      yes
USE_X_PREFIX=   yes
USE_XPM=        yes
USE_GMAKE=      yes
GNU_CONFIGURE=  yes
USE_GNOME=      gnomehack intltool intlhack gtk20 libartlgpl2
WANT_GNOME=     yes
USE_GETTEXT=    yes
USE_LDCONFIG=   yes
PLIST_SUB=      SHLIBVER="${SHLIBVER}"
CONFIGURE_ARGS= --disable-perl \
                --with-html-dir=${DOCSDIR} \
                --disable-gtk-doc \
                --enable-static \
                --mandir=${PREFIX}/man
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
                LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"

GIMP_DISTFILE=  ${DISTDIR}/${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}

MAN1=   gimp.1 gimp-2.2.1 gimp-remote.1 gimp-remote-2.2.1 gimptool-2.0.1
MAN5=   gimprc.5 gimprc-2.2.5

OPTIONS=        DEBUG "debugging" off \
                PYTHON "Python-Fu support" off \
                RSVG "SVG format support" on \
                PRINT "GIMP printing" on \
                HTML_HELP_BROWSER "GIMP help browser" on \
                MP "multiple processor support" off
< end snip Makefile>


>How-To-Repeat:
# cd  /usr/ports/graphics/gimp

# make

<-- In menu select all but debug -->


>Fix:
>Release-Note:
>Audit-Trail:
Adding to audit trail from misfiled PR ports/104122:

 Its libglade that fails to build.
 I tried to build libglade separately, and it failed with following error:
 
 glade/.libs/libglade-2.0.so: undefined reference to `g_object_ref_sink'
 gmake[2]: *** [test-libglade] Error 1
 gmake[2]: Leaving directory 
 `/usr/ports/devel/libglade2/work/libglade-2.6.0'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory 
 `/usr/ports/devel/libglade2/work/libglade-2.6.0'
 gmake: *** [all] Error 2
 *** Error code 2
 
 Don't know what this is, but its problably something little i hope.
 
 Thanks,
 Marc
Responsible-Changed-From-To: freebsd-amd64->gnome 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Oct 7 18:34:43 UTC 2006 
Responsible-Changed-Why:  
Make this a ports PR and assign.  Even though you are observing it on amd64, 
the 'amd64' category is used for PRs that affect the operation of the base 
system but only on amd64 machine.  All ports PRs, no matter what arch, go 
under 'ports'. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104117 

Adding to audit trail from misfiled PR ports/104250:

Date: Tue, 10 Oct 2006 10:23:35 +0200
From: M de Wit <mcawdewit@gmail.com>

 A minor correction to the build process. 
 
 More so its a problem with the version of packages like pango, atk etc.
 Be sure to update/install the latest stable ones first.
 
 Thanks,
 Marc
State-Changed-From-To: open->feedback 
State-Changed-By: mezz 
State-Changed-When: Sat Oct 21 21:02:00 UTC 2006 
State-Changed-Why:  
I am a bit confusing, if I understand it correct is that you have solved this 
problem by have everything up to date? or not yet? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104117 
State-Changed-From-To: feedback->closed 
State-Changed-By: mezz 
State-Changed-When: Sat Oct 28 18:13:08 UTC 2006 
State-Changed-Why:  
No respone and his comments sound like he has solved this problem on his own. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104117 
>Unformatted:
