[MacPorts] #52214: net-snmp is not compatible with perl-5.24

MacPorts noreply at macports.org
Sun Sep 11 23:36:00 CEST 2016


#52214: net-snmp is not compatible with perl-5.24
------------------------+--------------------------
 Reporter:  jeremyhu@…  |      Owner:  ryandesign@…
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.3.4
 Keywords:              |       Port:  net-snmp
------------------------+--------------------------
 net-snmp is the only port that I have that is still dependent on
 perl-5.22.

 I made a change to the port to get it to support 5.24 optoinally:
 {{{
 Index: Portfile
 ===================================================================
 --- Portfile    (revision 152509)
 +++ Portfile    (working copy)
 @@ -6,7 +6,7 @@

  name                    net-snmp
  version                 5.7.3
 -revision                5
 +revision                6
  categories              net
  license                 BSD
  platforms               darwin
 @@ -27,10 +27,12 @@
  checksums               rmd160  c5cf54d5723ee417e07f1f9fa3936aef505104a2
 \
                          sha256
 12ef89613c7707dc96d13335f153c1921efc9d61d3708ef09f3fc4a7014fb4f0

 -perl5.branches          5.22
 +perl5.require_variant   yes
 +perl5.conflict_variants yes
 +perl5.branches          5.22 5.24
 +perl5.create_variants   ${perl5.branches}

  depends_lib             port:bzip2 \
 -                        port:perl${perl5.major} \
                          port:zlib

  post-extract {
 }}}

 but that fails due to a conflict between net-snmp and perl-5.24.  This
 will need to be resolved before we make 5.24 default.

 {{{
 In file included from snmp_perl.c:9:
 In file included from ../include/net-snmp/net-snmp-includes.h:71:
 In file included from ../include/net-snmp/utilities.h:42:
 ../include/net-snmp/library/int64.h:8:30: error: typedef redefinition with
 different types ('struct counter64' vs 'unsigned long')
     typedef struct counter64 U64;
                              ^
 /opt/local/lib/perl5/5.24/darwin-thread-multi-2level/CORE/handy.h:179:17:
 note: previous definition is here
 typedef U64TYPE U64;
                 ^
 1 error generated.
 make[1]: *** [snmp_perl.lo] Error 1
 }}}

 Upstream report:  https://sourceforge.net/p/net-snmp/bugs/2712/

 Fixed by: https://sourceforge.net/p/net-
 snmp/code/ci/4e793461e96a2b4fd81142ab312d074d5c8841fa

-- 
Ticket URL: <https://trac.macports.org/ticket/52214>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list