building new module with external library dependencies

Bill Schoolfield bill at billmax.com
Mon Jun 17 23:13:55 CEST 2013


This has been resolved. Using:

xxxx_ldflags="-L/path/to/lib -Wl,-rpath=/path/to/lib -labc -lxyz ..."

will do it. Be sure to do a 'gmake clean' before running configure. Also it
appears that the 'make' and 'make install' need to be done as two separate
steps.

Bill

On 6/17/2013 11:20 AM, Bill Schoolfield wrote:
> Using 2.2.0. Should I repost to the devel list or keep the thread here?
>
> On 6/17/2013 10:55 AM, Arran Cudbard-Bell wrote:
>>
>> On 17 Jun 2013, at 16:42, Bill Schoolfield <bill at billmax.com> wrote:
>>
>>> Hello all,
>>>
>>> I have created a new module (using rlm_detail.c as it was closest to my needs). For the building
>>> I took the various config files from rlm_example and modified as needed (changed example to xxxxx where
>>> xxxxx is my module name).
>>>
>>> Then used:
>>>
>>> ./configure xxxxx_cflags="..." xxxxx_ldflags="..."
>>> gmake install
>>>
>>> Where the variables contain the needed includes, libraries, etc. The module links fine. However, when
>>> running the server, the linker fails to load (find) the needed third party shared libraries.
>>>
>>> If I set LD_LIBRARY_PATH, things work fine. However, I would like to use rpath so no runtime setup
>>> is needed.
>>>
>>> I've tried setting rpath in ldflags but this doesn't work.
>>
>> This is most definitely a developers list question. Please post future responses to that list.
>>
>> Firstly, what version are you using? 2.xx and 3.00 have different build systems.
>>
>> Arran Cudbard-Bell <a.cudbardb at freeradius.org>
>> FreeRADIUS Development Team
>>
>> -
>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list