Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Aug 2016 11:18:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 211543] net-mgmt/smokeping fix build with perl-5.22
Message-ID:  <bug-211543-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211543

            Bug ID: 211543
           Summary: net-mgmt/smokeping fix build with perl-5.22
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: rodrigo@FreeBSD.org
          Reporter: matthew@FreeBSD.org
          Assignee: rodrigo@FreeBSD.org
             Flags: maintainer-feedback?(rodrigo@FreeBSD.org)

Created attachment 173217
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D173217&action=
=3Dedit
Disambiguate `RRDs::graph @graph` as a function call

Building smokeping against perl-5.22.2 fails with a syntax error in
lib/Smokeping/Graph.pm and lib/Smokeping.pm

```
(00:00:12) Array found where operator expected at ../lib/Smokeping/Graphs.pm
line 266, near "RRDs::graph @task"
(00:00:12)      (Do you need to predeclare RRDs::graph?)
(00:00:12) syntax error at ../lib/Smokeping/Graphs.pm line 266, near
"RRDs::graph @task"
(00:00:12) Compilation failed in require at ../lib/Smokeping.pm line 22.
(00:00:12) BEGIN failed--compilation aborted at ../lib/Smokeping.pm line 22.
(00:00:12) Compilation failed in require.
(00:00:12) BEGIN failed--compilation aborted.
(00:00:12) Array found where operator expected at ../lib/Smokeping/Graphs.pm
line 266, near "RRDs::graph @task"
(00:00:12)      (Do you need to predeclare RRDs::graph?)
(00:00:12) Array found where operator expected at ../lib/Smokeping/Graphs.pm
line 266, near "RRDs::graph @task"
```

Seems recent perl doesn't recognise `RRDs::graph @graph` as a function call.

Add some braces to disambiguate.  New file: patch-lib_Smokeping_Graphs.pm
Patches (re)generated by 'make makepatch'

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211543-13>