Re: [uClinux-dev] New version of uClinux/ColdFire sources

From: The Armadillo with the Mask (armadilo@daft.com)
Date: Sun Aug 06 2000 - 06:40:42 EDT


On Fri, 4 Aug 2000, Greg Ungerer wrote:

> > -o raw. o raw.c
> > In file included from ../includes/dhcpd.h:67,
> >                  from raw.c:60:
> > ../includes/tree.h:82: parse error before `TIME'
> > ../includes/tree.h:82: warning: no semicolon at end of struct or
> > union ../includes/tree.h:89: parse error before `TIME'
> > ../includes/tree.h:89: warning: no semicolon at end of struct or union
> > ../includes/tree.h:94: parse error before `}'
> > .
> > .
> > .
> > .
> > and on and on ad infinitum. There are of course, ;'s and closing braces
> > in the appropriate places from what I can tell.
> > 
> > I'm using the toolchain that comes with the uClinux CD.
> 
> Well, a quick serach around the dhcp source shows that TIME
> is defined in ~/includes/cf/linux.h, and that this is included
> from dhcpd.h, only if "linux" is DEFINEd. Try adding a "-Dlinux"
> to your gcc line.

Got it...that did the trick for compilation. I'm still having linker
problems though. 

To wit:

m68k-pic-coff-gcc -fPIC -Dlinux -D__linux__ -Dunix -DEMBED -o dhcpd
dhcpd.o dhcp.o bootp.o confpars.o db.o ../common/libdhcp.a
/opt/uClinux/m68k-pic-coff/bin/gld: region a5world is full (dhcpd section
.bss) 
dhcpd.o: In function `main': dhcpd.c:107: undefined reference to
`openlog' 
dhcpd.c:113: undefined reference to `setlogmask' 
dhcpd.c:130: undefined reference to `__ntohs' 
dhcpd.c:131: undefined reference to `__ntohs' 
dhcpd.c:199: undefined reference to `__ntohs' 
dhcpd.c:211: undefined reference to `__ntohs'
dhcpd.c(.text+0x76a): undefined reference
to `__ntohs'
dhcp.o:dhcp.c:518: more undefined references to `__ntohs' follow

I went and got Tom Walsh's RPM for m68k-pic-coff and installed that and
the replacement crt0.o. That got rid of the DISP16 messages I was seeing
but there's obviously still problems. 

I've seen this kind of behavior over in the Palm world with the old
prc-tools-0.50. Has anybody tried building uClinux stuff with the
prc-tools 2.0 release yet?

Thanks again,

----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