-----BEGIN PGP SIGNED MESSAGE-----

At Alan's suggestion I built my radiusd statically.
First, I noticed that the EAP sub-type modules were not linked in
statically. I changed:

Index: Makefile.in
===================================================================
RCS file: /source/radiusd/src/main/Makefile.in,v
retrieving revision 1.19
diff -u -r1.19 Makefile.in
- --- Makefile.in 28 Aug 2003 17:32:02 -0000      1.19
+++ radiusd/src/main/Makefile.in 5 Sep 2003 17:13:04 -0000
@@ -31,7 +31,9 @@
 #LIBS += $(OPENSSL_LIB) -lcrypto -lssl -lcrypto -lssl
 #
 MODULE_LIBS    += $(shell for x in $(MODULES);do test -f ../modules/$$x/$$x.la && 
echo -dlpreopen ../modules/$$x/$$x.la;done)
+MODULE_LIBS    += $(shell for x in $(MODULES);do test -f 
../modules/*/types/$$x/$$x.la && echo -dlpreopen ../modules/*/types/$$x/$$x.la;done)
 MODULE_OBJS    += $(shell for x in $(MODULES);do test -f ../modules/$$x/$$x.la && 
echo ../modules/$$x/$$x.la;done)
+MODULE_OBJS    += $(shell for x in $(MODULES);do test -f 
../modules/*/types/$$x/$$x.la && echo ../modules/*/types/$$x/$$x.la;done)
 endif
 
 all:   $(BINARIES)

Not the most elegant solution, but it worked.

I then got link errors, missing HMAC_CTX_init from eap_tls. So, I threw in
- -Werror to see if there were functions with no prototypes, and got:

gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -g -Wshadow 
-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -I../../../../include 
-I../.. -DOPENSSL_NO_KRB5 -Werror -c mppe_keys.c -o mppe_keys.o
cc1: warnings being treated as errors
mppe_keys.c: In function `P_hash':
mppe_keys.c:59: warning: implicit declaration of function `HMAC_CTX_init'
mppe_keys.c:61: warning: implicit declaration of function `HMAC_Init_ex'
mppe_keys.c:94: warning: implicit declaration of function `HMAC_CTX_cleanup'
make: *** [mppe_keys.lo] Error 1


My openssl is too old. It is 0.9.6c-2.woody.3. 
http://www.openssl.org/docs/crypto/hmac.html confirms this.

So, I install 0.9.7b from source. 

I'm not certain how to do this check, the obvious of duplicating the check
for SSL_new for HMAC_CTX_init didn't work.

Also, I did:
      AUTOCONF=autoconf2.13 ./configure ...

at the top, but it didn't fill in AUTOCONF= in the Make.in. I'm not sure
why this is.

]      Out and about in Ottawa.    hmmm... beer.                |  firewalls  [
]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
] [EMAIL PROTECTED] http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another Debian/notebook using, kernel hacking, security guy");  [
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Finger me for keys - custom hacks make this fully PGP2 compat

iQCVAwUBP1jIJIqHRg3pndX9AQGxFQQA1N8v/pcwRtfm3cOu0preirqkG3aIhwUj
qF5PjsKrfn9YrLyf011v/OgzF9ZJmRNF/IBEtnkVM+DLLs1feQPMHWxi66f+le9J
j4RckqYyUz/DctlUDj5dfOB8GxM0wig9vyDTjunSIqSoRH48baH49pogOxdcbi9y
EpxyvD9WkQU=
=s3pl
-----END PGP SIGNATURE-----

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to