On 25 Mar 2014, at 10:46, kids67.tw <kids67.tw@yahoo.com.tw> wrote:
Dear Support,
I use 3.0.2 version for below configure:
3.0.2: ./configure --prefix=./bin/LINUX/freeradius --with-shared-libs=no --with-openssl-includes=./openssl/install/LINUX/include --with-openssl-libraries=./openssl/install/LINUX/lib --with-sqlite-lib-dir=./sqlite/install/LINUX/lib --with-sqlite-include-dir=./sqlite/install/LINUX/include
I can make and make install successful, but after that I want to run ./radiusd -XC -d ./bin/LINUX/freeradius/etc/raddb/
It will display below fail:
radiusd: #### Loading Clients #### client localhost { ipaddr = 127.0.0.1 require_message_authenticator = no secret = <<< secret >>> nas_type = "other" proto = "*" limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } radiusd: #### Instantiating modules #### instantiate { } modules { ./bin/LINUX/freeradius/etc/raddb//mods-enabled/detail.log[17]: Failed to link to module 'rlm_detail': rlm_detail.so: cannot open shared object file: No such file or directory
It means link module fail, but since I already configure without dynamic library, why it still want to link rlm_detail.so? My library path is: ./bin/LINUX/freeradius/lib/ and it only have rlm_*.a and rlm_*.la, don’t have any dynamic library.
Does freeradius can not support static library?
No. It requires additional code. Static compilation is currently only supported for utilities, not the server core and modules. Feel free to submit patches. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2