Re: undefined reference 'md4_calc' compile error...
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 @@ $(DYNAMIC_OBJS): $(HEADERS) smbencrypt: smbencrypt.o smbdes.o $(HEADERS) - $(CC) -I../../include $(LDFLAGS) -o smbencrypt smbencrypt.o smbdes.o ..\ /../lib/libradius.a + $(CC) -I../../include $(LDFLAGS) -o smbencrypt smbencrypt.o smbdes.o ..\ /../lib/libradius.a ../../lib/md4.o smbencrypt-install: $(INSTALL) -d -m 755 $(R)$(bindir) I still have some further problems compiling, but this stopped the 'md4_calc' compile error.
Andrew Teixeira <ateixeira@gmail.com> wrote:
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.
Huh? Smbencrypt links to libradius.a, which includes md4.o. I don't understand why there's any confusion around md4_calc. Alan DeKok.
I don't really understand it either since that is what I thought when I looked at the libraries being used. When I looked more closely at src/lib/libradius.a, it was only 8 bytes long (i.e. not really a library), but the libradius.a in src/lib/.libs is 223086 bytes and contains the correct library information. So, it seems that the libradius.a file is not being copied correctly (or linked) from src/lib/.libs to src/lib. I'm not sure if this has something to do with my ./configure line or if it has something to do with the distribution I'm using (Mandriva Linux 10.2). My configure line is as follows: ./configure i586-mandrake-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-static-dependencies --with-gnu-ld --with-large-files --with-snmp --with-threads --with-thread-pool --disable-ltdl-install --with-ltdl-lib=/usr/lib --with-ltdl-include=/usr/include --with-rlm-sql_postgresql-include-dir=/usr/include/pgsql --with-rlm-sql_mysql-include-dir=/usr/include/mysql --with-mysql-lib-dir=/usr/lib/mysql --with-rlm-dbm-lib-dir=/usr/lib --with-rlm-krb5-include-dir=/usr/kerberos/include I can fix this by patching everything from <path>/lib/libradius.a to <path>/lib/.libs/libradius.a, but I would rather figure out if I'm just doing something wrong that is causing this problem or if it is something in the makefiles, etc. I'm sure it's something that I have done that has escaped my attention, but if it was a larger problem I just wanted to report it. Thanks for all your help. On 10/14/05, Alan DeKok <aland@ox.org> wrote:
Andrew Teixeira <ateixeira@gmail.com> wrote:
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.
Huh? Smbencrypt links to libradius.a, which includes md4.o. I don't understand why there's any confusion around md4_calc.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Andrew Teixeira <ateixeira@gmail.com> wrote:
I don't really understand it either since that is what I thought when I looked at the libraries being used. When I looked more closely at src/lib/libradius.a, it was only 8 bytes long (i.e. not really a library), but the libradius.a in src/lib/.libs is 223086 bytes and contains the correct library information.
Ah, OK. The issue is that libtool isn't being used to link the smbencrypt program. I thought that this was fixed in 1.0.5. I'll take a look at it. Alan DeKok.
participants (2)
-
Alan DeKok -
Andrew Teixeira