From owner-freebsd-questions@FreeBSD.ORG Thu Jun 29 15:53:24 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E14CA16A403 for ; Thu, 29 Jun 2006 15:53:24 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61F8544469 for ; Thu, 29 Jun 2006 15:53:22 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.4/8.13.1) with ESMTP id k5TFqDjI000385; Thu, 29 Jun 2006 10:52:34 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <44A3F723.1000907@daleco.biz> Date: Thu, 29 Jun 2006 10:52:03 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.4) Gecko/20060623 SeaMonkey/1.0.2 MIME-Version: 1.0 To: Christopher Hobbs References: <20060629144946.66463694070@athome.siloamsprings.com> In-Reply-To: <20060629144946.66463694070@athome.siloamsprings.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: problems with fetch X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 15:53:25 -0000 Christopher Hobbs wrote: > I'm a first time poster, so forgive me if this is the wrong list or if I break > etiquette. Seems proper enough to me, here. > Fetch frequently fails for me when installing ports via "pkg_add" or directly > from the ports tree. Regardless of the port I'm trying to add, it almost always > returns the following... > > => Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. > fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/xpdf-3.01pl1.patch: > Syntax error in parameters or arguments > => Couldn't fetch it - please try to retrieve this > => port manually into /usr/ports/distfiles/ and try again. > *** Error code 1 > > I think the key error in all of this is the part that says "Syntax error in > parameters or arguments". This only seems to happen with FTP sites as opposed > to HTTP sites. Understandable, as this message is either an SMTP or FTP error code, but not an HTTP one. (We'll guess FTP in this case, methinks...) ;) I can retrieve said files with wget without a hitch, so I'm at a > loss as to what's going on. I've frobbed nearly every knob that fetch has to no > avail. Hmm, that's kind of interesting. > I'm running 6.1: FreeBSD SS002.admin.siloamsprings.com 6.1-RELEASE FreeBSD > 6.1-RELEASE #0: Sun May 7 04:42:56 UTC 2006 > root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386 > > It's a fresh install, I'll probably update soon. I had the same problem in 5.4. > > Thank you in advance for any help you may be able to provide! > Are you behind an FTP proxy? (Seems strange to get that message, but it's worth asking about.) What about a firewall (on 2d though, forget that, you couldn't get the message from the server otherwise. What do these commands yield? locale alias | grep -i fet alias | grep -i get env | grep -i fet env | grep -i get file `which fetch` grep fetch /etc/make.conf Are you able to use the ftp client manually and d-load the files? In a pinch, there are also some workarounds. You could try "alias fetch wget -c", which might work. Setting 'FETCH_CMD=/usr/local/bin/wget -c' in /etc/make.conf should definitely work around this issue. Sorry I'm not more help. Kevin Kinsey -- A journey of a thousand miles begins with a cash advance from Sam.