Date: Wed, 1 Dec 1999 10:28:10 +0700 (KRAT) From: root@pal.svznov.kemerovo.su To: FreeBSD-gnats-submit@freebsd.org Subject: i386/15197: Bug in /usr/include/netinet/in.h with u_int32_t Message-ID: <199912010328.KAA06182@pal.svznov.kemerovo.su>
index | next in thread | raw e-mail
>Number: 15197
>Category: i386
>Synopsis: Bug in /usr/include/netinet/in.h with u_int32_t
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Nov 30 19:30:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Eugene Grosbein
>Release: FreeBSD 3.3-STABLE i386, cvsup'd at 1 Dec 1999
>Organization:
SvzServ Co.
>Environment:
Fresh installation of FreeBSD 3.3-RELEASE,
cvsup'd to -STABLE; gcc 2.7.2.3.
>Description:
There is a definition in /usr/include/netinet/in.h,
$FreeBSD: src/sys/netinet/in.h,v 1.38.2.3 1999/08/29 16:29:34 peter Exp $,
line 223:
struct in_addr {
u_int32_t s_addr;
};
<netinet/in.h> does not define u_int32_t. It does not include <sys/types.h>
or something else that defines u_int32_t. Therefore, if a C-program
includes <netinet/in.h> and <sys/types.h> AFTER, it fails to compile.
I discovered it compiling Perl module TacacsPlus-0.16 fetched from CPAN.
>How-To-Repeat:
Download http://www.perl.com/CPAN-local/authors/id/MSHOYHER/TacacsPlus-0.16.tar.gz
tar xfvz TacacsPlus-0.16.tar.gz
perl Makefile.PL
make
Here you will have parse error in /usr/include/netinet/in.h
>Fix:
Here is a patch:
--- in.h.orig Wed Dec 1 10:25:23 1999
+++ in.h Wed Dec 1 10:25:47 1999
@@ -36,7 +36,7 @@
#ifndef _NETINET_IN_H_
#define _NETINET_IN_H_
-
+#include <sys/types.h>
/*
* Constants and structures defined by the internet system,
* Per RFC 790, September 1981, and numerous additions.
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912010328.KAA06182>
