Debian Bug report logs - #629273
FTBFS on kfreebsd-*: sys/mount.h:39:2: error: unknown type name u_short

version graph

Package: d-conf; Maintainer for d-conf is Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>;

Reported by: Michael Biebl <biebl@debian.org>

Date: Sat, 4 Jun 2011 15:03:01 UTC

Severity: serious

Tags: patch

Found in version 0.7.5-1

Fixed in version 0.7.5-2

Done: Michael Biebl <biebl@debian.org>

Bug is archived. No further changes may be made.

Forwarded to https://bugzilla.gnome.org/show_bug.cgi?id=651937

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>:
Bug#629211; Package d-conf. (Sat, 04 Jun 2011 15:03:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Biebl <biebl@debian.org>:
New Bug report received and forwarded. Copy sent to Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>. (Sat, 04 Jun 2011 15:03:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Michael Biebl <biebl@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: FTBFS on kfreebsd-*
Date: Sat, 04 Jun 2011 16:58:05 +0200
Package: d-conf
Version: 0.7.5-1
Severity: serious
User: debian-bsd@lists.debian.org
Usertags: kfreebsd


d-conf FTBFS on kfreebsd:

In file included from ../common/dconf-shmdir.c:30:0:
/usr/include/sys/mount.h:39:2: error: unknown type name 'u_short'
/usr/include/sys/mount.h:40:2: error: unknown type name 'u_short'
/usr/include/sys/mount.h:188:2: error: unknown type name 'fsid_t'
/usr/include/sys/mount.h:201:2: error: unknown type name 'u_char'
/usr/include/sys/mount.h:203:2: error: unknown type name 'u_char'
/usr/include/sys/mount.h:226:2: error: unknown type name 'u_int'
/usr/include/sys/mount.h:272:2: error: unknown type name 'fsid_t'
make[3]: *** [dconf-shmdir.o] Error 1
make[3]: Leaving directory
`/build/buildd-d-conf_0.7.5-1-kfreebsd-amd64-hmqFSS/d-conf-0.7.5/gsettings'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/build/buildd-d-conf_0.7.5-1-kfreebsd-amd64-hmqFSS/d-conf-0.7.5'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/build/buildd-d-conf_0.7.5-1-kfreebsd-amd64-hmqFSS/d-conf-0.7.5'
make: *** [debian/stamp-makefile-build] Error 2

Full build log at
https://buildd.debian.org/status/fetch.php?pkg=d-conf&arch=kfreebsd-amd64&ver=0.7.5-1&stamp=1305703264
https://buildd.debian.org/status/fetch.php?pkg=d-conf&arch=kfreebsd-i386&ver=0.7.5-1&stamp=1305703775

Filing with severity serious as the first gnome packages depending on
d-conf start to appear in unstable.





-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.39-1-486
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash




Changed Bug title to 'FTBFS on kfreebsd-*: sys/mount.h:39:2: error: unknown type name u_short' from 'FTBFS on kfreebsd-*' Request was from Michael Biebl <biebl@debian.org> to control@bugs.debian.org. (Sat, 04 Jun 2011 16:18:04 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>:
Bug#629211; Package d-conf. (Sat, 04 Jun 2011 20:42:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robert Millan <rmh@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>. (Sat, 04 Jun 2011 20:42:03 GMT) Full text and rfc822 format available.

Message #12 received at 629211@bugs.debian.org (full text, mbox):

From: Robert Millan <rmh@debian.org>
To: Michael Biebl <biebl@debian.org>
Cc: debian-bsd@lists.debian.org, 629211@bugs.debian.org
Subject: Re: d-conf on kfreebsd
Date: Sat, 4 Jun 2011 22:40:15 +0200
[Message part 1 (text/plain, inline)]
reassign 629211 kfreebsd-kernel-headers
tags 629211 patch
thanks

2011/6/4 Michael Biebl <biebl@debian.org>:
> /usr/include/sys/mount.h:39:2: error: unknown type name 'u_short'
> /usr/include/sys/mount.h:40:2: error: unknown type name 'u_short'
> /usr/include/sys/mount.h:188:2: error: unknown type name 'fsid_t'
> /usr/include/sys/mount.h:201:2: error: unknown type name 'u_char'
> /usr/include/sys/mount.h:203:2: error: unknown type name 'u_char'
> /usr/include/sys/mount.h:226:2: error: unknown type name 'u_int'
> /usr/include/sys/mount.h:272:2: error: unknown type name 'fsid_t'

Seems like <sys/mount.h> buggyness.  It assumes:

- That <sys/types.h> is included.
- That _BSD_SOURCE is defined.

I propose this patch.

-- 
Robert Millan
[sys_mount.diff (text/plain, attachment)]

Bug reassigned from package 'd-conf' to 'kfreebsd-kernel-headers'. Request was from Robert Millan <rmh@debian.org> to control@bugs.debian.org. (Sat, 04 Jun 2011 20:42:11 GMT) Full text and rfc822 format available.

Bug No longer marked as found in versions 0.7.5-1. Request was from Robert Millan <rmh@debian.org> to control@bugs.debian.org. (Sat, 04 Jun 2011 20:42:11 GMT) Full text and rfc822 format available.

Added tag(s) patch. Request was from Robert Millan <rmh@debian.org> to control@bugs.debian.org. (Sat, 04 Jun 2011 20:42:12 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#629211; Package kfreebsd-kernel-headers. (Sun, 05 Jun 2011 00:09:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Benjamin Kaduk <kaduk@MIT.EDU>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sun, 05 Jun 2011 00:09:03 GMT) Full text and rfc822 format available.

Message #23 received at 629211@bugs.debian.org (full text, mbox):

From: Benjamin Kaduk <kaduk@MIT.EDU>
To: Robert Millan <rmh@debian.org>
Cc: debian-bsd@lists.debian.org, 629211@bugs.debian.org
Subject: Re: d-conf on kfreebsd
Date: Sat, 4 Jun 2011 20:05:26 -0400 (EDT)
On Sat, 4 Jun 2011, Robert Millan wrote:

>
> I propose this patch.


> --- /usr/include/sys/mount.h	2011-01-30 16:26:51.000000000 +0100
> +++ mount.h	2011-06-04 22:37:11.000000000 +0200
> @@ -26,6 +26,7 @@
>
>  #include <sys/stat.h>
>  #include <sys/statfs.h>
> +#include <sys/types.h>
>  #include <sys/ucred.h>
>  #include <sys/queue.h>
> 
> @@ -36,8 +37,8 @@
>  #define	MAXFIDSZ	16
>
>  struct fid {
> -	u_short		fid_len;		/* length of data in bytes */
> -	u_short		fid_reserved;		/* force longword alignment */
> +	__u_short	fid_len;		/* length of data in bytes */
> +	__u_short	fid_reserved;		/* force longword alignment */
>  	char		fid_data[MAXFIDSZ];	/* data (variable length) */

Please pardon my ignorance, but why is it necessary to use the 
double-underscore version of the types?  I think this is fairly uncommon 
in stock FreeBSD kernel headers.

Thanks,

Ben Kaduk


>  };
> 
> @@ -185,7 +186,7 @@
>   * Generic file handle
>   */
>  struct fhandle {
> -	fsid_t	fh_fsid;	/* Filesystem id of mount point */
> +	__fsid_t	fh_fsid;	/* Filesystem id of mount point */
>  	struct	fid fh_fid;	/* Filesys specific id */
>  };
>  typedef struct fhandle	fhandle_t;
> @@ -198,9 +199,9 @@
>  	uid_t	ex_root;		/* mapping for root uid */
>  	struct	xucred ex_anon;		/* mapping for anonymous user */
>  	struct	sockaddr *ex_addr;	/* net address to which exported */
> -	u_char	ex_addrlen;		/* and the net address length */
> +	__u_char	ex_addrlen;	/* and the net address length */
>  	struct	sockaddr *ex_mask;	/* mask of valid bits in saddr */
> -	u_char	ex_masklen;		/* and the smask length */
> +	__u_char	ex_masklen;	/* and the smask length */
>  	char	*ex_indexfile;		/* index file for WebNFS URLs */
>  };
> 
> @@ -223,7 +224,7 @@
>   * XXX: Never change the first two arguments!
>   */
>  struct vfsconf {
> -	u_int	vfc_version;		/* ABI version number */
> +	__u_int	vfc_version;		/* ABI version number */
>  	char	vfc_name[MFSNAMELEN];	/* filesystem type name */
>  	struct	vfsops *vfc_vfsops;	/* filesystem operations vector */
>  	int	vfc_typenum;		/* historic filesystem type number */
> @@ -269,7 +270,7 @@
>
>  struct vfsidctl {
>  	int		vc_vers;	/* should be VFSIDCTL_VERS1 (below) */
> -	fsid_t		vc_fsid;	/* fsid to operate on. */
> +	__fsid_t	vc_fsid;	/* fsid to operate on. */
>  	char		vc_fstypename[MFSNAMELEN];
>  					/* type of fs 'nfs' or '*' */
>  	fsctlop_t	vc_op;		/* operation VFS_CTL_* (below) */




Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#629211; Package kfreebsd-kernel-headers. (Sun, 05 Jun 2011 09:18:35 GMT) Full text and rfc822 format available.

Acknowledgement sent to Petr Salinger <Petr.Salinger@seznam.cz>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sun, 05 Jun 2011 09:18:39 GMT) Full text and rfc822 format available.

Message #28 received at 629211@bugs.debian.org (full text, mbox):

From: Petr Salinger <Petr.Salinger@seznam.cz>
To: 629211@bugs.debian.org
Cc: Michael Biebl <biebl@debian.org>, control@bugs.debian.org
Subject: Re: d-conf on kfreebsd
Date: Sun, 5 Jun 2011 10:49:47 +0200 (CEST)
clone 629211 -1
reassign -1 d-conf 0.7.5-1
--
Hi.


Please append following line into debian/rules of d-conf.

	CFLAGS+=-std=gnu99

The problem is that d-conf explicitely sets in AM_CFLAGS std=c89,
I do not see any reason for doing it, namely in year 2011.

Petr





Bug 629211 cloned as bug 629273. Request was from Petr Salinger <Petr.Salinger@seznam.cz> to control@bugs.debian.org. (Sun, 05 Jun 2011 09:18:46 GMT) Full text and rfc822 format available.

Bug reassigned from package 'kfreebsd-kernel-headers' to 'd-conf'. Request was from Petr Salinger <Petr.Salinger@seznam.cz> to control@bugs.debian.org. (Sun, 05 Jun 2011 09:18:49 GMT) Full text and rfc822 format available.

Bug Marked as found in versions 0.7.5-1. Request was from Petr Salinger <Petr.Salinger@seznam.cz> to control@bugs.debian.org. (Sun, 05 Jun 2011 09:18:50 GMT) Full text and rfc822 format available.

Set Bug forwarded-to-address to 'https://bugzilla.gnome.org/show_bug.cgi?id=651937'. Request was from Michael Biebl <biebl@debian.org> to control@bugs.debian.org. (Sun, 05 Jun 2011 15:30:10 GMT) Full text and rfc822 format available.

Reply sent to Michael Biebl <biebl@debian.org>:
You have taken responsibility. (Sun, 05 Jun 2011 22:42:06 GMT) Full text and rfc822 format available.

Notification sent to Michael Biebl <biebl@debian.org>:
Bug acknowledged by developer. (Sun, 05 Jun 2011 22:42:06 GMT) Full text and rfc822 format available.

Message #41 received at 629273-done@bugs.debian.org (full text, mbox):

From: Michael Biebl <biebl@debian.org>
To: 629273-done@bugs.debian.org
Subject: FTBFS on kfreebsd-*: sys/mount.h:39:2: error: unknown type name u_short
Date: Mon, 06 Jun 2011 00:39:57 +0200
[Message part 1 (text/plain, inline)]
Version: 0.7.5-2

d-conf (0.7.5-2) unstable; urgency=low

  * Strip leading debian/tmp/ from .install files.
  * Bump Standards-Version to 3.9.2. No further changes.
  * Temporarily disable dconf-editor so we can bootstrap d-conf on kfreebsd.
  * Don't install bash completion file as executable shell script.
  * debian/patches/01-sys-mount-h-include-fix.patch
    - Include headers in a proper way to fix FTBFS on hurd and kfreebsd.
      Thanks Pino Toscano for the patch. (Closes: #629211)

 -- Michael Biebl <biebl@debian.org>  Sun, 05 Jun 2011 19:51:48 +020
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

[signature.asc (application/pgp-signature, attachment)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 27 Jul 2011 07:39:47 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 19:35:17 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.