From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199704231725.MAA15629@stommel.tamu.edu> Date: Wed, 23 Apr 1997 13:42:27 -0400 (xyUU) From: Paul J.Y. Lahaie Subject: Problems compiling with glibc-2.0.3 and kernel 2.1.35. 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