Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
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
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.