[Docsis-users] FW: Patch: compiling issues with net-snmp-5.3.1
Status: Beta
Brought to you by:
rlaager
From: <igo...@lj...> - 2007-03-12 16:03:07
|
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...=20 > [mailto:doc...@li...] On Behalf=20 > Of Stanislav Sinyagin > Sent: 8. avgust 2006 14:27 > To: doc...@li... > Subject: [Docsis-users] Patch: compiling issues with net-snmp-5.3.1 >=20 > hi, >=20 > 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=20 > project active at all? >=20 > regards, > stan >=20 > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Dcygwin -I.=20 > -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"=20 > ".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:=20 > 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 >=20 >=20 |