About 2 minutes before your email came in I just stumbled across
something similar. Here's exactly what I had to do:
1. build binutils:
options --target=sparcv9-sun-solaris2
2. build gcc:
options -host=sparcv9-sun-solaris2 --with-gnu-as --with-gnu-ar
--with-as=/path-to/as --with-ar=/path-to/ar
3. OHOME=/path-to/oraclehome
LD_LIBRARY_PATH=/lib:/path-to-gcc/lib
export OHOME LD_LIBRARY_PATH
4. build freeradius:
- options are only specific to my install. nothing fancy occurred
5. deploy!
Thanks a tonne for all your help. I hope this list is useful to the
next person. Note, to those interested in compiling the gcc for solaris
(repeatably), I will be posting a document on my website
(www.gnupower.net) in the upcoming week/month depending on time.
cheers,
--ck
> Here is what I do to set a 64-bit solaris env:
>
> ( assuming you've installed 64-bit version of gcc in /usr/local/gcc-v9 )
>
> PATH=/usr/local/gcc-v9/bin:$PATH
> LD_LIBRARY_PATH=/usr/local/gcc-v9/lib:$LD_LIBRARY_PATH
> CFLAGS="-mcpu=v9 -Wa,-xarch=v9a"
> CXXFLAGS=$CFLAGS
> export PATH LD_LIBRARY_PATH CFLAGS CXXFLAGS
>
> >And that was great. Except I've got this new issue where I can't use
> >libcrypt.so because of a linker error. Here's my new error and the gcc
> >line that's generating it. I haven't compiled glibc on Solaris yet (and
> >so far I'm happily avoiding it).
> >
> >gcc .libs/radiusdS.o -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
> >-Wall -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 conffile.o modules.o modcall.o session.o xlat.o
> >threads.o smux.o radius_snmp.o client.o request_list.o mainconfig.o
> >-L/export/home/chayim/freeradius/src/lib
> >/export/home/chayim/freeradius/src/lib/.libs/libradius.so -lcrypt
> >/export/home/chayim/freeradius/libltdl/.libs/libltdl.so -ldl -lnsl
> >-lresolv -lsocket -lposix4 -lpthread -R/shared/toolchain//lib
> >ld: fatal: file /lib/libcrypt.so: wrong ELF class: ELFCLASS32
> >ld: fatal: File processing errors. No output written to .libs/radiusd
> >collect2: ld returned 1 exit status
>
> Note that you above set '/lib' explicitly to be the first place for
> ld to look. Try removing the '/lib' from the front of your LD_LIBRARY_PATH.
>
> -Chris
> --
> \\\|||/// \ StarNet Inc. \ Chris Parker
> \ ~ ~ / \ WX *is* Wireless! \ Director, Engineering
> | @ @ | \ http://www.starnetwx.net \ (847) 963-0116
> oOo---(_)---oOo--\------------------------------------------------------
> \ Wholesale Internet Services - http://www.megapop.net
>
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html