From owner-freebsd-ports@FreeBSD.ORG Fri May 5 12:48:02 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 716B716A402 for ; Fri, 5 May 2006 12:48:02 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx1.parodius.com (mx1.parodius.com [64.62.145.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CC9643D45 for ; Fri, 5 May 2006 12:48:02 +0000 (GMT) (envelope-from jdc@parodius.com) Received: by mx1.parodius.com (Postfix, from userid 500) id 2B9A46006; Fri, 5 May 2006 05:48:02 -0700 (PDT) Date: Fri, 5 May 2006 05:48:02 -0700 From: Jeremy Chadwick To: freebsd-ports@freebsd.org Message-ID: <20060505124802.GA94287@pentarou.parodius.com> Mail-Followup-To: freebsd-ports@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-Key: http://jdc.parodius.com/pubkey.asc User-Agent: Mutt/1.5.11 Subject: Re: FreeBSD Port: isc-dhcp3-client-3.0.3_1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 May 2006 12:48:02 -0000 On Fri, May 05, 2006 at 07:43:45AM -0400, fbsd wrote: > Dear port maintainer Joerq: > > I installed the isc-dhcp-client pkg on my FreeBSD 6.0 system. > I have this in my rc.conf > > dhcp_program="/usr/local/sbin/dhclient" > dhcp_flags="-q" > ifconfig_dc0="DHCP" > > I get these error messages over and over on boot. > Have to reboot in single user mode to edit rc.conf to stop > message by commenting out the ifconfig_dc0="DHCP" statement. > > Can't bind to dhcp address: Address already in use > Please make sure there is no other dhcp server > running and that there's no entry for dhcp or > bootp in /etc/inetd.conf. Also make sure you > are not running HP JetAdmin software, which > includes a bootp server. > > I have no other dhcp server running and there's no entry for dhcp or > bootp in /etc/inetd.conf. > > Is there something else that has to be configured to get this to > work? > > > Was using the built in dhclient but it does not seen to be > functioning correctly since 4.11. > > 5.0 changed the /etc/rd.c boot process. > The dhclient-script in completely different between the base > dhclient version and the port version. Neither script version > uses the "recorder" statements to control the timing during > the boot process when they get executed like the other > services in /etc/rc.d do. > > The isc-dhcp-server port/pkg is working fine. > > > The base dhclient works ok as long as one does not use any of the > hooks. > Dhclient-exit-hooks is not executing "if" logic or the logger > command. > It exhibits all the signs of being executed to early in the boot > process. > Trying to use the ports version with no joy. > > Review the question list for thread on this subject for more > details. > > Thanks for any light you can shine on this. I think maybe you're using the wrong rc(8) flags to adjust which dhclient to use (the system-included binary or the isc port binary)? Just a thought... $ uname -r 6.1-PRERELEASE $ grep dhcp /etc/defaults/rc.conf dhclient_program="/sbin/dhclient" # Path to dhcp client program. dhclient_flags="" # Additional flags to pass to dhcp client. background_dhclient="NO" # Start dhcp client in the background. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. |