I was looking into the RPM SPEC for RCP on RedHat 9 and I saw these options:


-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64

Then I re-emerged net-misc/netkit-rsh with:
  CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" 
emerge net-misc/netkit-rsh
all went ok but now when I use RCP I get:
  rcp: protocol screwup: size not delimited

(The other machine is a RH 9)... Is there anything else I should re-emerge?

Radu

On Fri, 25 Mar 2005, Radu Filip wrote:

How do I compile RCP with support for very large files?

I have an Intel P4, with a Gentoo 2004.3 and with a 2.4.28-gentoo-r8 kernel compiled with support for large files. When I use rcp to transfer a large file (>3 GB) on a different machine I get a "file too large". However, I can scp exactly the same file to the exactly the same other machine, so I guess it is not a kernel issue.

I was looking for a USE flag related to support for large files and I found no one. `emerge -pv netmisc/netkit-rsh` shows only "pam" as a possible flag. How can I compile netmisc/netkit-rsh with support for very large files?

How I can be sure that everything have support for large files?

As a quick workaround, I copied over a rcp binary from a RH 9 (and it worked!), but I really hate to patch Gentoo this way in the future.

Thanks
--
[email protected] mailing list



Reply via email to