[rrd-developers] HURD support, build fails, maybe an easy fix [patch]

Daniel Pocock daniel at pocock.com.au
Fri Sep 6 14:19:19 CEST 2013

Package: rrdtool
Version: 1.4.7-2

I notice that the HURD build is failing with an error about PATH_MAX

This is a common issue.  PATH_MAX doesn't exist in HURD and it is very
trivial to work around

Full build log:



rrd_client.c: In function 'rrdc_update':
rrd_client.c:586:18: error: 'PATH_MAX' undeclared (first use in this function)
rrd_client.c:586:18: note: each undeclared identifier is reported only once for each function it appears in
rrd_client.c:586:8: warning: unused variable 'file_path' [-Wunused-variable]
rrd_client.c: In function 'rrdc_flush':
rrd_client.c:647:18: error: 'PATH_MAX' undeclared (first use in this function)
rrd_client.c:647:8: warning: unused variable 'file_path' [-Wunused-variable]
make[3]: *** [rrd_client.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [build-arch-stamp] Error 2



Potential solution:


Attached is an example of a patch from another project, it appears easy enough to cut and paste into rrd_client.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpulimit-path-max-fix.patch
Type: text/x-patch
Size: 1710 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20130906/cee9fb1c/attachment.bin 

More information about the rrd-developers mailing list