RE: Problems compiling net-snmp 5.7.3 on CentOS 6

"Tech Support" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello;
    Thanks for the reply, but I'm still not able to get it to compile. What
I'm getting now is this:

In file included from /opt/perl/lib/CORE/perl.h:5785,
                 from snmp_perl.c:6:
/opt/perl/lib/CORE/inline.h: In function 'Perl_utf8_hop':
/opt/perl/lib/CORE/inline.h:920: warning: cast discards qualifiers from
pointer target type
/opt/perl/lib/CORE/inline.h: In function 'Perl_utf8_hop_forward':
/opt/perl/lib/CORE/inline.h:957: warning: cast discards qualifiers from
pointer target type
/opt/perl/lib/CORE/inline.h:964: warning: cast discards qualifiers from
pointer target type
/opt/perl/lib/CORE/inline.h: In function 'Perl_utf8_hop_back':
/opt/perl/lib/CORE/inline.h:1004: warning: cast discards qualifiers from
pointer target type
In file included from ../include/net-snmp/utilities.h:42,
                 from ../include/net-snmp/net-snmp-includes.h:71,
                 from snmp_perl.c:9:
../include/net-snmp/library/int64.h: At top level:
../include/net-snmp/library/int64.h:8: error: conflicting types for 'U64'
/opt/perl/lib/CORE/handy.h:179: note: previous declaration of 'U64' was here
make[1]: *** [snmp_perl.lo] Error 1
make[1]: Leaving directory `/usr/local/src/net-snmp/agent'
make: *** [subdirs] Error 1

Any help at all would be greatly appreciated.
Thanks;
John V.



-----Original Message-----
From: NetSNMP Mailbox [mailto:[email protected]] On Behalf Of
Robert Story
Sent: Thursday, June 28, 2018 06:57 PM
To: Tech Support <[email protected]>
Cc: [email protected]
Subject: Re: Problems compiling net-snmp 5.7.3 on CentOS 6

On Thu, 7 Jun 2018 09:36:02 -0400 Tech wrote:
TS>     I am trying to compile net-snmp 5.7.3 on a CentOS 6 server but 
TS> I'm running into problems. I'm getting the following error.
TS> 
TS> In file included from ../include/net-snmp/utilities.h:42,
TS>                  from ../include/net-snmp/net-snmp-includes.h:71,
TS>                  from snmp_perl.c:9:
TS> ../include/net-snmp/library/int64.h:8: error: conflicting types for 
TS> 'U64'

You need to add "-DNETSNMP_REMOVE_U64" to your CFLAGS.


Robert


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.