Hi, On Mon, Oct 20, 2008 at 01:20:45PM +0200, Jochen Friedrich wrote: > > net-snmp-config --cflags outputs this: > > > > -DNETSNMP_ENABLE_IPV6 -g -O2 -g -Wall -O2 -DNETSNMP_USE_INLINE -Ulinux > > -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing > > -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > > -I/usr/lib/perl/5.10/CORE -I. -I/usr/include > > > > But neither is /usr/lib/perl/5.10/CORE required to link against the > > net-snmp libraries, it also makes it impossible to build the SNMP perl > > module from cpan or other modules linking against the net-snmp libraries, > > as they get the header files from a different perl (the debian perl). > > As libnetsnmpagent is compiled with embedded perl, the include path is > required to link > against this library. > > ldd /usr/lib/libnetsnmpagent.so.15.1.0 > libperl.so.5.10 => /usr/lib/libperl.so.5.10 (0xb7e6c000)
This is not true for libnetsnmp.so, though. net-snmp-config provides the two options '--libs' and '--agent-libs' -- it would be nice, if it could also provide something like '--base-cflags' (don't re-use '--cflags' for backward compatibility reasons) and '--agent-cflags' and let those options return the *minimum* required CFLAGS for building "applications" and "subagents" respectively. Imho, this would be a nice fix for this bug report. TIA, Sebastian -- Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/ Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
signature.asc
Description: Digital signature

