I am sorry if this question is in the faq-o-matic somewhere, I couldn't  come up with it.
 
I am trying to compile rsync on solaris 2.8 using gcc and I get errors about D_LARGEFILE_SOURCE and D_FILE_OFFSET_BITS=64.
 
The configure script checks go as follows...
 
checking whether the C compiler (gcc -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  ) works... yes
checking whether the C compiler (gcc -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  ) is a cross-c
 
> make
gcc -I. -I. -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c rsync.c -o rsync.o
In file included from /usr/include/sys/wait.h:24,
                 from rsync.h:143,
                 from rsync.c:23:
/usr/include/sys/resource.h:148: warning: `struct rlimit64' declared inside parameter list
/usr/include/sys/resource.h:148: warning: its scope is only this definition or declaration,
/usr/include/sys/resource.h:148: warning: which is probably not what you want.
/usr/include/sys/resource.h:149: warning: `struct rlimit64' declared inside parameter list
gcc -I. -I. -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c generator.c -o generator.o
 
If I change the Makefile to read D_FILE_OFFSET_BITS=32 I get a clean compile.
 
Can someone verify that his is acceptable?  It makes me a little nervous.

 
Thanks,
 
Bryan

Reply via email to