Linking Shared/Static library in Freeradius Module

Mustafa Reşit Şahin resitsahin at gmail.com
Tue Dec 6 16:47:30 CET 2011


I have followed the steps here :

http://wiki.freeradius.org/Modules2#Testing

The makefile is "almost" the same with the makefile there.

It is recommended to use your own make file in the wiki entry....

My module works fine without linking libraries. The problems arise when 
i try to link external libraries.

Resit


On 12/06/2011 05:36 PM, Alan DeKok wrote:
> Resit Sahin wrote:
>> I am writing a FreeRadius (Version 2) module for version Freeradius
>> 2.1.10 . The module works fine. When i want to link a shared/static
>> library from the Makefile of the module i get errors.
>    You didn't follow the FreeRADIUS build process.
>
>> makefile of the freeradius module :
>>
>> /VERS = 2.1.10
>> CFLAGS  =  -DNDEBUG -Wall -I/usr/include \
>>             -I/usr/ports/net/freeradius2/work/freeradius-server-$(VERS)/src
>> LIBS    =  -lc -L. icc-wrapper.a
>> ALL:    rlm_itap.o rlm_itap-$(VERS).so/
>    Uh... *why* did you do this?
>
>    The server ships with *many* examples of building modules.  The build
> system for the server takes care of all of the necessary magic to make
> it Just Work.
>
>    By creating your own Makefile you've done more work than necessary,
> and ensured that the resulting module won't work with FreeRADIUS.
>
>    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