probleme de lib => conflicting types for `ntohl'

トップ ページ

このメッセージに返信
著者: Jerome.Le-Tanou
日付:  
To: guilde
題目: probleme de lib => conflicting types for `ntohl'
bonjour a tous,

    j'ai un utilisateur qui essaye de compiler un programme utilisant ntohl
normalement défini ds usr/include/netinet/in.h, or j'ai un conflit avec
/usr/include/asm/byteorder.h
pour info j'ai installé glibc 2.0.6-9 et libc 5.3.12-25 sur RH5.0


    Une idée ? Merci



[monot@angelus amanda-2.3.0.4]$ make
make all-recursive
make[1]: Entering directory `/home/monot/amanda-2.3.0.4'
Making all in common-src
make[2]: Entering directory `/home/monot/amanda-2.3.0.4/common-src'
gcc -DHAVE_CONFIG_H -I. -I. -I..   -g  -c alloc.c
In file included from amanda.h:146,
                 from alloc.c:31:
/usr/include/netinet/in.h:198: conflicting types for `ntohl'
/usr/include/asm/byteorder.h:22: previous declaration of `ntohl'
/usr/include/netinet/in.h:200: conflicting types for `htonl'
/usr/include/asm/byteorder.h:24: previous declaration of `htonl'
make[2]: *** [alloc.o] Error 1
make[2]: Leaving directory `/home/monot/amanda-2.3.0.4/common-src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/monot/amanda-2.3.0.4'
make: *** [all-recursive-am] Error 2


[monot@angelus amanda-2.3.0.4]$ rpm -qf /usr/include/netinet/in.h
glibc-devel-2.0.6-9
[monot@angelus amanda-2.3.0.4]$ rpm -qf /usr/include/asm/byteorder.h
file /usr/include/asm/byteorder.h is not owned by any package