Debian Bug report logs -
#25376
libc6-dev: socketbits.h defines _LINUX_TYPES_H but has different functionality
Reported by: <paul@wau.mis.ah.nl>
Date: Tue, 4 Aug 1998 08:48:03 UTC
Severity: normal
Merged with 26104
Found in version 2.0.7t-1
Done: Ben Collins <bcollins@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Dale Scheetz <dwarf@polaris.net>
:
Bug#25376
; Package libc6-dev
.
(full text, mbox, link).
Acknowledgement sent to <paul@wau.mis.ah.nl>
:
New bug report received and forwarded. Copy sent to Dale Scheetz <dwarf@polaris.net>
.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: libc6-dev
Version: 2.0.7t-1
Compiling the CVS cnapshot of isdn4k-utils, I got a lot of errors about
__u16, __u8 etc. being unknown in <linux/isdn_timru.h> (from the CVS snapshot
of isdn4linux). A quick search shows that these are typedef'ed in
<linux/types.h>. Unfortunately, including linux/types.h in linux/isdn_timru.h
doesn't help, because the program in question also includes sys/socket.h.
That in turn includes socketbits.h, which gratuitously defines _LINUX_TYPES_H.
The following patch solves the problem for me, but it looks dirty and I feel
other things that have worked around this problem in the past may now break,
so I'd like your opinion on this.
Thanks,
Paul Slootman
--- socketbits.h.orig Fri Jul 17 03:35:13 1998
+++ socketbits.h Tue Aug 4 10:36:20 1998
@@ -221,11 +221,15 @@
/* Get socket manipulation related informations from kernel headers. */
#ifndef _LINUX_TYPES_H
+# define _SOCKETBITS_LINUX_TYPES_H /* remember we did this */
# define _LINUX_TYPES_H
#endif
#include <asm/socket.h>
+#ifdef _SOCKETBITS_LINUX_TYPES_H /* undo it now */
+# undef _LINUX_TYPES_H
+#endif
/* Structure used to manipulate the SO_LINGER option. */
struct linger
-- System Information
Debian Release: 2.0
Kernel Version: Linux janux 2.0.33 #1 Thu May 7 17:58:55 MEST 1998 i586 unknown
Versions of the packages libc6-dev depends on:
ii libc6 2.0.7t-1 The GNU C library version 2 (run-time files)
ii gcc 2.7.2.3-4.8 The GNU C compiler.
Information forwarded to debian-bugs-dist@lists.debian.org, Ben Collins <bcollins@debian.org>
:
Bug#25376
; Package libc6-dev
.
(full text, mbox, link).
Acknowledgement sent to Ben Harris <bjh21@cam.ac.uk>
:
Extra info received and forwarded to list. Copy sent to Ben Collins <bcollins@debian.org>
.
(full text, mbox, link).
Message #12 received at 25376@bugs.debian.org (full text, mbox, reply):
The current stable version of libc6-dev, version 2.1.3-10, doesn't include
a socketbits.h file. /usr/include/bits/socket.h, which seems to be its
successor, doesn't define _LINUX_TYPES_H around its inclusion of
<asm/socket.h>. This bug can probably be closed.
--
Ben Harris
Unix Support, University of Cambridge Computing Service.
Reply sent to Ben Collins <bcollins@debian.org>
:
You have taken responsibility.
(full text, mbox, link).
Notification sent to <paul@wau.mis.ah.nl>
:
Bug acknowledged by developer.
(full text, mbox, link).
Message #17 received at 25376-done@bugs.debian.org (full text, mbox, reply):
On Thu, Oct 12, 2000 at 05:30:07PM +0100, Ben Harris wrote:
> The current stable version of libc6-dev, version 2.1.3-10, doesn't include
> a socketbits.h file. /usr/include/bits/socket.h, which seems to be its
> successor, doesn't define _LINUX_TYPES_H around its inclusion of
> <asm/socket.h>. This bug can probably be closed.
Thanks
--
-----------=======-=-======-=========-----------=====------------=-=------
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bcollins@linux.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Apr 18 03:02:30 2024;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.