Debian Bug report logs - #17450
netinet/in.h and asm/byteorder.h have conflicting types for ntohl/htonl

version graph

Package: libc6.1-dev; Maintainer for libc6.1-dev is (unknown);

Reported by: Lars Wirzenius <liw@iki.fi>

Date: Sat, 24 Jan 1998 19:03:00 UTC

Severity: normal

Found in version 2.0.6-2

Done: unknown

Bug is archived. No further changes may be made.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, David Engel <david@debian.org>:
Bug#17450; Package libc6.1-dev. (full text, mbox, link).


Acknowledgement sent to Lars Wirzenius <liw@iki.fi>:
New bug report received and forwarded. Copy sent to David Engel <david@debian.org>. (full text, mbox, link).


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

From: Lars Wirzenius <liw@iki.fi>
To: submit@bugs.debian.org
Subject: netinet/in.h and asm/byteorder.h have conflicting types for ntohl/htonl
Date: Sat, 24 Jan 1998 20:57:37 +0200
Package: libc6.1-dev
Version: 2.0.6-2

The following demonstrates the problem (don't worry about the filename
little-endian.c, it's not relevant):

	$ cat little-endian.c
	#include <netinet/in.h>
	#include <asm/byteorder.h>
	
	int foo;
	$ gcc -c little-endian.c
	In file included from little-endian.c:2:
	/usr/include/asm/byteorder.h:17: conflicting types for `ntohl'
	/usr/include/netinet/in.h:198: previous declaration of `ntohl'
	/usr/include/asm/byteorder.h:19: conflicting types for `htonl'
	/usr/include/netinet/in.h:200: previous declaration of `htonl'
	[status 1]
	$ 

netinet/in.h is from libc.  asm/byteorder.h is from kernel-headers-2.0.32
(2.0.32-3); this bug might be more appropriate for that package, I
don't know. I'm using an Alpha, and haven't checked whether the problem
exists on other platforms as well.



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon May 13 02:01:36 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.