[MacPorts] #17772: rrdtool 1.3.5: missing #include <libgen.h> for basename() in rrd_graph.c

MacPorts noreply at macports.org
Thu Dec 25 03:45:41 PST 2008


#17772: rrdtool 1.3.5: missing #include <libgen.h> for basename() in rrd_graph.c
---------------------------------+------------------------------------------
 Reporter:  vinc17@…             |       Owner:  markd@…           
     Type:  defect               |      Status:  new               
 Priority:  Normal               |   Milestone:  Port Bugs         
Component:  ports                |     Version:  1.7.0             
 Keywords:  build                |        Port:  rrdtool           
---------------------------------+------------------------------------------
 I've reported the following bug to upstream: [http://oss.oetiker.ch
 /rrdtool-trac/ticket/202]

 With RRDtool 1.3.5 under Mac OS X at least, one needs a
 {{{
 #include <libgen.h>
 }}}
 line in rrd_graph.c, as the prototype of the basename() function (used in
 this C source) is defined in this header. Otherwise there's a type
 mismatch (the compiler emits warnings), which may have incorrect side
 effects on some platforms (e.g., if the pointers do not have the same size
 as an int).

 See attached patch.

-- 
Ticket URL: <http://trac.macports.org/ticket/17772>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list