Date: Tue, 13 Jun 2000 09:29:19 -0700 (PDT) From: pmgleitz@research.att.com To: freebsd-gnats-submit@FreeBSD.org Subject: misc/19246: Poor error message when fetching files with active mode ftp fails in bsd.port.mk. Message-ID: <20000613162919.2E88F37C120@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 19246 >Category: misc >Synopsis: Poor error message when fetching files with active mode ftp fails in bsd.port.mk. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jun 13 09:30:02 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Peter Gleitz >Release: 3.4-STABLE >Organization: Research >Environment: FreeBSD britten.research.att.com 3.4-STABLE FreeBSD 3.4-STABLE #0: Mon Jan 31 16:48:10 EST 2000 pmgleitz@britten.research.att.com:/usr/cvsrc/src/sys/compile/PMG_KERNEL_1 i386 >Description: I first ran into this when trying to build a kame application with bsd.port.mk, but the problem probably should be corrected in other makefiles. I run from behind a firewall that only permits passive mode ftp. When the make tries to fetch files from various repositories, /usr/bin/fetch fails to open the data channel in active mode ftp and after timing out moves on to the next repository, where it fails again for the same reason. At the end of this doomed iteration over repositories, the make gives up and advises fetching the files by hand. It seems to me this error message could be slightly more informative, perhaps advising that /etc/make.conf has an FTP_PASSIVE_MODE flag that should be investigated. The message you presently get is: ${ECHO_MSG} ">> Couldn't fetch it - please try to retrieve this";\ ${ECHO_MSG} ">> port manually into ${_DISTDIR} and try again."; \ Surely this could be expanded to suggest the possibility of setting the passive mode flags before having to deal with the painful alternative of hand fetching. As another possibility, the script might also be made smart enough to realize what has happened and either recover from the failure by setting passive mode or at least advising with an appropriate message about /etc/make.conf When I run an active mode ftp fetch from the command line, after a fashion, I get: PORT command successful. Sending: RETR sendmail893+3.2W.patch.gz Can't build data connection: Operation timed out. fetch: ftp://ftp.kyoto.wide.ad.jp//pub/mail/sendmail/sendmail893+3.2W.patch.gz: FTP error: fetch: Can't open data connection and surely this would be easy enough to parse and decide that a passive mode ftp would surely be more likely to succeed, so why not have the script say so. >How-To-Repeat: >Fix: See full description for two suggestions. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000613162919.2E88F37C120>