HI,

It seems that compiling of SNMP fails on my FreeBSD system.

The problem is that it can find an asn1.h file in the /usr/include/
directory. However, that file is from a Kerberos package.
As a result configure believe that configure looks then
only in /usr/include for the other snmp header files (snmp_impl.h and
snmp.h) in the same directory. Testing if snmph and snmp_impl.h
are there fails then and will not get included.
As a result the compilation breaks, since it really needs them all 3.


The attached patch fixes this by combining the 3 snmp files into
a single HAVE_..._H. The likely hood that they are not in the same
directory is little.

Also the patch looks first if it can find these
include files as <ucd-snmp/asn1.h>. (HAVE_UCD_SNMP..._H) which I
believe is better if you can find the include files that way.
The change that they are not ucd-snmp is then pretty little.

The patch also fixes a library dependancy in the
src/main/Makefile.in. If the module libraires or the
ltdl library changes radiusd is not relinked again.


I also noticed that many 'Makefile'-s and 'Makefile.in'-s
are in the CVS repository. I suggest to delete the 'Makefile'-s,
since these are generated from the 'Makefile.in'-s.
And some '.cvsignore' files would not hurt either.

After applying the attached patch one should also
execute 'autoheader;'autoconf'.

Harrie

Internet Management Consulting
mailto: [EMAIL PROTECTED]                   http://www.lisanza.net/
--------------------------------------------------------------------
Author of MOD-SNMP, enabling SNMP management the Apache HTTP server

Attachment: snmp-configure.patch
Description: Binary data

Reply via email to