During emerge system or emerge hfsplusutils, the compiler errors out with "Function src_compile, Line 30, Exitcode 2" and earlier says "hpmkdir.o(.text+0x132): In function 'do_mkdir': undefined reference to errno" and later "collect2: ld returned 1 exit status". Reproducible: Always Steps to Reproduce: 1. emerge hfsplusutils
Right, by editing hpmkdir.c and adding an "#include <errno.h>" (as outlined by SethBC on IRC), it compiles fine. There is another #include <errno.h> but for some reason it's commented out.
*** Bug 18509 has been marked as a duplicate of this bug. ***
there is a revision already committed that address that issue