Forum: CFEngine Help Subject: -Werror=implicit-function-declarations blocking "pub" implementations on HP-UX 11.11 Author: mvpel Link to topic: https://cfengine.com/forum/read.php?3,25818,25818#msg-25818
I'm working on building CFengine 3.3.0 on HP-UX 11.11, and I'm running into problems for the "pub" implementations of certain functions due to the use of "-Werror=implicit-function-declarations:" CC libpromises_la-unix_dir.lo unix_dir.c: In function 'GetNameMax': unix_dir.c:138:5: error: implicit declaration of function 'dirfd' [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors gmake[2]: *** Error 1 gmake[1]: *** Error 2 gmake: *** Error 1 gbrhpq$ This HP-UX 11.11 system doesn't have "dirfd()" so the "pub/dirfd.c" is built, but then when the call is used here in src/unix_dir.c, the compile bombs out as you can see above. I'm taking a stab at it with the -Werror directive removed, but I'm not sure that's a legitimate approach since I'm not 100% sure how these "pub" functions are supposed to work. Any suggestions? Thanks! _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine