On Thu, Jul 22, 2004 at 05:32:12PM +0800, pengjie wrote: > hi,guys, > > i want to crosscompile freeradius. my host is RH9.0, my target is xscale with > montavista linux. > > i had crosscompiled freeradius-0.5 successfully previous. now i want to upgrade to > freeradius-1.0.0-pre3. but i meet some problem. > > when crosscompilling in freeradius-1.0.0-pre3/src/main, it shows following: > > xscale_be-gcc .libs/radiusdS.o -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS > -DOPENSSL_NO_KRB5 -I../include -DHOSTINFO=\"\" -DRADIUSD_VERSION=\"1.0.0-pre3\" -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 conffile.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/root/radius1.0.0-pre/freeradius-1.0.0-pre3/src/lib -lcrypt > -lnsl -lresolv -lpthread -lcrypto -lssl > /root/radius1.0.0-pre/freeradius-1.0.0-pre3/src/lib/.libs/libradius.so > /usr/lib/libsnmp.so /usr/lib/libltdl.so -ldl -lcrypt -Wl,--rpath -Wl,/usr/local/lib > /usr/lib/libsnmp.so: could not read symbols: Invalid operation > collect2: ld returned 1 exit status > > the directory /usr/lib is my host's system lib dir, libraries in this directory is > for x86, i think it should to use my target's system lib dir.that is montavista's > dir which in other directory.
> where can i change directory /usr/lib to /montavista/usr/lib? Try a CVS nightly snapshot. It's a new autoconf system, using the much more modern autoconf2.5, which is better at cross-compiling. -- Paul "TBBle" Hampson, on an alternate email client. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html