NetBSD Problem Report #37758

From sverre@abbor.viewmark.com  Mon Jan 14 23:26:41 2008
Return-Path: <sverre@abbor.viewmark.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 7495063BD77
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 14 Jan 2008 23:26:41 +0000 (UTC)
Message-Id: <20080114232640.8DC9988@abbor.viewmark.com>
Date: Mon, 14 Jan 2008 16:26:40 -0700 (MST)
From: sverre@abbor.viewmark.com
Reply-To: sverre@abbor.viewmark.com
To: gnats-bugs@NetBSD.org
Subject: x11/qt4-libs + debug configures symbol visibility incorrectly
X-Send-Pr-Version: 3.95

>Number:         37758
>Category:       pkg
>Synopsis:       x11/qt4-libs + debug configures symbol visibility incorrectly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 14 23:30:00 +0000 2008
>Originator:     Sverre Froyen
>Release:        NetBSD 4.99.47
>Organization:
	Viewmark
>Environment:
System: NetBSD abbor.viewmark.com 4.99.47 NetBSD 4.99.47 (ABBOR) #58: Wed Jan 2 10:13:21 MST 2008 toor@abbor.viewmark.com:/usr/src/objdir/sys/arch/i386/compile.i386/ABBOR i386
Architecture: i386
Machine: i386
>Description:
	When x11/qt4-libs is built with the debug option set, the configuration
	script disables symbol visibility.  This causes a conflict later when
	building kdelibs4.
>How-To-Repeat:
	# Add PKG_DEFAULT_OPTIONS+=debug to /etc/mk.conf
	cd /usr/pkgsrc/x11/qt4-libs
	make
	# Wait until source has been extracted
	# Edit work.i386/qt-x11-opensource-src-4.3.3/configure and add
	#	echo TEST_COMPILER = $TEST_COMPILER
	#	OPT_VERBOSE=yes
	# just before the call to $unixtests/fvisibility.test
	make > MAKE_LOG 2>&1 &
	# Wait until after the configuration phase
	grep 'Symbol visibility' MAKE_LOG
	# Observe that symbol visibility is disabled.
	# Observe that TEST_COMPILER equals "gcc -ggdb"
>Fix:
	Three choices:
	(1) do not add the -ggdb to CC in options.mk
	(2) Patch configure to skip flags when setting TEST_COMPILER from CC
	(3) Patch fvisibility.test to handle compiler flag

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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.