Need some help building bootcrunch

2012-05-30 Thread Rick Miller
Hi All,

I am attempting to build a bootcrunch file that I will inject into an
mfsroot.  I'm unable to get it built completely and hoping someone
might be able to help me identify the issue.

crunchgen runs and exits without issue.  Running make fails with the
following error indicating it's not able to find, presumably, libmd
which exists.

/usr/lib/libfetch.a(http.o)(.text+0x8c0): In function
`http_authorize':: undefined reference to `MD5Init'
/usr/lib/libfetch.a(http.o)(.text+0x8d5): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x8e7): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x8fc): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x90e): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x923): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x933): In function
`http_authorize':: undefined reference to `MD5Final'
/usr/lib/libfetch.a(http.o)(.text+0x991): In function
`http_authorize':: undefined reference to `MD5Init'
/usr/lib/libfetch.a(http.o)(.text+0x9a3): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x9b5): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x9ca): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0x9f9): In function
`http_authorize':: undefined reference to `MD5Final'
/usr/lib/libfetch.a(http.o)(.text+0xa11): In function
`http_authorize':: undefined reference to `MD5Init'
/usr/lib/libfetch.a(http.o)(.text+0xa21): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xa33): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xa48): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xa5a): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xa88): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xa93): In function
`http_authorize':: undefined reference to `MD5Final'
/usr/lib/libfetch.a(http.o)(.text+0xcc0): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xcd2): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xd1c): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xd2e): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xd47): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xd59): more undefined references to
`MD5Update' follow
/usr/lib/libfetch.a(http.o)(.text+0xdaa): In function
`http_authorize':: undefined reference to `MD5Init'
/usr/lib/libfetch.a(http.o)(.text+0xdbf): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xdd1): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xdea): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xdfc): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xe46): In function
`http_authorize':: undefined reference to `MD5Update'
/usr/lib/libfetch.a(http.o)(.text+0xe56): In function
`http_authorize':: undefined reference to `MD5Final'
*** Error code 1

Stop in bootcrunch.

This is the bootcrunch.conf (as you can see, -lmd exists on the libs lines):

buildopts -DRELEASE_CRUNCH -Dlint

srcdirs /usr/src/bin
progs hostname
progs pwd
progs rm
progs sh
progs ls
progs test
progs cat
progs df
progs sleep
ln sh -sh
ln test [

srcdirs /usr/src/sbin
#progs camcontrol
progs dhclient
progs fsck_ffs
progs ifconfig
progs mount_nfs
progs newfs
progs route
progs rtsol
progs tunefs
progs kenv
progs sysctl
progs mdmfs
progs dmesg
ln fsck_ffs fsck_4.2bsd
ln fsck_ffs fsck_ufs

srcdirs /usr/src/usr.bin
progs uname
progs cpio
progs find
progs minigzip
progs sed
progs awk
progs fetch
progs ifconfig
ln minigzip gzip
ln minigzip gunzip
ln minigzip zcat

srcdirs /usr/src/usr.sbin
progs arp
progs sysinstall
progs usbconfig

srcdirs /usr/src/gnu/usr.bin
progs grep

libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
libs -ldialog -lncurses -ldisk -lcam -lsbuf -lutil -lufs -ldevinfo -lkvm
libs -lbsdxml -larchive -lbz2 -lusb -lgnuregex -lz -llzma
libs -lfetch -lmd -lssl -lcrypto -ljail -lm

-- 
Take care
Rick Miller
___
freebsd-questions@freebsd.org mailing list

Re: Need some help building bootcrunch

2012-05-30 Thread Rick Miller
I changed some things around in the bootcrunch.conf and got it to
work.  It was building 'fetch'.  I moved -lfetch before -lmd and it
compiled fine.

On Wed, May 30, 2012 at 10:36 AM, Rick Miller vmil...@hostileadmin.com wrote:
 Hi All,

 I am attempting to build a bootcrunch file that I will inject into an
 mfsroot.  I'm unable to get it built completely and hoping someone
 might be able to help me identify the issue.

 crunchgen runs and exits without issue.  Running make fails with the
 following error indicating it's not able to find, presumably, libmd
 which exists.

 /usr/lib/libfetch.a(http.o)(.text+0x8c0): In function
 `http_authorize':: undefined reference to `MD5Init'
 /usr/lib/libfetch.a(http.o)(.text+0x8d5): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0x8e7): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0x8fc): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0x90e): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0x923): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0x933): In function
 `http_authorize':: undefined reference to `MD5Final'
 /usr/lib/libfetch.a(http.o)(.text+0x991): In function
 `http_authorize':: undefined reference to `MD5Init'
 /usr/lib/libfetch.a(http.o)(.text+0x9a3): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0x9b5): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0x9ca): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0x9f9): In function
 `http_authorize':: undefined reference to `MD5Final'
 /usr/lib/libfetch.a(http.o)(.text+0xa11): In function
 `http_authorize':: undefined reference to `MD5Init'
 /usr/lib/libfetch.a(http.o)(.text+0xa21): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xa33): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xa48): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xa5a): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xa88): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xa93): In function
 `http_authorize':: undefined reference to `MD5Final'
 /usr/lib/libfetch.a(http.o)(.text+0xcc0): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xcd2): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xd1c): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xd2e): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xd47): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xd59): more undefined references to
 `MD5Update' follow
 /usr/lib/libfetch.a(http.o)(.text+0xdaa): In function
 `http_authorize':: undefined reference to `MD5Init'
 /usr/lib/libfetch.a(http.o)(.text+0xdbf): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xdd1): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xdea): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xdfc): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xe46): In function
 `http_authorize':: undefined reference to `MD5Update'
 /usr/lib/libfetch.a(http.o)(.text+0xe56): In function
 `http_authorize':: undefined reference to `MD5Final'
 *** Error code 1

 Stop in bootcrunch.

 This is the bootcrunch.conf (as you can see, -lmd exists on the libs lines):

 buildopts -DRELEASE_CRUNCH -Dlint

 srcdirs /usr/src/bin
 progs hostname
 progs pwd
 progs rm
 progs sh
 progs ls
 progs test
 progs cat
 progs df
 progs sleep
 ln sh -sh
 ln test [

 srcdirs /usr/src/sbin
 #progs camcontrol
 progs dhclient
 progs fsck_ffs
 progs ifconfig
 progs mount_nfs
 progs newfs
 progs route
 progs rtsol
 progs tunefs
 progs kenv
 progs sysctl
 progs mdmfs
 progs dmesg
 ln fsck_ffs fsck_4.2bsd
 ln fsck_ffs fsck_ufs

 srcdirs /usr/src/usr.bin
 progs uname
 progs cpio
 progs find
 progs minigzip
 progs sed
 progs awk
 progs fetch
 progs ifconfig
 ln minigzip gzip
 ln minigzip gunzip
 ln minigzip zcat

 srcdirs /usr/src/usr.sbin
 progs arp
 progs sysinstall
 progs usbconfig

 srcdirs /usr/src/gnu/usr.bin
 progs grep

 libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph