From owner-freebsd-questions@FreeBSD.ORG Wed Jan 23 16:44:08 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B9A6D5C2; Wed, 23 Jan 2013 16:44:08 +0000 (UTC) (envelope-from vrwmiller@gmail.com) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id 1B950FE3; Wed, 23 Jan 2013 16:44:07 +0000 (UTC) Received: by mail-lb0-f176.google.com with SMTP id s4so3109658lbc.21 for ; Wed, 23 Jan 2013 08:44:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=TL3IRGKTArIULhVi3QIh6ezSc4Kh7MzQiFGFQShb0ro=; b=EKtb0niIUYwiD3IhQG3cPanb7ua6uOObxkxby6WjEMSbPbGsQTAu1ZNrTJ7UR5sV3t TWlWDd4mIjC9lMWozPYCcEVvcZ+mZYZpKJY2hFUvVH/0g2SLHzltUFX07w8LBxEFCPqe yB+9int3+1KgsCOuYZy5nI4hh0kGkGRvgy9QvvvcmnppM+D0/d+ba6LlmotHt1vh7rP7 JoxJJhxo8HN/5LZK2hUVk+NI/Uqu3auLdKsgXVkrqzGtAoluFewTSXgJdSl21mC3Wr+T WyUP8NCJ6rIBjBNPl45vCPEiFB6aOMM5JVVWpMteaeWcJnsQqYzd0fp8bfqWZTVACYkC RAEQ== MIME-Version: 1.0 X-Received: by 10.112.51.44 with SMTP id h12mr948694lbo.111.1358959446539; Wed, 23 Jan 2013 08:44:06 -0800 (PST) Sender: vrwmiller@gmail.com Received: by 10.112.3.68 with HTTP; Wed, 23 Jan 2013 08:44:06 -0800 (PST) In-Reply-To: <82E7A4A3-B65D-4ECA-BEF4-FD67445AF1B2@fisglobal.com> References: <82E7A4A3-B65D-4ECA-BEF4-FD67445AF1B2@fisglobal.com> Date: Wed, 23 Jan 2013 11:44:06 -0500 X-Google-Sender-Auth: jxvWirc2bLtYFiMgk_QyteBpk5M Message-ID: Subject: Re: building crunchgen fails From: Rick Miller To: Devin Teske Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2013 16:44:08 -0000 On Wed, Jan 23, 2013 at 11:01 AM, Devin Teske wrote: > > On Jan 23, 2013, at 7:22 AM, Rick Miller wrote: > >> Hi All, >> >> When executing crunchgen -o boot_crunch.conf && make -f boot_crunch.mk >> I get the following error: >> >> cc -static -o boot_crunch boot_crunch.o hostname.lo pwd.lo rm.lo sh.lo >> ls.lo test.lo cat.lo df.lo sleep.lo camcontrol.lo dhclient.lo >> fsck_ffs.lo ifconfig.lo mount_nfs.lo newfs.lo route.lo rtsol.lo >> tunefs.lo kenv.lo sysctl.lo mdmfs.lo dmesg.lo fdisk.lo bsdlabel.lo >> uname.lo cpio.lo find.lo minigzip.lo sed.lo awk.lo fetch.lo arp.lo >> sysinstall.lo usbconfig.lo grep.lo -lcam -lsbuf -lutil -ll -ledit >> -lfetch -lmd -lcrypt -lftpio -lz -lnetgraph -ldialog -lncurses -ldisk >> -lufs -ldevinfo -lkvm -lgeom -lbsdxml -larchive -lbz2 -lusb -lgnuregex >> -llzma -lssl -lcrypto -ljail -lm >> camcontrol.lo(.text+0x730b): In function `main': >> : undefined reference to `mode_edit' >> camcontrol.lo(.text+0x73fa): In function `main': >> : undefined reference to `mode_list' >> *** Error code 1 >> >> Stop in /tmp/crunchtmp. >> >> I understand that there may need to be some shuffling of the libraries >> in the boot_crunch.conf, but I've done that to no avail. Wondering if >> anyone else may be able to shed some light on this... >> >> The boot_crunch.conf can be viewed at http://pastebin.com/ZwVPQn3h >> > > According to the Makefile, if RELEASE_CRUNCH is defined, then modeedit.o object is omitted (causing your undefined references). > > I perceive the long-term real solution would be to patch camcontrol.c (and pedantically camcontrol.h) to not use mode_edit()/mode_list() when RELEASE_CRUNCH is defined. > > However, you should be able to get through your problem by adjusting your boot_crunch.conf slightly: > > Try http://pastebin.com/Ge6UCZEZ > > The difference being: > > --- boot_crunch.conf.orig 2013-01-03 16:29:20.000000000 -0800 > +++ boot_crunch.conf 2013-01-03 16:29:13.000000000 -0800 > @@ -17,6 +17,7 @@ > > srcdirs /usr/src/sbin > progs camcontrol > +special camcontrol objs camcontrol.o modeedit.o util.o > progs dhclient > progs fsck_ffs > progs ifconfig Thanks, Devin! That worked...which Makefile did you find this in? -- Take care Rick Miller