[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:

https://buildd.debian.org/status/fetch.php?pkg=rrdtool&arch=hurd-i386&ver=1.4.7-2&stamp=1343897555

Error:

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




Discussion:

http://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html


Potential solution:

http://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL

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