error compiling the latest versions of rsync

Denis Solovyov elk at elk.ru
Thu Apr 13 09:40:25 GMT 2006


I'm getting the following error when I'm trying to do just `./configure;
make` with the latest versions of rsync (both 2.6.7 and 2.6.8pre1):

gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W  -c lib/compat.c -o lib/compat.o
lib/compat.c:171: error: conflicting types for `inet_aton'
/usr/include/arpa/inet.h:74: error: previous declaration of `inet_aton'
make: *** [lib/compat.o] Error 1

In config.log I also see 10 following strings:
./conftest: error while loading shared libraries: libiconv.so.2: cannot
open shared object file: No such file or directory

I  do  NOT  get  such  errors  when  I compile rsync 2.6.6 the same way,
libiconv.so.2  is  also  present  in  /usr/local/lib (2.6.6 seems not to
try libiconv at all?).

# grep -i aton rsync-2.6.6/config.log
configure:11717: checking for broken inet_aton
rsync_cv_REPLACE_INET_ATON=no

# grep -i aton rsync-2.6.8pre1/config.log
configure:11893: checking for broken inet_aton
| if (inet_aton("example", &ip) == 0) exit(0); exit(1);}
| #define REPLACE_INET_ATON 1
| #define REPLACE_INET_ATON 1
rsync_cv_REPLACE_INET_ATON=yes
#define REPLACE_INET_ATON 1

`./configure 2>&1 | grep -i aton` on 2.6.6 said "checking for broken inet_aton... no"
`./configure 2>&1 | grep -i aton` on 2.6.8pre1 said "checking for broken inet_aton... yes"

I'm using Trustix Secure Linux 2.2 with kernel 2.4 and glibc 2.3.2.

It a known/fixable problem, or is it my own problem?

Denis Solovyov




More information about the rsync mailing list