* Problems compiling with glibc-2.0.3 and kernel 2.1.35.
@ 1997-04-23 17:42 Paul J.Y. Lahaie
0 siblings, 0 replies; only message in thread
From: Paul J.Y. Lahaie @ 1997-04-23 17:42 UTC (permalink / raw)
I've installed the rpms located in ftp.redhat.com:/pub/alphabits/*.rpm
and can no longer compile programs due to conflicting types for struct
fd_set. This is the output of the compile:
/usr/include/linux/posix_types.h:44: conflicting types for `struct fd_set'
/usr/include/sys/select.h:48: previous declaration as `struct __fd_set'
/usr/include/linux/posix_types.h:44: conflicting types for `struct fd_set'
/usr/include/sys/select.h:88: previous declaration as `struct __fd_set'
If I look into sys/select.h, struct fd_set is defined as follows:
/* Representation of a set of file descriptors. */
typedef __fd_set fd_set;
Now, if I go look for __fd_set, I get the following:
/* One element in the file descriptor mask array. */
typedef unsigned int __fd_mask;
/* fd_set for select and pselect. */
typedef struct
{
/* XPG4.2 requires this member name. */
__fd_mask fds_bits[__FD_SETSIZE / __NFDBITS];
} __fd_set;
In the Linux kernel, I have the following:
#define __FDSET_LONGS (__FD_SETSIZE/__NFDBITS)
typedef struct fd_set {
unsigned long fds_bits [__FDSET_LONGS];
} __kernel_fd_set;
So, here, fd_set is defined as unsigned long fds_bits[__FD_SETSIZE /
__NFDBITS] and previously, I get unsigned int fds_bits[__FD_SETSIZE /
__NFDBITS].
Is there a fix for this? Which definition is "wrong"?
- Paul
--
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-04-23 17:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-23 17:42 Problems compiling with glibc-2.0.3 and kernel 2.1.35 Paul J.Y. Lahaie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox