How to make sure that there is no undefined references to a module

Phil Mayers p.mayers at
Wed Sep 7 18:00:36 CEST 2011

On 09/07/2011 04:48 PM, Ming-Ching Tiew wrote:
> I am trying to develope a little module of my own, the modules compiles fine.
> But to make sure that my modules has no undefined references, I
> added this to the Makefile :-
> RLM_LDFLAGS =  -Wl,--no-undefined
> I tried the idea on one of the simplest module which comes with the
> sources, rlm_exec, but after that the module then failed to compile,
> having lots of undefined references.
> eg :-
> :273: undefined reference to `radlog'
> :442: undefined reference to `radius_exec_program'

These symbols are in the main executable.

> Any advise how should I go about fixing this problem ?

Ha! Good luck with that...

You can't, probably. Don't do that.

More information about the Freeradius-Devel mailing list