From: Ronny Ranerup <ronny.ranerup@axis.com>
Subject: Re: messy include files - pid_t undefined?
Date: Wed, 24 Sep 1997 15:19:51 +0200 (MET DST) [thread overview]
Message-ID: <199709241319.PAA29468@zebara.axis.se> (raw)
Harvey J. Stein:
>In general I've been seeing various warnings from the standard header
>files when compiling on the alpha. Again, are they being fixed, or
>should I email this list, or some other list, or someone in particular
>with the ones I've seen?
I agree on the statement and repeat the question. The header files seem really
messed up on the (RedHat) Alpha. I actually thought there was something wrong
with just my installation...
I even had to fix something, somewhere, which generated an error, don't remember
where though. The warnings below, which I don't get on an Intel box, are from
the following includes (some non-standard):
#include <net/if.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <signal.h>
#include <string.h>
#include <stdio.h>
#include <pcap.h>
#include <misc.h>
#include <hash3.h>
#include <sys/time.h>
#include <unistd.h>
---
cc -o snoop snoop.c -I. -I/usr/src/misc -I/usr/src/hash -L/usr/src/misc -L/usr/src/hash -L/usr/src/turtle -I/usr/src/turtle -L/usr/X11/lib -ansi -g -lm -lpcap -lmisc -lhash -lX11 -lturtle
In file included from /usr/include/arpa/inet.h:42,
from snoop.c:9:
/usr/include/sys/types.h:42: warning: redefinition of `dev_t'
/usr/include/linux/types.h:10: warning: `dev_t' previously declared here
/usr/include/sys/types.h:43: warning: redefinition of `gid_t'
/usr/include/linux/types.h:17: warning: `gid_t' previously declared here
/usr/include/sys/types.h:44: warning: redefinition of `ino_t'
/usr/include/linux/types.h:11: warning: `ino_t' previously declared here
/usr/include/sys/types.h:45: warning: redefinition of `mode_t'
/usr/include/linux/types.h:12: warning: `mode_t' previously declared here
/usr/include/sys/types.h:46: warning: redefinition of `nlink_t'
/usr/include/linux/types.h:13: warning: `nlink_t' previously declared here
/usr/include/sys/types.h:47: warning: redefinition of `off_t'
/usr/include/linux/types.h:14: warning: `off_t' previously declared here
/usr/include/sys/types.h:49: warning: redefinition of `pid_t'
/usr/include/linux/types.h:15: warning: `pid_t' previously declared here
/usr/include/sys/types.h:50: warning: redefinition of `uid_t'
/usr/include/linux/types.h:16: warning: `uid_t' previously declared here
/usr/include/sys/types.h:53: warning: redefinition of `ssize_t'
/usr/include/linux/types.h:35: warning: `ssize_t' previously declared here
In file included from /usr/include/sys/types.h:67,
from /usr/include/arpa/inet.h:42,
from snoop.c:9:
/usr/include/time.h:76: warning: redefinition of `time_t'
/usr/include/linux/types.h:45: warning: `time_t' previously declared here
In file included from /usr/include/sys/time.h:24,
from /usr/local/include/pcap.h:40,
from snoop.c:18:
/usr/include/time.h:64: warning: redefinition of `clock_t'
/usr/include/linux/types.h:50: warning: `clock_t' previously declared here
---
/ronny@axis.com/Ronny Ranerup/Axis Communications AB/http://www.axis.com
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-09-24 13:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-09-24 13:19 Ronny Ranerup [this message]
1997-09-24 13:31 ` messy include files - pid_t undefined? Tom Browder
1997-09-24 15:09 ` Christopher F. Miller
1997-09-28 4:10 ` Richard Henderson
[not found] <199709241509.LAA15324@headwall.maine.com>
1997-09-28 4:16 ` Richard Henderson
[not found] <199709241305.PAA04758@blinky.bfr.co.il>
1997-09-28 4:02 ` Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1997-09-24 13:05 Harvey J. Stein
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox