Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234599 - net-ftp/ftp: CPPFLAGS are not respected
Summary: net-ftp/ftp: CPPFLAGS are not respected
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-13 07:43 UTC by jody
Modified: 2008-10-26 03:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jody 2008-08-13 07:43:27 UTC
I recently emerged ftp 0.17-r7.
It only managed to transfer 2GB of data, then stopped.
This did not happen with the previous version ftp 0.17-r6.

The bug 101038 (http://bugs.gentoo.org/101038) discussed 
the same problem in 2005. Apparently this was fixed for 0.17-r5.
 
When i added
"-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" 
to my CFLAGS (as suggested in 101038), and recompiled,
ftp 0.17-r7 was able to GET files larger than 2GB correctly. 

Reproducible: Always

Steps to Reproduce:
1.prepare a file larger than 2GB on your favourite ftp server
2.GET it
3.

Actual Results:  
I got the file truncated after 2GB

Expected Results:  
To get the entire file
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-13 09:10:31 UTC
(In reply to comment #0)
> I recently emerged ftp 0.17-r7.
> It only managed to transfer 2GB of data, then stopped.
> This did not happen with the previous version ftp 0.17-r6.
> 
Are you sure that this doesn't happen in -r6? The -r6 and -r7 ebuilds are pretty much the same, with -r7 only to include two more patches.

Comment 2 jody 2008-08-13 10:40:10 UTC
(In reply to comment #1)
> Are you sure that this doesn't happen in -r6? The -r6 and -r7 ebuilds are
> pretty much the same, with -r7 only to include two more patches.

You are right.
I reemerged r6 (without the additional CFLAGS)
and it showed the same bad behaviour.

Emerging r6 *with* the additional CFLAGS made
it transfer the big file correctly.

So probably the version i had updated from was 
an even older one...

Sorry for the confusion.
Comment 3 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-13 11:17:49 UTC

*** This bug has been marked as a duplicate of bug 101038 ***
Comment 4 SpanKY gentoo-dev 2008-08-20 06:58:25 UTC
the ftp package does not respect CPPFLAGS