From owner-freebsd-questions@FreeBSD.ORG Wed Jan 23 18:20:15 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 336901F1; Wed, 23 Jan 2013 18:20:15 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 01B10694; Wed, 23 Jan 2013 18:20:14 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.16]) by ltcfislmsgpa06.fnfis.com (8.14.5/8.14.5) with ESMTP id r0NIK0LO002535 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 23 Jan 2013 12:20:11 -0600 Received: from [10.0.0.102] (10.14.152.7) by smtp.fisglobal.com (10.132.206.16) with Microsoft SMTP Server (TLS) id 14.2.309.2; Wed, 23 Jan 2013 12:19:46 -0600 Subject: Re: building crunchgen fails MIME-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset="iso-8859-1" From: Devin Teske In-Reply-To: Date: Wed, 23 Jan 2013 10:19:44 -0800 Content-Transfer-Encoding: quoted-printable Message-ID: <662D7C34-8A06-412D-9319-C988D8242156@fisglobal.com> References: <82E7A4A3-B65D-4ECA-BEF4-FD67445AF1B2@fisglobal.com> To: Rick Miller X-Mailer: Apple Mail (2.1283) X-Originating-IP: [10.14.152.7] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.9.8327, 1.0.431, 0.0.0000 definitions=2013-01-23_06:2013-01-23,2013-01-23,1970-01-01 signatures=0 Cc: Devin Teske , FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Devin Teske List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2013 18:20:15 -0000 On Jan 23, 2013, at 8:44 AM, Rick Miller wrote: > On Wed, Jan 23, 2013 at 11:01 AM, Devin Teske = wrote: >>=20 >> On Jan 23, 2013, at 7:22 AM, Rick Miller wrote: >>=20 >>> Hi All, >>>=20 >>> When executing crunchgen -o boot_crunch.conf && make -f boot_crunch.mk >>> I get the following error: >>>=20 >>> 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 >>>=20 >>> Stop in /tmp/crunchtmp. >>>=20 >>> 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... >>>=20 >>> The boot_crunch.conf can be viewed at https://urldefense.proofpoint.com= /v1/url?u=3Dhttp://pastebin.com/ZwVPQn3h&k=3D%2FbkpAUdJWZuiTILCq%2FFnQg%3D%= 3D%0A&r=3DMrjs6vR4%2Faj2Ns9%2FssHJjg%3D%3D%0A&m=3DHnn4NG9Hyf8%2F%2F0%2FFE6h= jIC649weMNcRXdV4V8oYmXGs%3D%0A&s=3Da3915bb0ab3862b707fc373a12f153257c6a06b1= ee05925c9714f88fc81d783b >>>=20 >>=20 >> According to the Makefile, if RELEASE_CRUNCH is defined, then modeedit.o= object is omitted (causing your undefined references). >>=20 >> I perceive the long-term real solution would be to patch camcontrol.c (a= nd pedantically camcontrol.h) to not use mode_edit()/mode_list() when RELEA= SE_CRUNCH is defined. >>=20 >> However, you should be able to get through your problem by adjusting you= r boot_crunch.conf slightly: >>=20 >> Try https://urldefense.proofpoint.com/v1/url?u=3Dhttp://pastebin.com/Ge6= UCZEZ&k=3D%2FbkpAUdJWZuiTILCq%2FFnQg%3D%3D%0A&r=3DMrjs6vR4%2Faj2Ns9%2FssHJj= g%3D%3D%0A&m=3DHnn4NG9Hyf8%2F%2F0%2FFE6hjIC649weMNcRXdV4V8oYmXGs%3D%0A&s=3D= 27ceca7c7f03287568ea4d5c6af082fdf0e1182cdd8b90841429dd7d55752e42 >>=20 >> The difference being: >>=20 >> --- 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 @@ >>=20 >> srcdirs /usr/src/sbin >> progs camcontrol >> +special camcontrol objs camcontrol.o modeedit.o util.o >> progs dhclient >> progs fsck_ffs >> progs ifconfig >=20 > Thanks, Devin! That worked...which Makefile did you find this in? >=20 sbin/camcontrol/Makefile --=20 Cheers, Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.