On Tue, Feb 01, 2005 at 06:59:36PM +1100, Mitchell, Michael J wrote: > I'm attempting to build freeRADIUS 1.0.1 on Solaris 9 with ucd-snmp > 4.2.6
> I've been struggling to get the configure script to successfully > recognise ucd-snmp and thus enable it for compilation in freeradius. I'm > on Solaris 9, and what I've finally had to do is "hack" the configure > script where it attempts to detect -lsnmp to include a -L flag to point > to the location of libscrypto.so, as well as include -lcrypto and > -lkstat. > I'm not sure if this is due to the way I've built ucd-snmp, or if its > because I've installed ucd-snmp in my home directory rather than the > default /usr/local, or if its just a Solaris cc peculiarity...or I'm > just plain stupid... The (undocumented, as it happens) --with-snmp-include-dir and --with-snmp-lib-dir options should be able to take care of having build ucd-snmp in your home directory. And the script tries linking against libcrypto if it can't link without. However, it doesn't (currently) try libkstat or libscrypto... I guess it wouldn't be hard to add another iteration to aclocal.m4 to try with libcrypto _and_ libkstat. Is libscrypto a typo? I assume you meant libsnmp unless your ucd-snmp depends on _other_ home-compiled libraries? You're looking for the block around line 3925 in aclocal.m4, with the following comment block: dnl # dnl # That didn't work. Try adding the '-lcrypto' line. dnl # Some SNMP libraries are linked against SSL... dnl # Copy from the next line through fi, paste below the fi, and change the line with LIBS and SNMP_LIBS to include -lkstat. Run aclocal and then autoconf (from the autotools2.13 release, not any autotools 2.5x release) and try configuring again with --with-snmp-lib-dir and --with-snmp-include-dir. It _ought_ to work. ^_^ Let us know if this works, since it looks like a fairly safe change which could make 1.0.2 if you're quick. ^_^ If you're still stuck, config.log has a wealth of information about what's going in in your configure process, including the errors from the linker. > Has anyone else experienced such configure woes on Solaris? If anyone > can offer some advice, I'd greatly appreciate it! This is all general stuff, I don't have access to a Solaris machine sadly. I hope it helps though. > I've been asked to support net-snmp with freeRADIUS - I'm not even game > to try after today's effort! FreeRADIUS 1.1.0 supports net-snmp in ucd-compatibility mode. If you want to patch 1.0.1 to also support this, I've got patches in the Debian release of FreeRADIUS 1.0.1 which I could split out if you like. I don't recall if they made it into 1.0.2 though. -- Paul "TBBle" Hampson, on an alternate email client. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

