Hi,
When i tried to compile rsync-2.4.6 sources in HP-UX 10.20 using /opt/CC/bin/CC
compiler,
I'm getting below errors
$ make
/opt/CC/bin/CC -I. -I. -Ac -O -c rsync.c -o rsync.o
CC: "/usr/include/sys/unistd.h", line 223: error: two getopt()s with c linkage
(1101)
CC: "proto.h", line 164: error: syntax error (1502)
CC: "proto.h", line 164: error: syntax error (1502)
CC: "proto.h", line 168: error: off_t do_lseek: typedef off_t is undefined in
this scope (1689)
CC: "proto.h", line 168: error: off_t offset: typedef off_t is undefined in this
scope (1689)
CC: "proto.h", line 192: error: pid_t do_fork: typedef pid_t is undefined in
this scope (1689)
CC: "rsync.h", line 506: error: size_t strlcpy: typedef size_t is undefined in
this scope (1689)
CC: "rsync.h", line 506: error: size_t bufsize: typedef size_t is undefined in
this scope (1689)
CC: "rsync.h", line 510: error: size_t strlcat: typedef size_t is undefined in
this scope (1689)
CC: "rsync.h", line 510: error: size_t bufsize: typedef size_t is undefined in
this scope (1689)
*** Error exit code 1
I tried to follow the FAQ. And I cann't search this problem in the mailing list.
What wud be the problem in the above compilation.
--
------------------------------------------------------------------------
M. Maharajan