From: Jan B. <jan...@ja...> - 2013-08-22 10:22:53
|
OK there is just problem, that detecting net-snmp-config is not enough. It works for Gentoo, CentOS>5.0.10, ... but does not work for Debian, Ubuntu, SLES/SLED, ... In current debian wheezy net-snmp-config is a part of libsnmp15 package which can be pulled by some package accidently. http://packages.debian.org/wheezy/amd64/libsnmp15/filelist File net-snmp-config.h is a part of libsnmp-dev which is the must for compiling PTPd. http://packages.debian.org/wheezy/amd64/libsnmp-dev/filelist Detecting just net-snmp-config may be false positive autodetection and will cause an error while compiling. For someone who don't want SNMP this is very frustrating. Regards, Jan 2013/8/22 Harlan Stenn <st...@nt...>: > OK, I looked - the configure stuff is pretty robust already, and the > displayed documentation is not great. I fixed the help text for the > --enable-snmp option: > > [enable support for SNMP (enabled if we find net-snmp-config)] > > Currently: > > - --with-net-snmp-config is checked and assumed, to see what program to > invoke to see if net-snmp is installed or not. Invoking configure > with --without-net-snmp-config or --with-net-snmp-config=no will > disable SNMP support. Otherwise we get the path to net-snmp-config. > > - --enable-snmp is checked. If we have a path to net-snmp-config and > --disable-snmp was not specified we will attempt to buid with SNMP > support. > > So at this point, snmp support is enabled if: > > - we have a path to net-snmp-config, and > - --disable-snmp was not specified > > and if snmp support is enabled: > > - we determine the needed CFLAGS, CPPFLAGS, and LIBS > - we look for net-snmp/net-snmp-config.h, and if it's not found we > *WARN* that it is missing. This can easily be changed to an error > condition. > > H > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Ptpd-devel mailing list > Ptp...@li... > https://lists.sourceforge.net/lists/listinfo/ptpd-devel |