Problem compiling programs after upgrade from RedHat 9.0
Cláudio F. Gil
cfgi at mega.ist.utl.pt
Wed Nov 26 12:06:23 UTC 2003
Hi,
I've upgraded my Redhat 9.0 to Fedora Code 1 and now I'm having C++
compilation problems. When I try to compile I get the following errors:
---
/usr/include/unistd.h:201: error: conflicting types for `typedef __gid_t
gid_t'
/usr/include/linux/types.h:21: error: previous declaration as `typedef
__kernel_gid_t gid_t'
(...)
/usr/include/sys/types.h:62: error: conflicting types for `typedef __dev_t
dev_t'
/usr/include/linux/types.h:10: error: previous declaration as `typedef
__kernel_dev_t dev_t'
/usr/include/sys/types.h:72: error: conflicting types for `typedef __mode_t
mode_t'
/usr/include/linux/types.h:12: error: previous declaration as `typedef
__kernel_mode_t mode_t'
/usr/include/sys/types.h:77: error: conflicting types for `typedef __nlink_t
nlink_t'
/usr/include/linux/types.h:13: error: previous declaration as `typedef
__kernel_nlink_t nlink_t'
(...)
/usr/include/sys/select.h:78: error: conflicting types for `typedef struct
fd_set fd_set'
/usr/include/linux/types.h:9: error: previous declaration as `typedef struct
__kernel_fd_set fd_set'
---
I've installed apt-get and it tells me that there are no broken packages and
no need to upgrade so whats is wrong with my system?
Does anyone know this problem?
Other information (hope that it helps)
---
$ uname -r -v -s -m -o -i
Linux 2.4.22-1.2115.nptl #1 Wed Oct 29 15:42:51 EST 2003 i686 i386 GNU/Linux
$ rpm -q --whatprovides /usr/include/unistd.h
glibc-headers-2.3.2-101.1
$ rpm -q --whatprovides /usr/include/sys/types.h
glibc-headers-2.3.2-101.1
$ rpm -q --whatprovides /usr/include/linux/types.h
glibc-kernheaders-2.4-8.36
$ rpm -qa | grep glibc
glibc-kernheaders-2.4-8.36
glibc-devel-2.3.2-101.1
glibc-headers-2.3.2-101.1
glibc-2.3.2-101.1
glibc-common-2.3.2-101.1
---
Thanks,
Cláudio Gil
More information about the users
mailing list