Re: [uCsimm] snmpd from coldfire

From: Tom Walsh (tom@cyberiansoftware.com)
Date: Tue May 22 2001 - 11:19:31 EDT


Joaquin Garay wrote:
>
> Hi,
>
> I'm trying to port the snmpd from the coldfire distribution to the
> ucsimm. So far, I've compiled all the objs and tried to link them. Using
> the makefile below, it returns the following error:
>
> snmpd.o(.text+0x3e8):snmpd.c: undefined reference to `__ntohs'
> /opt/uClinux/lib/gcc-lib/m68k-pic-coff/2.7.2.3-pic-060999/libgcc.a(_exit.o):
> In function `exit':
> libgcc2.c(.text+0xc): relocation truncated to fit: DISP16 _cleanup
> snmpd.o(.text+0x3e8):snmpd.c: undefined reference to `__ntohs'
> /opt/uClinux/lib/gcc-lib/m68k-pic-coff/2.7.2.3-pic-060999/libgcc.a(_exit.o):
> In function `exit':
> libgcc2.c(.text+0xc): relocation truncated to fit: DISP16 _cleanup
> mv: cannot stat `snmpd': No such file or directory
> Can't open snmpd.coff
> make: *** [snmpd] Error 1
>

You didn't say which kernel that you are compiling against, the
assumption is that you are using the 2.0.38 kernel? You are missing a
header file somplace. If you do some research on the libc, you will
find that it has no function named 'ntohs', try this: 'grep ntohs
libc.a', nothing found. Now do this: 'find linux/include -type f |
xargs fgrep ntohs', lots of hits. Look at
linux/include/asm/byteorder.h...

TomW

-- 
Tom Walsh - WN3L - Embedded Systems Consultant
'www.openhardware.net', 'www.cyberiansoftware.com'
"Windows? No thanks, I have work to do..."
This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:43 EST