Re: [Docsis-users] FW: Patch: compiling issues with net-snmp-5.3.1
Status: Beta
Brought to you by:
rlaager
From: Stanislav S. <ssi...@ya...> - 2007-03-12 18:44:37
|
Thanks Igor, I was just about to try finding that patch :) Is the software package maintained at all? Apart from this patch, there are two other problems that would be nice to fix: -- Euro-PacketCable mibs have some parts conflicting with US-PacketCable ones. It would be good to tell ./configure which mibs are to be copied. -- a mechanism for importing a CVC from a certificate file into the CM file Also, did someone succeed building it under Cygwin? With the latest Cygwin, I couldn't compile net-snmp of any of existing versions, the compiler was always complaining at the linking stage. I remember some older version of net-snmp was able to compile, but I can't find that one. cheers, stan --- Igor ©erko <igo...@lj...> wrote: > Hi to both of you, > > I am forwarding to you a mail from Stanislav Sinyagin sent to the > docsis-users mailing list > where he solves the compile problem you both seem to have. > > Basically you just move the location of the `#include "docsis.h"` line > in docsis_snmp.h before all net-snmp includes. See the attached patch file. > > Best regards > Igor > > > -----Original Message----- > > From: doc...@li... > > [mailto:doc...@li...] On Behalf > > Of Stanislav Sinyagin > > Sent: 8. avgust 2006 14:27 > > To: doc...@li... > > Subject: [Docsis-users] Patch: compiling issues with net-snmp-5.3.1 > > > > hi, > > > > attached, see a small patch for this issue below. > > I will also probably add some contributions, should there be an issue. > > Is it the right place to post the patches here? Is the > > project active at all? > > > > regards, > > stan > > > > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Dcygwin -I. > > -I/usr/local/include > > -g -O2 -MT docsis_snmp.o -MD -MP -MF ".deps/docsis_snmp.Tpo" -c -o > > docsis_snmp. > > o docsis_snmp.c; \ > > then mv -f ".deps/docsis_snmp.Tpo" > > ".deps/docsis_snmp.Po"; else rm -f > > ". > > deps/docsis_snmp.Tpo"; exit 1; fi > > In file included from docsis.h:27, > > from docsis_snmp.h:33, > > from docsis_snmp.c:23: > > /usr/include/stdlib.h:80: error: conflicting types for 'free' > > /usr/local/include/net-snmp/library/container.h:416: error: > > previous implicit > > de > > claration of 'free' was here > > make[2]: *** [docsis_snmp.o] Error 1 > > make[2]: Leaving directory `/home/ssinyagin/make/docsis-0.9.5/src' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/ssinyagin/make/docsis-0.9.5' > > make: *** [all] Error 2 > > > > > > Only in docsis-0.9.5.patched: Makefile > Only in docsis-0.9.5.patched: config.h > Only in docsis-0.9.5.patched: config.log > Only in docsis-0.9.5.patched: config.status > Only in docsis-0.9.5.patched/doc: Makefile > Only in docsis-0.9.5.patched/doc: config-settings.html > Only in docsis-0.9.5.patched/examples: Makefile > Only in docsis-0.9.5.patched: libtool > Only in docsis-0.9.5.patched/mibs: Makefile > Only in docsis-0.9.5.patched/src: .deps > Only in docsis-0.9.5.patched/src: .libs > Only in docsis-0.9.5.patched/src: Makefile > Only in docsis-0.9.5.patched/src: docsis.exe > Only in docsis-0.9.5.patched/src: docsis.o > Only in docsis-0.9.5.patched/src: docsis_decode.o > Only in docsis-0.9.5.patched/src: docsis_encode.o > Only in docsis-0.9.5.patched/src: docsis_lex.o > diff -ru docsis-0.9.5/src/docsis_snmp.h > docsis-0.9.5.patched/src/docsis_snmp.h > --- docsis-0.9.5/src/docsis_snmp.h 2004-03-17 16:01:37.000000000 +0100 > +++ docsis-0.9.5.patched/src/docsis_snmp.h 2006-08-08 14:07:15.562236200 > +0200 > @@ -24,13 +24,14 @@ > #ifndef _DOCSIS_SNMP_H > #define _DOCSIS_SNMP_H > > +#include "docsis.h" > + > #include <net-snmp/net-snmp-config.h> > #include <net-snmp/utilities.h> > #include <net-snmp/config_api.h> > #include <net-snmp/output_api.h> > #include <net-snmp/mib_api.h> > > -#include "docsis.h" > > unsigned int encode_vbind ( char *oid_string, char oid_asntype, union t_val > *value, > unsigned char *out_buffer, unsigned int out_size ); > Only in docsis-0.9.5.patched/src: docsis_snmp.o > Only in docsis-0.9.5.patched/src: docsis_yy.o > Only in docsis-0.9.5.patched/src: ethermac.o > Only in docsis-0.9.5.patched/src: hmac_md5.o > Only in docsis-0.9.5.patched/src: md5.o > Only in docsis-0.9.5.patched: stamp-h1 > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> _______________________________________________ > Docsis-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docsis-users > |