FreeRADIUS 3.0: 3rd party module build structure?

Arran Cudbard-Bell a.cudbardb at
Mon Mar 3 17:58:32 CET 2014

On 3 Mar 2014, at 14:22, Alan DeKok <aland at> wrote:

> Julius Plenz wrote:
>> However, the linking stage is not working as it was before. I pull in
>> a bunch of symbols from static .a libraries (eg. `libisc.a'). However,
>> the object I get in `lib/modules' after linking (and
>> installing it) does not contain the code for these symbols, and `nm'
>> shows "U", meaning unresolved (it should be "T", included in the text
>> section, so there's actual code for this symbol in the object).
>> Appropriately, the server complains about missing symbols at startup.
>  Hmm... linking static libraries to dynamic ones is not supported by
> most linkers.
>  libtool has some *horrific* code to support this.  I didn't add that
> to the v3 build, because it's crazy.  There might be a different way, tho.
>> I'm not sure where the error occurs. If I was using regular `ld', I'd
>> try using the `--whole-archive' option to simply lump together all the
>> .a files in the .so object. -- However, including this switch in the
>> SRC_LDFLAGS does not have any noticable effect.
>  It should be used if you set it.
>> For reference, here is my `':
>>    TARGET := rlm_omapi.a
>>    SOURCES := rlm_omapi.c
>>    SRC_CFLAGS := -I$(HOME)/...
>>    SRC_LDFLAGS := -L$(HOME)/... -ldhcpctl -lomapi -ldns -lisc
>  You should  use TGT_LDFLAGS instead of SRC_LDFLAGS.
>> I cannot really find out what's going on during the "LINK
>> build/lib/" phase, even when using "make VERBOSE=1".
>  It should print out everything it does.  It just runs jlibtool with a
> bunch of arguments, and jlibtool uses those arguments to run the linker.

Out of interest why are you talking to the ISC DHCP server? I assume that's what you're doing...

FreeRADIUS can act as a DHCP server itself.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <>

More information about the Freeradius-Users mailing list