I am trying to compile the implementation of the RFC 3797 random selection algorithm by Donald Eastlake (code: http://kambing.ui.ac.id/minix/other/rfc3797/). However, I am getting a linker error:
rfc3797.c:(.text+0xe7f): undefined reference to `log'
I am trying to make it with the provided Makefile, which explicitly links against the math libraray, but I still get the error:
cc -lm -o randomselection rfc3797.c MD5.c
How can I compile this program?