I did the following apt-get source curl sudo apt-get build-dep curl cd curl-7.18.1 then apply your patch to lib/ftp.c then dpkg-buildpackage -rfakeroot -uc -us
This ends in an error: gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -g -O2 -MT ftp.lo -MD -MP -MF .deps/ftp.Tpo -c ftp.c -fPIC -DPIC -o .libs/ftp.o ftp.c:76:17: error: ftp.h: No such file or directory ftp.c:3631: error: conflicting types for 'Curl_nbftpsendf' ftp.c:769: error: previous implicit declaration of 'Curl_nbftpsendf' was here ftp.c:3703: error: conflicting types for 'Curl_ftpsendf' ftp.c:3330: error: previous implicit declaration of 'Curl_ftpsendf' was here make[3]: *** [ftp.lo] Error 1 make[3]: Leaving directory `/usr2/people/healy/tmp/curl-7.18.1/lib' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr2/people/healy/tmp/curl-7.18.1/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr2/people/healy/tmp/curl-7.18.1' make: *** [all] Error 2 I don't see a file ftp.h anywhere in the source. Is it supposed to be in the curl source package? Liam On Wed, May 7, 2008 at 4:49 PM, Daniel Stenberg <[EMAIL PROTECTED]> wrote: > On Wed, 7 May 2008, Liam Healy wrote: > > > > Curl_GetFTPResponse (nreadp=0x7fffa69c79c8, conn=0x648eb0, > > ftpcode=0x0) at ftp.c:623 > > 623 ftp.c: No such file or directory. > > in ftp.c > > (gdb) where > > #0 Curl_GetFTPResponse (nreadp=0x7fffa69c79c8, conn=0x648eb0, > > ftpcode=0x0) at ftp.c:623 > > > > Thanks, that made it painfully obvious! > > My suggested patch to fix this problem follows: > > diff -u -r1.470 ftp.c > --- lib/ftp.c 28 Apr 2008 21:29:17 -0000 1.470 > +++ lib/ftp.c 7 May 2008 20:48:10 -0000 > @@ -622,9 +622,13 @@ > struct timeval now = Curl_tvnow(); > size_t nread; > int cache_skip=0; > + int value_to_be_ignored=0; > > if(ftpcode) > *ftpcode = 0; /* 0 for errors */ > + else > + /* make the pointer point to something for the rest of this function > */ > + ftpcode = &value_to_be_ignored; > > *nreadp=0; > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]