Solaris 10 - Zone Compiling FreeRadius 2.04
Need some help compiling FreeRadius on Solaris 10 in a Sparse root zone. Goal My end goal to use an oracle 11G database that is installed and configured on the radius server. I have included all *hopefully* information needed.. - FreeRADIUS Version 2.04 - Sparc - Solaris 10 05/08 SunOS sm1gw1 5.10 Generic_127127-11 sun4v sparc SUNW,Sun-Fire-T200 Solaris SunFreeware installed packages -- coreutils-6.4 -- gcc-3.4.6 -- gdbm-1.8.3 -- libtool-1.5.24 -- libiconv-1.11 -- make-3.81 -- mysql-5.0.51 -- netsnmp-5.4.1 --openssl-0.9.8h -- sasl-2.1.21 -- zlib-1.2.3 PATH /local:/usr/local:/usr/local/bin:/bin:/usr/local/lib:/usr/libexec:/usr/local/libexec:/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/ccs/bin:/usr/sfw/bin Configure options: sm1gw1# pwd /export/packages/freeradius-server-2.0.4 ./configure \ --prefix=/usr/local \ --with-openssl=yes \ --with-openssl-dir=/usr/local/ssl \ --with-openssl-includes=/usr/local/ssl/include \ --with-mysql-dir=/usr/local/mysql \ --with-mysql-lib-dir=/usr/local/mysql/lib \ --with-oracle-home-dir=/usr/local/oracle/product/11G>config.out 2>&1 The output from config.out and config.log are too large for the list so I have posted here: http://kewlcat.com/config.out
thekat wrote:
Need some help compiling FreeRadius on Solaris 10 in a Sparse root zone.
Can you say what's going wrong?
The output from config.out and config.log are too large for the list so I have posted here:
Why? Are we supposed to read 1000's of lines of output? You've explained what you want. That's good. Now explain what is happening, and what you expect to happen. Alan DeKok.
Need some help compiling FreeRadius on Solaris 10 in a Sparse root zone.
Can you say what's going wrong?
rlm_sql_oracle is not compiling I have the errors here...
The output from config.out and config.log are too large for the list so I have posted here:
Why? Are we supposed to read 1000's of lines of output?
No, I just thought by posting *all* the output it would help, but I should have posted the Warnings in my original post..
You've explained what you want. That's good. Now explain what is happening, and what you expect to happen.
- For some reason, the compile is not finding openssl even though I have incluced it in the ./configure. - Oracle home is also not being found I am trying to configure rlm_sql_oracle and that it is some how dependent on rlm_sql Here are the warnings / output.. configure: WARNING: pcap library not found, silently disabling the RADIUS sniffer. config.status: WARNING: ./Make.inc.in seems to ignore the --datarootdir setting config.status: WARNING: ./src/include/build-radpaths-h.in seems to ignore the --datarootdir setting chmod: cannot access `check-radiusd-config': No such file or directory configure: WARNING: silently not building rlm_eap_ikev2. configure: WARNING: FAILURE: rlm_eap_ikev2 requires: libeap-ikev2 EAPIKEv2/connector.h. configure: WARNING: silently not building rlm_eap_tls. configure: WARNING: FAILURE: rlm_eap_tls requires: OpenSSL. configure: WARNING: silently not building rlm_eap_peap. configure: WARNING: FAILURE: rlm_eap_peap requires: OpenSSL. configure: WARNING: the TNCS library isn't found! configure: WARNING: silently not building rlm_eap_tnc. configure: WARNING: FAILURE: rlm_eap_tnc requires: -lTNCS. configure: WARNING: silently not building rlm_eap_ttls. configure: WARNING: FAILURE: rlm_eap_ttls requires: OpenSSL. configure: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found! configure: WARNING: the comm_err library isn't found! configure: WARNING: silently not building rlm_krb5. configure: WARNING: FAILURE: rlm_krb5 requires: krb5.h. configure: WARNING: silently not building rlm_ldap. configure: WARNING: FAILURE: rlm_ldap requires: libldap_r. configure: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: openssl/des.h: proceeding with the compiler's result configure: WARNING: openssl/hmac.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: openssl/hmac.h: proceeding with the compiler's result configure: WARNING: openssl/md4.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: openssl/md4.h: proceeding with the compiler's result configure: WARNING: openssl/md5.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: openssl/md5.h: proceeding with the compiler's result configure: WARNING: openssl/sha.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: openssl/sha.h: proceeding with the compiler's result configure: WARNING: silently not building rlm_otp. configure: WARNING: FAILURE: rlm_otp requires: openssl-libs. configure: WARNING: silently not building rlm_perl. configure: WARNING: FAILURE: rlm_perl requires: EXTERN.h perl.h libperl.so. configure: WARNING: silently not building rlm_python. configure: WARNING: FAILURE: rlm_python requires: Python.h libpython2.3. configure: WARNING: silently not building rlm_sql_iodbc. configure: WARNING: FAILURE: rlm_sql_iodbc requires: libiodbc isql.h. configure: WARNING: oracle headers not found. Use --with-oracle-home-dir=<path>. configure: WARNING: silently not building rlm_sql_oracle. configure: WARNING: FAILURE: rlm_sql_oracle requires: oci.h. configure: WARNING: silently not building rlm_sql_unixodbc. configure: WARNING: FAILURE: rlm_sql_unixodbc requires: libodbc sql.h.
thekat wrote:
rlm_sql_oracle is not compiling
The "configure" scripts are just for ease of use. They solve common problems. It *is* possible to edit the Makefiles directly. Just go to the rlm_sql_oracle/Makefile, and edit it so that the module builds. You will have to define "TARGET = rlm_sql_oracle", and then edit the clfags && libs to point to the Oracle directories. Alan DeKok.
Thx for the reply.. On Thu, Jun 5, 2008 at 7:23 AM, Alan DeKok <aland@deployingradius.com> wrote:
thekat wrote:
rlm_sql_oracle is not compiling
The "configure" scripts are just for ease of use. They solve common problems.
It *is* possible to edit the Makefiles directly. Just go to the rlm_sql_oracle/Makefile, and edit it so that the module builds. You will have to define "TARGET = rlm_sql_oracle", and then edit the clfags && libs to point to the Oracle directories.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Alan.. Much thanks for the reply and very helpful advice..
the rlm_sql_oracle does configure. So that works, at least. Actually the Makefile was incorrect..
I took your advice and edited the Makefile and it was a simple edit. My system is a 64 bit Sparc box, and FR-2.05 only compiles 32 bit. --- RLM_SQL_LIBS = -L/u007/app/oracle/product/10.2.0/db_1/lib -lclntsh -lm Change this line to use the 32 bit libraries: RLM_SQL_LIBS = -L/u007/app/oracle/product/10.2.0/db_1/lib32 -lclntsh -lm ---
I get this error (at the end) when running:
# make all ... false cru .libs/libfreeradius-radius.a dict.o filters.o hash.o hmac.o
It looks like you don't have a dynamic linker on your system. i.e. "false" is NOT a valid linker.
Ensure that your system has the tools that allow it to compile programs.
Alan DeKok.
I had a PATH issue and resolved it.. Looking at the config.log after the configure and found it contained: AR='false' Adding /usr/ccs/bin to my PATH resolved the issue.. Charles
thekat wrote:
I took your advice and edited the Makefile and it was a simple edit. My system is a 64 bit Sparc box, and FR-2.05 only compiles 32 bit.
The server is 64-bit clean, and does run on 64-bit systems. Are you sure that you have 64-bit Oracle libraries installed? If so, why can't you link to them?
I had a PATH issue and resolved it..
Yup. Solaris systems should always have /usr/ccs/bin in PATH. Alan DeKok.
thekat wrote:
rlm_sql_oracle is not compiling
The "configure" scripts are just for ease of use. They solve common problems.
It *is* possible to edit the Makefiles directly. Just go to the rlm_sql_oracle/Makefile, and edit it so that the module builds. You will have to define "TARGET = rlm_sql_oracle", and then edit the clfags && libs to point to the Oracle directories.
Alan DeKok. -
FreeRadius 2.05 I have been away and came back to this . I did get the configure to run. ./configure \ --prefix=/usr/local/freeradius \ --with-openssl=yes \ --with-openssl-dir=/usr/local/ssl \ --with-openssl-includes=/usr/local/ssl/include \ --with-openssl-libraries=/usr/local/ssl/lib \ --with-oracle-lib-dir=/u007/app/oracle/product/10.2.0/client_1/lib \ --with-oracle-home-dir=/u007/app/oracle/product/10.2.0/client_1/rdbms/public (Regarding oracle, I have both the client and the database installed, using the client or the database for the dependencies result in the same output) WARNINGS configure: WARNING: pcap library not found, silently disabling the RADIUS sniffer. config.status: WARNING: ./Make.inc.in seems to ignore the --datarootdir setting config.status: WARNING: ./src/include/build-radpaths-h.in seems to ignore the --datarootdir setting chmod: WARNING: can't access check-radiusd-config configure: WARNING: silently not building rlm_eap_ikev2. configure: WARNING: FAILURE: rlm_eap_ikev2 requires: libeap-ikev2 EAPIKEv2/connector.h. configure: WARNING: the TNCS library isn't found! configure: WARNING: silently not building rlm_eap_tnc. configure: WARNING: FAILURE: rlm_eap_tnc requires: -lTNCS. configure: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found! configure: WARNING: the comm_err library isn't found! configure: WARNING: silently not building rlm_krb5. configure: WARNING: FAILURE: rlm_krb5 requires: krb5.h. configure: WARNING: silently not building rlm_ldap. configure: WARNING: FAILURE: rlm_ldap requires: libldap_r. configure: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: openssl/des.h: proceeding with the compiler's result configure: WARNING: openssl/hmac.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: openssl/hmac.h: proceeding with the compiler's result configure: WARNING: openssl/md4.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: openssl/md4.h: proceeding with the compiler's result configure: WARNING: openssl/md5.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: openssl/md5.h: proceeding with the compiler's result configure: WARNING: openssl/sha.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: openssl/sha.h: proceeding with the compiler's result configure: WARNING: silently not building rlm_perl. configure: WARNING: FAILURE: rlm_perl requires: EXTERN.h perl.h libperl.so. configure: WARNING: silently not building rlm_python. configure: WARNING: FAILURE: rlm_python requires: Python.h libpython2.3. configure: WARNING: silently not building rlm_sql_iodbc. configure: WARNING: FAILURE: rlm_sql_iodbc requires: libiodbc isql.h. configure: WARNING: silently not building rlm_sql_unixodbc. configure: WARNING: FAILURE: rlm_sql_unixodbc requires: libodbc sql.h. the rlm_sql_oracle does configure. I get this error (at the end) when running: # make all gcc -g -O2 -D_LIBRADIUS -I/export/packages/freeradius-server-2.0.5/src -c dhcp.c -o dhcp.o >/dev/null 2>&1 /export/packages/freeradius-server-2.0.5/libtool --mode=link gcc -release 2.0.5 \ -export-dynamic -o libfreeradius-radius.la -rpath /usr/local/freeradius/lib dict.lo filters.lo hash.lo hmac.lo hmacsha1.lo isaac.lo log.lo misc.lo missing.lo md4.lo md5.lo print.lo radius.lo rbtree.lo sha1.lo snprintf.lo strlcat.lo strlcpy.lo token.lo udpfromto.lo valuepair.lo fifo.lo packet.lo event.lo getaddrinfo.lo vqp.lo heap.lo dhcp.lo gcc -shared -Wl,-h -Wl,libfreeradius-radius-2.0.5.so -o .libs/ libfreeradius-radius-2.0.5.so .libs/dict.o .libs/filters.o .libs/hash.o .libs/hmac.o .libs/hmacsha1.o .libs/isaac.o .libs/log.o .libs/misc.o .libs/missing.o .libs/md4.o .libs/md5.o .libs/print.o .libs/radius.o .libs/rbtree.o .libs/sha1.o .libs/snprintf.o .libs/strlcat.o .libs/strlcpy.o .libs/token.o .libs/udpfromto.o .libs/valuepair.o .libs/fifo.o .libs/packet.o .libs/event.o .libs/getaddrinfo.o .libs/vqp.o .libs/heap.o .libs/dhcp.o -lc (cd .libs && rm -f libfreeradius-radius.so && ln -s libfreeradius-radius-2.0.5.so libfreeradius-radius.so) false cru .libs/libfreeradius-radius.a dict.o filters.o hash.o hmac.o hmacsha1.o isaac.o log.o misc.o missing.o md4.o md5.o print.o radius.o rbtree.o sha1.o snprintf.o strlcat.o strlcpy.o token.o udpfromto.o valuepair.o fifo.o packet.o event.o getaddrinfo.o vqp.o heap.o dhcp.o gmake[4]: *** [libfreeradius-radius.la] Error 1 gmake[4]: Leaving directory `/export/packages/freeradius-server-2.0.5/src/lib' gmake[3]: *** [common] Error 2 gmake[3]: Leaving directory `/export/packages/freeradius-server-2.0.5/src' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/export/packages/freeradius-server-2.0.5/src' gmake[1]: *** [common] Error 2 gmake[1]: Leaving directory `/export/packages/freeradius-server-2.0.5' make: *** [all] Error 2 Thx Charles
thekat wrote:
I have been away and came back to this . I did get the configure to run. ... WARNINGS
PLEASE ignore the warnings. They're not relevant. There is NO NEED to post them to the list.
the rlm_sql_oracle does configure.
So that works, at least.
I get this error (at the end) when running:
# make all ... false cru .libs/libfreeradius-radius.a dict.o filters.o hash.o hmac.o
It looks like you don't have a dynamic linker on your system. i.e. "false" is NOT a valid linker. Ensure that your system has the tools that allow it to compile programs. Alan DeKok.
participants (2)
-
Alan DeKok -
thekat