<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, May 6, 2014 at 10:33 AM, Mohd Alkhaldi <span dir="ltr"><<a href="mailto:alwaadalhaq@gmail.com" target="_blank">alwaadalhaq@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi, <br></div><div>In the beginning the compilation failed with the following error:<br> /oracle/software/adsl/freeradius-server-2.2.5/src/freeradius-devel/libradius.h:408: error: syntax error before "sig_t"<br>
<br></div><div>To fix this error, I've added the following line in libradius.h after "#include <signal.h>" <br>typedef void *sig_t;<br><br></div><div>Again compilation failed with the following error:<div class="">
<br>
ld: fatal: file .libs/debug.o: wrong ELF class: ELFCLASS64<br>ld: fatal: File processing errors. No output written to .libs/libfreeradius-radius--m64.so<br>collect2: ld returned 1 exit status<br></div>gmake[4]: *** [<a href="http://libfreeradius-radius.la" target="_blank">libfreeradius-radius.la</a>] Error 1<br>
<br></div><div>* Note even with 3.0.2 same error.<br><br></div></div></blockquote><div><br></div><div><br></div><div>In my past experience with solaris, the first question if you want to compile anything in 64bit is "why".</div>
<div><br></div><div>Solaris promotes the use of 32 bit userland whenever possible, allowing the same root filesystem to be used by both 32-bit and 64-bit kernel. Plus, if you use sparc (I assume you do, since you'll have many other OS options if you had used x86), and your programs use less than 2GB of memory, there might not be any percievable benefit by compiling it as 64bit. This is different from x86 where the the 64bit extension can speed up some programs due to additional CPU registers available.</div>
<div><br></div><div>Next, I usually had to add "export CFLAGS=-m64" before running ./configure. From a quick glance at your error message, it looks like some parts are compiled as 32bit while others 64bit, so specifically forcing -m64 might help.</div>
<div><br></div><div>Not sure about sig_t error, but if it were me I'd try using latest gcc first.</div><div><br></div><div>-- </div><div>Fajar</div><div><br></div><div><br></div></div></div></div>