Linking Shared/Static library in Freeradius Module

Mustafa Reşit Şahin resitsahin at gmail.com
Wed Dec 7 15:46:03 CET 2011


I am trying to use   src/modules/rlm_example/Makefile using configure files.

In this makefile stated :


# The RLM_LIBS definition should list ALL required libraries.
# These libraries really should be pulled from the 'config.mak'
# definitions, if at all possible.  These definitions are also
# echoed into another file in ../lib, where they're picked up by
# ../main/Makefile for building the version of the server with
# statically linked modules.  Get it from autoconf.
#


Which file mentioned with "These definitions are also # echoed into 
another file in ../lib," ?

I could not find this file. As far as i understand, i have to add 
shared/static libraries ( which i link from my new module ) into this 
file . So freeradius can find them.

I consider this because i get the error :

/libexec/ld-elf.so.1: 
/usr/local/lib/freeradius-2.1.10/rlm_itap-2.1.10.so: Undefined symbol 
"sendiccmsg"

when i run radiusserver and send an autorization message to server.





On 12/06/2011 06:00 PM, Alan DeKok wrote:
> Mustafa Reşit Şahin wrote:
>> I have followed the steps here :
>>
>> http://wiki.freeradius.org/Modules2#Testing
>    Well, it's wrong.  I'm not sure it was ever correct.  I've deleted
> that example from the Wiki.
>
>    Look at src/modules/rlm_example/Makefile.  It works, and is correct.
> Edit it to build your module.  It's a *lot* simpler.
>
>    Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


-- 
Mustafa Reşit Şahin
Endersys İş Tel: 0216 470 94 23 Dahili:306
Cep Tel:0507 707 68 12




More information about the Freeradius-Users mailing list