NetBSD Problem Report #42396
From www@NetBSD.org Tue Dec 1 12:02:41 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id E2F0463C4AE
for <gnats-bugs@gnats.netbsd.org>; Tue, 1 Dec 2009 12:02:41 +0000 (UTC)
Message-Id: <20091201120241.AC67263C497@www.NetBSD.org>
Date: Tue, 1 Dec 2009 12:02:41 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: sysutils/dbus does not compile on Solaris with GCC 3
X-Send-Pr-Version: www-1.0
>Number: 42396
>Category: pkg
>Synopsis: sysutils/dbus does not compile on Solaris with GCC 3
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: solaris-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 01 12:05:00 +0000 2009
>Closed-Date: Sun Feb 21 19:39:06 +0000 2010
>Last-Modified: Sun Feb 21 19:50:02 +0000 2010
>Originator: Jörn Clausen
>Release:
>Organization:
University of Bielefeld
>Environment:
>Description:
Compilation of sysutils/dbus fails on Solaris 10 with lang/gcc34 as compiler with
checking size of char... 0
checking size of short... 0
checking size of long... 0
checking size of int... 0
checking size of void *... 0
checking size of long long... 0
checking size of __int64... 0
checking 64-bit integer type... none found
checking 32-bit integer type... configure: error: No 32-bit integer type found
*** Error code 1
In config.log, I notice a lot of
cc1: error: unrecognized command line option "-Wno-pointer-sign"
which is used first in the test
checking whether /usr/ccs/bin/ld supports "--gc-sections"
and seems to fail this and all following tests.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: asau@NetBSD.org
Responsible-Changed-When: Tue, 01 Dec 2009 13:00:25 +0000
Responsible-Changed-Why:
Solaris problem.
From: Tim Zingelman <zingelman@gmail.com>
To: gnats-bugs@netbsd.org
Cc: solaris-pkg-people@netbsd.org, pkg-manager@netbsd.org,
pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org, asau@netbsd.org,
joern.clausen@uni-bielefeld.de
Subject: Re: pkg/42396 (sysutils/dbus does not compile on Solaris with GCC 3)
Date: Tue, 1 Dec 2009 13:33:17 -0600
On Tue, Dec 1, 2009 at 7:00 AM, <asau@netbsd.org> wrote:
> Synopsis: sysutils/dbus does not compile on Solaris with GCC 3
>
> Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
> Responsible-Changed-By: asau@NetBSD.org
> Responsible-Changed-When: Tue, 01 Dec 2009 13:00:25 +0000
> Responsible-Changed-Why:
> Solaris problem.
Actually a dbus/gcc problem.
Release notes here
http://lists.freedesktop.org/archives/dbus/2009-July/011574.html
for dbus 1.2.16 indicate this is fixed in that version... pkgsrc is
however using the 'permissive' branch which does not have this fixed.
According to this email:
http://lists.freedesktop.org/archives/dbus/2008-December/010769.html
the hope was to eliminate the permissive branch, but I'm not a dbus
user so I don't know the implications.
So, here is an update to patch-ac that merges the fix from 1.2.16...
seems to build for me with this...
Index: distinfo
===================================================================
RCS file: /usr/cvs/pkgsrc/sysutils/dbus/distinfo,v
retrieving revision 1.34
diff -w -u -b -r1.34 distinfo
--- distinfo 23 Nov 2009 19:10:46 -0000 1.34
+++ distinfo 1 Dec 2009 19:26:19 -0000
@@ -5,7 +5,7 @@
Size (dbus-1.2.4.6permissive.tar.gz) = 1575270 bytes
SHA1 (patch-aa) = fd7cc2e11e15e13885e882e8de51e17af8a63d70
SHA1 (patch-ab) = b2761914edfe2c7666c5412abf79c5d7b87a2006
-SHA1 (patch-ac) = afec419973f339e846dc109866148529f80998b3
+SHA1 (patch-ac) = 63aab0ffac02a9cb85a80e31bbb1234534db378b
SHA1 (patch-ag) = 999071b782982c12329025ea8e393bfed940b654
SHA1 (patch-ai) = a45bd8d29955e9c14a4d8b3f44b42242d70c1cd8
SHA1 (patch-ak) = 56c0a917e770b8d6ffc37ec7ab8beb631dd8ef72
Index: patches/patch-ac
===================================================================
RCS file: /usr/cvs/pkgsrc/sysutils/dbus/patches/patch-ac,v
retrieving revision 1.8
diff -w -u -b -r1.8 patch-ac
--- patches/patch-ac 13 Jun 2008 11:28:35 -0000 1.8
+++ patches/patch-ac 1 Dec 2009 19:26:04 -0000
@@ -1,8 +1,8 @@
$NetBSD$
---- configure.orig 2008-04-04 14:23:44.000000000 -0400
-+++ configure
-@@ -5996,6 +5996,224 @@ esac
+--- configure.orig 2009-05-06 12:35:38.000000000 -0500
++++ configure 2009-12-01 13:23:46.338973100 -0600
+@@ -6110,6 +6110,224 @@
need_locks="$enable_libtool_lock"
@@ -227,3 +227,15 @@
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
+@@ -20958,7 +21176,10 @@
+ esac
+ case " $CFLAGS " in
+ *[\ \ ]-Wno-pointer-sign[\ \ ]*) ;;
+- *) CFLAGS="$CFLAGS -Wno-pointer-sign" ;;
++ *) if cc_supports_flag -Wno-pointer-sign; then
++ CFLAGS="$CFLAGS -Wno-pointer-sign"
++ fi
++ ;;
+ esac
+
+ # http://bugs.freedesktop.org/show_bug.cgi?id=19195
From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: zingelman@gmail.com
Cc: gnats-bugs@netbsd.org, solaris-pkg-people@netbsd.org,
pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
asau@netbsd.org
Subject: Re: pkg/42396 (sysutils/dbus does not compile on Solaris with GCC 3)
Date: Mon, 07 Dec 2009 13:47:34 +0100
> So, here is an update to patch-ac that merges the fix from 1.2.16...
> seems to build for me with this...
That didn't work for me...
But the brute force method did:
BUILDLINK_TRANSFORM+= rm:-Wno-pointer-sign
But I don't know how to .if/.endif it correctly. If this is a GCC
problem, why is nobody else complaining?
--
Jörn Clausen joern.clausen@uni-bielefeld.de
Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/
Universität Bielefeld
From: zingelman@gmail.com
I confirmed that using gcc34 from pkgsrc shows this problem in netbsd
4.0.1 (the default gcc in 4.0.1 is gcc 4.1.2)
I also confirmed that the patch I suggested fixed the issue in that environment.
Could you double check that the patch I gave you applied cleanly and still
did not work? I'd like to apply my patch unless you can help me figure out
why it does not help your case.
Thanks, - Tim
State-Changed-From-To: open->feedback
State-Changed-By: tez@NetBSD.org
State-Changed-When: Mon, 21 Dec 2009 17:24:45 +0000
State-Changed-Why:
feedback requested
From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: solaris-pkg-people@NetBSD.org, pkgsrc-bugs@NetBSD.org,
gnats-admin@NetBSD.org, tez@NetBSD.org
Subject: Re: pkg/42396 (sysutils/dbus does not compile on Solaris with GCC 3)
Date: Tue, 22 Dec 2009 11:27:51 +0100
Sorry, I can't test at the moment. This package pulls in
devel/libtool-base (for which AFAIK no patch has been released to CVS),
which in turn requests lang/f2c, which is still broken (see pkg/42428
and e.g.
http://mail-index.netbsd.org/pkgsrc-bugs/2009/12/09/msg035109.html which
didn't make it into GNATS).
--
Jörn Clausen joern.clausen@uni-bielefeld.de
Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/
Universität Bielefeld
From: Torsten Harenberg <harenberg@physik.uni-wuppertal.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/42396 (sysutils/dbus does not compile on Solaris with GCC 3)
Date: Wed, 20 Jan 2010 10:08:28 +0100
Just a side remark: the error also occurs on Red Hat Enterprise 4 (which =
I still have to run to support some old software).
Appying BUILDLINK_TRANSFORM+=3D rm:-Wno-pointer-sign helped.
Torsten
--
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<> <>
<> Dr. Torsten Harenberg harenberg@physik.uni-wuppertal.de <>
<> Bergische Universitaet <>
<> FB C - Physik Tel.: +49 (0)202 439-3521 <>
<> Gaussstr. 20 Fax : +49 (0)202 439-2811 <>
<> 42097 Wuppertal <>
<> <>
<><><><><><><>< Of course it runs NetBSD http://www.netbsd.org ><>=20
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/42396 (sysutils/dbus does not compile on Solaris with GCC
3)
Date: Sat, 30 Jan 2010 19:45:15 +0000
two messages sent to gnats-admin instead of gnats-bugs (gnats-admin
should die, la la la)
------
From: Tim Zingelman <zingelman@gmail.com>
To: J?rn Clausen <joern.clausen@uni-bielefeld.de>, gnats-admin@netbsd.org
Subject: Re: pkg/42396 (sysutils/dbus does not compile on Solaris with GCC 3)
Date: Mon, 21 Dec 2009 11:04:28 -0600
Can you double check that the patch I gave you applied cleanly and
still did not work? As I mentioned in my last email, I was able to
duplicate the problem on NetBSD 4.0.1 by using pkgsrc gcc34 rather
than the built in gcc 4.1.2. I then applied my patch, and verified
that it worked in that environment. I'd like to apply my patch unless
you can help me figure out why it does not help your case. Thanks, -
Tim
On Mon, Dec 7, 2009 at 1:09 PM, Tim Zingelman <zingelman@gmail.com> wrote:
> On Mon, Dec 7, 2009 at 11:56 AM, Tim Zingelman <zingelman@gmail.com> wrote:
>> On Mon, Dec 7, 2009 at 6:47 AM, J?rn Clausen
>> <joern.clausen@uni-bielefeld.de> wrote:
>>>> So, here is an update to patch-ac that merges the fix from 1.2.16...
>>>> seems to build for me with this...
>>>
>>> That didn't work for me...
>>
>> With that patch in place I see...
>>
>> ...
>> checking whether /usr/ccs/bin/ld supports "-z,relro"... no
>> checking whether gcc supports "-Wno-pointer-sign"... no
>> checking whether /usr/ccs/bin/ld supports "--gc-sections"... no
>>
>> checking size of char... 1
>> checking size of short... 2
>> checking size of long... 4
>> checking size of int... 4
>> ...
>>
>> Do you get something different? ?I can't see how the patch would not
>> work if applied.
>>
>>> But I don't know how to .if/.endif it correctly. If this is a GCC problem,
>>> why is nobody else complaining?
>>
>> I guess that others use a newer GCC? ?I'll see if I can try gcc34 on
>> netbsd and show the error...
>
> I confirmed that using gcc34 from pkgsrc shows this problem in netbsd
> 4.0.1 (the default gcc in 4.0.1 is gcc 4.1.2)
>
> I also confirmed that the patch I suggested fixed the issue in that environment.
>
> ?- Tim
>
From: J?rn Clausen <joern.clausen@uni-bielefeld.de>
To: zingelman@gmail.com
Cc: gnats-admin@netbsd.org
Subject: Re: pkg/42396 (sysutils/dbus does not compile on Solaris with GCC 3)
Date: Thu, 28 Jan 2010 09:36:43 +0100
On 12/21/09 06:04 PM, Tim Zingelman wrote:
> Can you double check that the patch I gave you applied cleanly and
> still did not work?
I was not able to "apply" the patch (using patch(1)), but I was finally
able to insert the lines manually and check that this patch works.
If this patch or modifying the Makefile is the better method is beyond my
knowledge.
--
J?rn Clausen joern.clausen@uni-bielefeld.de
Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/
Universit?t Bielefeld
State-Changed-From-To: feedback->analyzed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 30 Jan 2010 19:52:08 +0000
State-Changed-Why:
feedback received, patch works, please commit
State-Changed-From-To: analyzed->closed
State-Changed-By: tez@NetBSD.org
State-Changed-When: Sun, 21 Feb 2010 19:39:06 +0000
State-Changed-Why:
working patch committed
From: Tim Zingelman <tez@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/42396 CVS commit: pkgsrc/sysutils/dbus
Date: Sun, 21 Feb 2010 19:32:26 +0000
Module Name: pkgsrc
Committed By: tez
Date: Sun Feb 21 19:32:26 UTC 2010
Modified Files:
pkgsrc/sysutils/dbus: distinfo
pkgsrc/sysutils/dbus/patches: patch-ac
Log Message:
fix for pr#42396 from dbus 1.2.16 (different branch than this)
don't pass -no-pointer-sign to compiler that does not support it (gcc34)
To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 pkgsrc/sysutils/dbus/distinfo
cvs rdiff -u -r1.8 -r1.9 pkgsrc/sysutils/dbus/patches/patch-ac
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.