Some inconsistencies concerning OpenSSL include configuration in FRS 3
Dr. Andreas Rieke
rieke at isl.de
Sat Jul 26 20:13:22 CEST 2014
On 26 Jul 2014, at 17:31, Arran Cudbard-Bell wrote:
>> However, there is another problem which causes the make process to fail; the problem occurs with rlm_always first:
>>> >> CC /home/freeradius/freeradius-server-3.0.3/src/modules/rlm_always/rlm_always.c
>>> >> In file included from /home/freeradius/freeradius-server-3.0.3/src/freeradius-devel/radiusd.h:59,
>>> >> from /home/freeradius/freeradius-server-3.0.3/src/modules/rlm_always/rlm_always.c:27:
>>> >> /home/freeradius/freeradius-server-3.0.3/src/freeradius-devel/tls.h:39:25: error: openssl/err.h: No such file or directory
>>> >> /home/freeradius/freeradius-server-3.0.3/src/freeradius-devel/tls.h:41:30: error: openssl/engine.h: No such file or directory
>>> >> /home/freeradius/freeradius-server-3.0.3/src/freeradius-devel/tls.h:43:25: error: openssl/ssl.h: No such file or directory
>> > I already tried to use an environment variable CPPFLAGS="-I /opt/openssl/include" for the main configure script, but that did not help. What else can I do to convice FreeRADIUS to use the correct OpenSSL system?
> You'd set it in Make.inc.
> With v3.0.x head
> Works for me with v3.0.x...
> ./configure --with-openssl-lib-dir=/usr/local/opt/openssl/lib --with-openssl-include-dir=/usr/local/opt/openssl/include
> checking OpenSSL library and header version consistency... library: 1000108f header: 1000108f... yes
> LINK build/lib/libfreeradius-radius.la
> CC /Users/arr2036/Documents/Repositories/freeradius-server-master/src/tests/rbmonkey.c
> LINK build/bin/rbmonkey
> CC /Users/arr2036/Documents/Repositories/freeradius-server-master/src/modules/rlm_always/rlm_always.c
> LINK build/lib/rlm_always.la
first thanks a lot for your answer. Things work exactly as you said - in 3.0.2, but not in 3.0.3.
The Make.inc file already contains the correct parameters - even without the parameter CPPFLAGS="-I /opt/openssl/include" for the configuration script:
> CPPFLAGS = -isystem /opt/openssl/include
If you pass CPPFLAGS="-I /opt/openssl/include" to the configure script, you get the path twice:
> CPPFLAGS = -isystem /opt/openssl/include -I /opt/openssl/include
However, in both cases make fails compiling the module rlm_always because the
system can not find openssl/err.h and other openssl header files. Is it
possible that there are system openssl header files on your machine, maybe in
/usr/local/include or in /opt/include, which the preprocessor uses? I am sure that such files do not exist on my machine. Could this be the rason why make runs well on your system, but not on my machine?
More information about the Freeradius-Users