NetBSD Problem Report #43513

From cheusov@tut.by  Fri Jun 25 14:45:01 2010
Return-Path: <cheusov@tut.by>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id C2C3A63BA50
	for <gnats-bugs@gnats.netbsd.org>; Fri, 25 Jun 2010 14:45:00 +0000 (UTC)
Message-Id: <s93wrtnmfk1.fsf@centos.imb.invention.com>
Date: Fri, 25 Jun 2010 16:01:50 +0300
From: cheusov@tut.by
To: gnats-bugs@gnats.netbsd.org
Subject: eggdbus fails to build on Linux
X-Send-Pr-Version: 3.113.1
X-GNATS-Notify:

>Number:         43513
>Category:       pkg
>Synopsis:       sysutils/eggdbus fails to build on Linux [patch]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dsainty@NetBSD.org
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 25 14:50:00 +0000 2010
>Closed-Date:    Wed Jul 07 21:59:38 +0000 2010
>Last-Modified:  Wed Jul 07 21:59:38 +0000 2010
>Originator:     Aleksey Cheusov
>Release:        Linux glibc-2.3.6
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: Linux centos.imb.invention.com 2.6.18 #1 SMP Fri Apr 2 16:16:54 EDT 2010 i686 i686 i386 GNU/Linux
Architecture: i686

>Description:
Build of eggdbus fails like this

   /bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -DPACKAGE_LIBEXEC_DIR=\""/usr/pkg/libexec"\" -DPACKAGE_SYSCONF_DIR=\""/usr/pkg/etc"\" -DPACKAGE_DATA_DIR=\""/usr/pkg/share"\" -DPACKAGE_BIN_DIR=\""/usr/pkg/bin"\" -DPACKAGE_LOCALSTATE_DIR=\""/usr/pkg/var"\" -DPACKAGE_LOCALE_DIR=\""/usr/pkg/share/locale"\" -DPACKAGE_LIB_DIR=\""/usr/pkg/lib"\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT   -I/usr/pkg/include -I/usr/include -D_EGG_DBUS_COMPILATION -pthread -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include   -pthread -I/usr/pkg/include/dbus-1.0 -I/usr/pkg/lib/dbus-1.0/include -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include    -Wno-error -I/usr/pkg/include -I/usr/include -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -MT libeggdbus_1_la-eggdbusintrospectable.lo -MD -MP -MF .deps/libeggdbus_1_la-eggdbusintrospect
 able.Tpo -c -o libeggdbus_1_la-eggdbusintrospectable.lo `test -f 'eggdbusintrospectable.c' || echo './'`eggdbusintrospectable.c
   libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -DPACKAGE_LIBEXEC_DIR=\"/usr/pkg/libexec\" -DPACKAGE_SYSCONF_DIR=\"/usr/pkg/etc\" -DPACKAGE_DATA_DIR=\"/usr/pkg/share\" -DPACKAGE_BIN_DIR=\"/usr/pkg/bin\" -DPACKAGE_LOCALSTATE_DIR=\"/usr/pkg/var\" -DPACKAGE_LOCALE_DIR=\"/usr/pkg/share/locale\" -DPACKAGE_LIB_DIR=\"/usr/pkg/lib\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/tmp/obj_pkgsrc/sysutils/eggdbus/work/.buildlink/include -D_EGG_DBUS_COMPILATION -pthread -I/tmp/obj_pkgsrc/sysutils/eggdbus/work/.buildlink/include/glib/glib-2.0 -I/tmp/obj_pkgsrc/sysutils/eggdbus/work/.buildlink/lib/glib-2.0/include -pthread -I/tmp/obj_pkgsrc/sysutils/eggdbus/work/.buildlink/include/dbus-1.0 -I/tmp/obj_pkgsrc/sysutils/eggdbus/work/.buildlink/lib/dbus-1.0/include -Wno-error -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -MT libeggdbus_1_la-eggdbusintrospectable.lo -MD -MP -MF .deps/libeggdbus
 _1_la-eggdbusintrospectable.Tpo -c eggdbusintrospectable.c  -fPIC -DPIC -o .libs/libeggdbus_1_la-eggdbusintrospectable.o
   In file included from ../../src/eggdbus/eggdbus.h:51,
                 from eggdbusintrospectable.c:11:
   ../../src/eggdbus/eggdbusbus.h:261: error: expected declaration specifiers or '...' before 'uid_t'
   ../../src/eggdbus/eggdbusbus.h:269: error: expected declaration specifiers or '...' before 'pid_t'
   ../../src/eggdbus/eggdbusbus.h:476: error: expected declaration specifiers or '...' before 'uid_t'
   ../../src/eggdbus/eggdbusbus.h:490: error: expected declaration specifiers or '...' before 'pid_t'
   ../../src/eggdbus/eggdbusbus.h:594: error: expected declaration specifiers or '...' before 'uid_t'
   ../../src/eggdbus/eggdbusbus.h:598: error: expected declaration specifiers or '...' before 'pid_t'
   gmake[4]: *** [libeggdbus_1_la-eggdbusintrospectable.lo] Error 1
>How-To-Repeat:
Linux + glibc-2.3.6
>Fix:
This happened because pid_t, uid_t and some other types were not defined.
The problem may be not reproduced on more recent versions of glibc.

The following patch solves the problem.
Alternatively
#include <sys/types.h>
may be added to src/eggdbus/eggdbusbus.h.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/eggdbus/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile    1 Jun 2010 10:51:04 -0000       1.1.1.1
+++ Makefile    25 Jun 2010 12:56:23 -0000
@@ -19,6 +19,8 @@
 TEST_TARGET=   check
 PKGCONFIG_OVERRIDE+=   eggdbus-1.pc.in

+CFLAGS.Linux+= -D_GNU_SOURCE
+
 pre-configure:
	cd ${WRKSRC} && ./autogen.sh


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->linux-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 25 Jun 2010 22:07:53 +0000
Responsible-Changed-Why:
Linux pkgsrc problem.


From: David Sainty <dsainty@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43513 CVS commit: pkgsrc/sysutils/eggdbus
Date: Mon, 5 Jul 2010 08:58:57 +0000

 Module Name:	pkgsrc
 Committed By:	dsainty
 Date:		Mon Jul  5 08:58:56 UTC 2010

 Modified Files:
 	pkgsrc/sysutils/eggdbus: distinfo
 Added Files:
 	pkgsrc/sysutils/eggdbus/patches: patch-aa

 Log Message:
 In eggdbusbus.h define uid_t, which is used by org.freedesktop.DBus.xml, but
 is not guaranteed to be defined by the selected set of includes.  Fixes build
 on some Linux variants.

 Addresses PR#43513.


 To generate a diff of this commit:
 cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/sysutils/eggdbus/distinfo
 cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/eggdbus/patches/patch-aa

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: dsainty@NetBSD.org
State-Changed-When: Mon, 05 Jul 2010 09:06:34 +0000
State-Changed-Why:
Patch applied (implementing the suggested alternative).


Responsible-Changed-From-To: linux-pkg-people->dsainty@NetBSD.org
Responsible-Changed-By: dsainty@NetBSD.org
Responsible-Changed-When: Mon, 05 Jul 2010 09:07:52 +0000
Responsible-Changed-Why:
I committed the fix.


From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: linux-pkg-people@netbsd.org, pkgsrc-bugs@netbsd.org,
	 gnats-admin@netbsd.org, dsainty@NetBSD.org
Subject: Re: pkg/43513 (sysutils/eggdbus fails to build on Linux [patch])
Date: Thu, 08 Jul 2010 00:15:25 +0300

 > Synopsis: sysutils/eggdbus fails to build on Linux [patch]

 > State-Changed-From-To: open->feedback
 > State-Changed-By: dsainty@NetBSD.org
 > State-Changed-When: Mon, 05 Jul 2010 09:06:34 +0000
 > State-Changed-Why:
 > Patch applied (implementing the suggested alternative).

 Your commit fixes the problem. Thanks!

 -- 
 Best regards, Aleksey Cheusov.

State-Changed-From-To: feedback->closed
State-Changed-By: asau@NetBSD.org
State-Changed-When: Wed, 07 Jul 2010 21:59:38 +0000
State-Changed-Why:
Reported as fixed. Thanks for feedback!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.