Using static library(disable shard library) will make -X fail.
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? Please help, thanks. Regards, SAxonTseng
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
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.
I don't know about FR 3.0.2, but with FR 2.2.x, you can build a static version (both server & modules) Cheers.
On 25 Mar 2014, at 17:47, Sergio NNX <sfhacker@hotmail.com> wrote:
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.
I don't know about FR 3.0.2, but with FR 2.2.x, you can build a static version (both server & modules)
I know. But OP wasn't posting about FR 2.2.x, he was posting about FR 3.0.2, which uses a new build system (free of the horror that is libtool) which has unfortunately meant that statically compiling in modules is no longer possible. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
kids67.tw wrote:
It means link module fail, but since I already configure without dynamic library, why it still want to link rlm_detail.so?
Modern Unix systems need shared libraries for pretty much everything. There is really no reason to use static libraries any more. If you need it, you can add it by editing the source code. Alan DeKok.
participants (4)
-
Alan DeKok -
Arran Cudbard-Bell -
kids67.tw -
Sergio NNX