Hello David,

David Glover-Aoki wrote:
tarlz is not included in the FreeBSD ports so I'm trying to build it from 
source, but I get the following error:

c++ -O2 -c create.cc -o create.o
create.cc:33:10: fatal error: 'sys/sysmacros.h' file not found
#include<sys/sysmacros.h>               // for major, minor

Thank you very much for reporting this. It seems that sys/sysmacros.h is not part of POSIX, in spite of its macros being needed to encode/decode device numbers in tar/pax archives, and some POSIX systems do not provide it.

Could you, please, try including sys/sysmacros.h conditionally in create.cc and extract.cc like in the following example (or with other macro suitable for FreeBSD), and tell me if it compiles. Thanks.

#if !defined __FreeBSD__
#include <sys/sysmacros.h>              // for major, minor
#endif


Best regards,
Antonio.

Reply via email to