[uClinux-dev] Compiling Questions

From: The Armadillo with the Mask (armadilo@daft.com)
Date: Tue Jul 25 2000 - 06:36:57 EDT


Hey all, 
I just got uClinux installed on the SIMM today and have a few questions
about developing/porting code in userland to uClinux. 

I am trying to get BIND 8.2.2.5 and dhcp 3.0 built using the uClinux 
development platform but am having some real problems. 
Has anybody done this yet?

Mostly what I'm seeing are linker errors, like so: 
(This is from the BIND 8.2.2.5 tree inside the 'src' directory)
.
.
.
m68k-pic-coff-ranlib ../lib/libbind.a
sleep 1 && touch ../lib/libbind.ts
m68k-pic-coff-ranlib ../lib/libbind_r.a
sleep 1 && touch ../lib/libbindr.ts
make[1]: Leaving directory `/usr/local/packages/bind-dragon/src/lib'
/usr/local/packages/bind-dragon/src/bin
make[1]: Entering directory `/usr/local/packages/bind-dragon/src/bin'
/usr/local/packages/bind-dragon/src/bin/addr
make[2]: Entering directory `/usr/local/packages/bind-dragon/src/bin/addr'

m68k-pic-coff-gcc -D_GNU_SOURCE -fomit-frame-pointer -Werror -o addr
addr.o \ ../../lib/libbind.a -lfl 
         ../../lib/libbind.a: could not read symbols: Archive has no
index; run ranlib to add one 
mv: addr: No such file or directory Can't open addr.coff 
make[2]: *** [addr] Error 1
make[2]: Leaving directory `/usr/local/packages/bind-dragon/src/bin/addr'
make[1]: *** [addr] Error 2 
make[1]: Leaving directory `/usr/local/packages/bind-dragon/src/bin'
make: *** [all] Error 2

Which is really rather curious seeing as how it DID run ranlib on
libbind.a right before running into that error. 

Being new to this particular build environment, I'm wondering how much of
this might be me just not having the Makefile properly tweaked and how
much of this is actually incompatible/broken.

I created my own tree under the BIND dist called "dragon"
with the following in Makefile.set

'CC=m68k-pic-coff-gcc -D_GNU_SOURCE' 
'CDEBUG=-fomit-frame-pointer -Werror'
'DESTSBIN=/usr/local/uClinux/sbin' 
'DESTEXEC=/usr/local/uClinux/sbin'
'DESTMAN=/usr/local/uClinux/man' 
'DESTHELP=/usr/local/uClinux/lib'
'DESTETC=/etc' 
'DESTRUN=/var/run' 
'LEX=flex -8 -I' 
'LD=m68k-pic-coff-ld'
'YACC=yacc -d' 
'SYSLIBS=-lfl' 
'INSTALL=install' 
'MANDIR=man' 
'MANROFF=cat'
'CATEXT=$$N'
 'AR=m68k-pic-coff-ar crus'
'RANLIB=m68k-pic-coff-ranlib'


Thanks for any help you can provide,

-----Steve


This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:15 EDT