Looks like you're trying to link against an existing library on your x86 build machine
i.e. in /usr/lib
You need to ensure you include the library path for your ARM libraries check the documentation for the cross-compiler re: PATH setup
make sure there's a libltdl.so in your ARM tool chain as well
From: °ê¨} <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> Subject: cross-compiler freeradius to arm Date: Wed, 1 Oct 2003 16:29:32 +0800
Dear all:
I want to cross compiler freeradius to a arm platform,but i have some problems.
Below is my method and problems:
1.i use ./configure to generate Make.inc and libltool and other files.
2.i change some parameter in Make.inc:
CC = arm-linux-gcc
LIBS = -lresolv -lpthread #-lnsl
i mark #-lnsl because arm-linux-gcc can't find -lnsl.
[EMAIL PROTECTED] leo]# arm-linux-ld -lnsl
arm-linux-ld: cannot find -lnsl
3.i change some parameter in libtool AR="/home/leo/opt/toolchain/arm/gcc-3.2/toolchain/bin/arm-linux-ar" LD="/home/leo/opt/toolchain/arm/gcc-3.2/toolchain/bin/arm-linux-ld" NM="/home/leo/opt/toolchain/arm/gcc-3.2/toolchain/bin/arm-linux-nm -B" AS="/home/leo/opt/toolchain/arm/gcc-3.2/toolchain/bin/arm-linux-as"
# Compile-time system search path for libraries sys_lib_search_path_spec="/home/leo/opt/toolchain/arm/gcc-3.2/toolchain/lib"
# Run-time system search path for libraries sys_lib_dlsearch_path_spec="/home/leo/opt/toolchain/arm/gcc-3.2/toolchain/lib"
4.then i keyin make to makefile,but i see the error message:
arm-linux-gcc .libs/radiusdS.o -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W
all -D_GNU_SOURCE -DNDEBUG -I../include -o .libs/radiusd radiusd.o files.o util.
o acct.o nas.o log.o valuepair.o version.o proxy.o exec.o auth.o timestr.o conff
ile.o modules.o modcall.o session.o xlat.o threads.o smux.o radius_snmp.o client
.o request_list.o mainconfig.o -Wl,--export-dynamic -L/home/leo/freeradius-0.9.
0/src/lib -lcrypt -lresolv -lpthread /home/leo/freeradius-0.9.0/src/lib/.libs/li
bradius.so /usr/lib/libltdl.so -ldl -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -
Wl,/usr/lib
/usr/lib/libltdl.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
gmake[4]: *** [radiusd] Error 1
gmake[4]: Leaving directory `/home/leo/freeradius-0.9.0/src/main'
gmake[3]: *** [common] Error 1
gmake[3]: Leaving directory `/home/leo/freeradius-0.9.0/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/leo/freeradius-0.9.0/src'
gmake[1]: *** [common] Error 1
gmake[1]: Leaving directory `/home/leo/freeradius-0.9.0'
make: *** [all] Error 2
i think i have already compile all c files to .o files ok..
but the radius need some dynamic link files.. like libltdl.so.
i use file to see libltdl.so
[EMAIL PROTECTED] /]# cd usr/lib
[EMAIL PROTECTED] lib]# file libltdl.so
libltdl.so: symbolic link to libltdl.so.3.1.0
[EMAIL PROTECTED] lib]# file libltdl.so.3.1.0
libltdl.so.3.1.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
i know the libltdl.so must in ARM not Intel 80386, but idon't know how to fix it...
anyone can help me???
thank you for your help~~
Leo
_________________________________________________________________ Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html