Hello David,

David Glover-Aoki wrote:
c++ -I /usr/local/include -O2 -c -o exclude.o exclude.cc
In file included from exclude.cc:29:
./tarlz.h:399:1: error: unknown type name 'mode_t'; did you mean '__mode_t'?

Thank you very much for reporting this.

The problem is that I forgot to add the following line at the top of tarlz.h:

#include <sys/types.h>


Note that I am using gmake instead of (bsd) make because make still fails to 
find lzlib.h:

c++ -O2 -c archive_reader.cc -o archive_reader.o
archive_reader.cc:29:10: fatal error: 'lzlib.h' file not found
#include <lzlib.h>
          ^~~~~~~~~

Note that the line from the gmake build includes the option '-I /usr/local/include', which is not present in the make build. I guess this is the cause of the failure with BSD make.


Best regards,
Antonio.

Reply via email to