Date: Wed, 23 Jan 2013 08:01:12 -0800 From: Devin Teske <devin.teske@fisglobal.com> To: Rick Miller <vmiller@hostileadmin.com> Cc: Devin Teske <dteske@freebsd.org>, FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: building crunchgen fails Message-ID: <82E7A4A3-B65D-4ECA-BEF4-FD67445AF1B2@fisglobal.com> In-Reply-To: <CAHzLAVHKXxP6Hb7%2BZxv857X1eJeG3CmghcJzKukH6w_U8cJTnw@mail.gmail.com> References: <CAHzLAVHKXxP6Hb7%2BZxv857X1eJeG3CmghcJzKukH6w_U8cJTnw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 23, 2013, at 7:22 AM, Rick Miller wrote: > 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 http://pastebin.com/ZwVPQn3h >=20 According to the Makefile, if RELEASE_CRUNCH is defined, then modeedit.o ob= ject 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 b= oot_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 @@ =20 srcdirs /usr/src/sbin progs camcontrol +special camcontrol objs camcontrol.o modeedit.o util.o progs dhclient progs fsck_ffs progs ifconfig --=20 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?82E7A4A3-B65D-4ECA-BEF4-FD67445AF1B2>