undefined reference 'md4_calc' compile error...

Andrew Teixeira ateixeira at gmail.com
Fri Oct 14 16:58:41 CEST 2005

I came across error while trying to compile freeradius-1.0.5 today and
was looking for a solution.  I found a message on the list from
September 12 that no one responded to, so I looked into the problem a
little further and found a solution (at least for that section of the
compile).  The problem is in the Makefile for rlm_mschap in that it
doesn't include the md4.o object file when it compiles smbencrypt.c. 
Therefore, I created the following patch to solve this problem:

--- src/modules/rlm_mschap/Makefile     2004-06-02 12:17:07.000000000 -0400
+++ src/modules/rlm_mschap/Makefile.new 2005-10-14 10:47:53.000000000 -0400
@@ -14,7 +14,7 @@

 smbencrypt: smbencrypt.o smbdes.o $(HEADERS)
-       $(CC) -I../../include $(LDFLAGS) -o smbencrypt smbencrypt.o smbdes.o ..\
+       $(CC) -I../../include $(LDFLAGS) -o smbencrypt smbencrypt.o smbdes.o ..\
/../lib/libradius.a ../../lib/md4.o

        $(INSTALL) -d -m 755 $(R)$(bindir)

I still have some further problems compiling, but this stopped the
'md4_calc' compile error.

More information about the Freeradius-Users mailing list