Hello All,

It's my first post so wanted to say hello to everybody. I'm doing a port of
user app "opennhrp" onto an arm platform and seems to be running into a
c-ares library problem (Ubuntu package: libc-ares-dev).

Part of my Makefile where I replace standard gcc with arm gcc looks as
below:
#CC             := $(CROSS_COMPILE)gcc
#LD             := $(CROSS_COMPILE)ld

# !!!!!!!!!!!!!! snapgear replacements !!!!!!!!!!!!!!!!!!!!!!!!!!
#
# snapgear cross-compilation
CC              := ucfront-gcc arm-linux-gcc -mbig-endian  # ucfront and arm
c compiler and big endian
LD              := ucfront-ld arm-linux-ld                 # ucfront and arm
linker
AR              := arm-linux-ar r                          # binary
utilities for subroutines in archived libs
STRIP           := arm-linux-strip                      # strips the symbols
from object files


when compiling the following error apears:
CC      nhrp/admin.o
  CC      nhrp/libev.o
  CC      nhrp/nhrp_address.o
nhrp/nhrp_address.c:22:26: ares_version.h: No such file or directory
nhrp/nhrp_address.c: In function `ares_io_cb':
nhrp/nhrp_address.c:63: error: `ares_socket_t' undeclared (first use in this
function)
nhrp/nhrp_address.c:63: error: (Each undeclared identifier is reported only
once
nhrp/nhrp_address.c:63: error: for each function it appears in.)
nhrp/nhrp_address.c:63: error: parse error before "rfd"
nhrp/nhrp_address.c:66: error: `rfd' undeclared (first use in this function)
nhrp/nhrp_address.c:68: error: `wfd' undeclared (first use in this function)
nhrp/nhrp_address.c:70: warning: implicit declaration of function
`ares_process_fd'
nhrp/nhrp_address.c: At top level:
nhrp/nhrp_address.c:73: error: parse error before "ares_socket_t"
nhrp/nhrp_address.c:75: warning: function declaration isn't a prototype
nhrp/nhrp_address.c: In function `ares_socket_cb':
nhrp/nhrp_address.c:76: error: `data' undeclared (first use in this
function)
nhrp/nhrp_address.c:79: error: `readable' undeclared (first use in this
function)
nhrp/nhrp_address.c:81: error: `writable' undeclared (first use in this
function)
nhrp/nhrp_address.c:85: error: `fd' undeclared (first use in this function)
nhrp/nhrp_address.c: In function `nhrp_address_resolve_cancel':
nhrp/nhrp_address.c:258: warning: implicit declaration of function
`ares_cancel'
nhrp/nhrp_address.c: In function `nhrp_address_init':
nhrp/nhrp_address.c:427: error: structure has no member named
`sock_state_cb'
nhrp/nhrp_address.c:428: error: structure has no member named
`sock_state_cb_data'
nhrp/nhrp_address.c:432: error: `ARES_OPT_SOCK_STATE_CB' undeclared (first
use in this function)


Have anybody of you came across this problem before?

Thanks a million,
Marek
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to