LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-26-2011, 05:48 AM   #1
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Rep: Reputation: 0
Installation Errors freeRadius


hello all, i had a previous thread and asked for help in installing gcc & freeradius..


till now i found no solutions:
here's what i do and what i get

[QUOTE]ftp ftp.freeradius.org
get /pub/freeradius/freeradius-server-2.1.10.tar.gz
/QUOTE]

then
Quote:
gunzip freeradius-server-2.1.10.tar.gz
then

Quote:
tar -xvf freeradius-server-2.1.10.tar

then,

Quote:
./configure --disable-shared --with-gnu-ld
till here everything (should) is fine

Quote:
gmake
i get then some errors:

Quote:
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I/home/radius/freeradius-1.1.7/src/include -I/usr/include/et -c rlm_krb5.c -fPIC -DPIC -o .libs/rlm_krb5.o
rlm_krb5.c:39:18: krb5.h: No such file or directory
rlm_krb5.c:40:21: com_err.h: No such file or directory
rlm_krb5.c:45: error: syntax error before "krb5_context"
rlm_krb5.c:45: warning: no semicolon at end of struct or union
rlm_krb5.c:46: warning: type defaults to `int' in declaration of `rlm_krb5_t'
rlm_krb5.c:46: warning: data definition has no type or storage class
rlm_krb5.c:50: error: syntax error before ')' token
rlm_krb5.c:50: error: initializer element is not constant
rlm_krb5.c:50: error: (near initialization for `module_config[0].offset')
rlm_krb5.c:50: error: initializer element is not constant
rlm_krb5.c:50: error: (near initialization for `module_config[0]')
rlm_krb5.c:52: error: syntax error before ')' token
rlm_krb5.c:52: error: initializer element is not constant
rlm_krb5.c:52: error: (near initialization for `module_config[1].offset')
rlm_krb5.c:52: error: initializer element is not constant
rlm_krb5.c:52: error: (near initialization for `module_config[1]')
rlm_krb5.c:53: error: initializer element is not constant
rlm_krb5.c:53: error: (near initialization for `module_config[2]')
rlm_krb5.c:57: error: syntax error before "context"
rlm_krb5.c: In function `verify_krb5_tgt':
...
...
...
...
...
rlm_krb5.c:302: error: syntax error before "return"
rlm_krb5.c:309: error: syntax error before '&' token
rlm_krb5.c:309: warning: type defaults to `int' in declaration of `krb5_free_cred_contents'
rlm_krb5.c:309: warning: data definition has no type or storage class
rlm_krb5.c:310: warning: type defaults to `int' in declaration of `krb5_cc_destroy'
rlm_krb5.c:310: warning: parameter names (without types) in function declaration
rlm_krb5.c:310: warning: data definition has no type or storage class
rlm_krb5.c:311: error: syntax error before "return"
rlm_krb5.c:315: error: syntax error before '&' token
rlm_krb5.c:315: warning: type defaults to `int' in declaration of `krb5_free_cred_contents'
rlm_krb5.c:315: warning: data definition has no type or storage class
rlm_krb5.c:316: warning: type defaults to `int' in declaration of `krb5_cc_destroy'
rlm_krb5.c:316: warning: parameter names (without types) in function declaration
rlm_krb5.c:316: warning: data definition has no type or storage class
rlm_krb5.c:317: error: syntax error before "return"
rlm_krb5.c:59: warning: 'verify_krb5_tgt' defined but not used
gmake[6]: *** [rlm_krb5.lo] Error 1
gmake[6]: Leaving directory `/home/radius/freeradius-1.1.7/src/modules/rlm_krb5'
gmake[5]: *** [common] Error 2
gmake[5]: Leaving directory `/home/radius/freeradius-1.1.7/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/home/radius/freeradius-1.1.7/src/modules'
gmake[3]: *** [common] Error 2
gmake[3]: Leaving directory `/home/radius/freeradius-1.1.7/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/radius/freeradius-1.1.7/src'
gmake[1]: *** [common] Error 2
gmake[1]: Leaving directory `/home/radius/freeradius-1.1.7'
gmake: *** [all] Error 2

but when it finished, i can found all directories installed, but unfortunatly i can not run the Server with the command
# radiusd
Quote:
bash-3.00# radiusd
bash: radiusd: command not found

so now, if you can find what's the problem and help me i would be greatful, also i want to know if i can find a configuration tool for solaris, similar of YasT in Linux Suse

Thank you all
 
Old 01-26-2011, 06:39 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
You tried to compile something, saw it bomb out with LOADS of errros but tried to install it anyway?? It *very* clearly says it couldn't find krb5.h, so install the kerberos development headers and rebuild again.
 
Old 01-26-2011, 06:46 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,164
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi again,

Quote:
rlm_krb5.c:39:18: krb5.h: No such file or directory
rlm_krb5.c:40:21: com_err.h: No such file or directory
You need to install the kerberos package (krb5-1.8.2) for Solaris 10.
Be careful to install also its dependencies ( openssl-1.0.0c, libiconv, libintl), prior installing krb5-1.8.2
 
Old 01-26-2011, 08:02 AM   #4
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
ok so i guess im getting some progress her, i installed krb5, and openssl...
then i ran the
Quote:
./configure
then
Quote:
gmake
and i got new errors now

Quote:
*** Warning: Linking the shared library rlm_perl.la against the
*** static library /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a is not portable!
gcc -shared -Wl,-h -Wl,rlm_perl-2.1.10.so -o .libs/rlm_perl-2.1.10.so .libs/rlm_perl.o -R/home/radius/freeradius-server-2.1.10/src/lib/.libs -R/usr/local/lib -R/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE /home/radius/freeradius-server-2.1.10/src/lib/.libs/libfreeradius-radius.so /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a -L/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE -lperl -ldl -lm -lc -lnsl -lresolv -lsocket -lposix4 -lpthread -lc
Text relocation remains referenced
against symbol offset in file
.rodata1 0x6 /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
my_cxt 0x13 /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
my_cxt 0x1a /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
.rodata1 0x1f /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
my_cxt 0x39 /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
my_cxt 0x95 /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
.rodata1 0x107 /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
my_cxt 0x176 /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
.data1 0x1dd /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
.rodata1 0x247 /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
.data1 0x303
....
....
....
....
dlerror 0x427 /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
dlclose 0x2a0 /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
dlsym 0x3cd /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
atoi 0x31 /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
strcmp 0x7ac /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
getenv 0x24 /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
gmake[6]: *** [rlm_perl.la] Error 1
gmake[6]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules/rlm_perl'
gmake[5]: *** [rlm_perl] Error 2
gmake[5]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules'
gmake[3]: *** [modules] Error 2
gmake[3]: Leaving directory `/home/radius/freeradius-server-2.1.10/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/radius/freeradius-server-2.1.10/src'
gmake[1]: *** [src] Error 2
gmake[1]: Leaving directory `/home/radius/freeradius-server-2.1.10'
gmake: *** [all] Error 2


so guys, any suggestions? thanks
 
Old 01-26-2011, 08:28 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,164
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
ok so i guess im getting some progress her, i installed krb5, and openssl...
I guess you've installed them from sunfreeware. Mind that you need to install all their dependencies, libintl and libiconv



Quote:
then i ran the
./configure
then
gmake
and i got new errors now

<snip>
ld: fatal: relocations remain against allocatable but non-writable sections

snip>
This is the same error you got in your other thread. Did you used the "--with-gnu-ld" in ./configure, or you ran just plain ./configure? Note that before running the ./configure script, you should run "make distlcean" or "make clean" to clean your sources.

PS: Don't use that font color in your posts because it's difficult to read. Thx
 
Old 01-27-2011, 04:00 AM   #6
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
yes i've tried using "--with-gnu-ld" and installed all dependencies like "libintl" and "libiconv"
i still get the same error

Quote:
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
gmake[6]: *** [rlm_perl.la] Error 1
gmake[6]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules/rlm_perl'
gmake[5]: *** [rlm_perl] Error 2
gmake[5]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules'
gmake[3]: *** [modules] Error 2
gmake[3]: Leaving directory `/home/radius/freeradius-server-2.1.10/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/radius/freeradius-server-2.1.10/src'
gmake[1]: *** [src] Error 2
gmake[1]: Leaving directory `/home/radius/freeradius-server-2.1.10'
gmake: *** [all] Error 2
 
Old 01-27-2011, 07:16 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,164
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

After a little search it looks like this is a known problem with the perl module in Solaris. Even though the developer claims that it's fixed (indeed I could compile freeradius on a Sparc Solaris 10), it still exists in Solaris_x86.
If you don't need the perl module you can delete raddb/modules/perl and the directory src/modules/rlm_perl. It will compile just fine afterwards.
If you need the perl module, better contact the developer to see if he can help you more on this

Regards
 
1 members found this post helpful.
Old 01-27-2011, 07:38 AM   #8
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Hi,

After a little search it looks like this is a known problem with the perl module in Solaris. Even though the developer claims that it's fixed (indeed I could compile freeradius on a Sparc Solaris 10), it still exists in Solaris_x86.
If you don't need the perl module you can delete raddb/modules/perl and the directory src/modules/rlm_perl. It will compile just fine afterwards.
If you need the perl module, better contact the developer to see if he can help you more on this

Regards
thank you for giving me much time,

actually it worked well now
..but... i still cannot run the server

Quote:

bash-3.00# radiusd -X
bash: radiusd: command not found
 
Old 01-27-2011, 08:24 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,164
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Did you ran gmake install after gmake finishes?
If yes, use
Code:
/usr/local/radius/sbin/radiusd -X
 
Old 01-27-2011, 08:30 AM   #10
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Did you ran gmake install after gmake finishes?
If yes, use
Code:
/usr/local/radius/sbin/radiusd -X

yes i did


Quote:
bash-3.00# /usr/local/radius/sbin/radiusd -X
bash: /usr/local/radius/sbin/radiusd: No such file or directory
 
Old 01-27-2011, 08:32 AM   #11
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
i found the following path


/usr/local/sbin/radiusd

radiusd exist, but it isn't running
 
Old 01-27-2011, 08:48 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,164
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
What happens when you run:
Code:
/usr/local/sbin/radiusd -X
If it fails, it should give some errors.
I'm not familiar with freeradius, but maybe you have to configure it first.
 
Old 01-27-2011, 08:53 AM   #13
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
What happens when you run:
Code:
/usr/local/sbin/radiusd -X
If it fails, it should give some errors.
I'm not familiar with freeradius, but maybe you have to configure it first.






Quote:
bash-3.00# /usr/local/sbin/radiusd -X
ld.so.1: radiusd: fatal: libkrb5.so.3: open failed: No such file or directory
Killed

no need for any configuration ti run it, its concept is to configure it, and make a restart/reload to apply changes thats it
 
Old 01-27-2011, 09:04 AM   #14
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,164
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
So it cannot find the kerberos libraries
Run:
Code:
export LD_LIBRARY_PATH=/usrlocal/lib:$LD_LIBRARY_PATH
and try again
 
Old 01-28-2011, 03:35 AM   #15
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
i still get the same error message
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeRadius radiusd -X errors jspsandhu Linux - Security 2 11-27-2005 02:12 AM
freeradius installation problem..... kartheekpn Linux - Software 1 07-29-2005 08:30 AM
ERRORS with FreeRADIUS installation on FEDORA CORE 1 jspsandhu Linux - Security 3 06-26-2005 01:27 AM
Errors on installing FreeRADIUS jspsandhu Linux - Software 0 06-02-2005 05:54 PM
can't get anywhere with Freeradius installation mlbasso Linux - Networking 0 09-17-2004 09:34 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration