|
From: | Antonio Diaz Diaz |
Subject: | Re: tarlz 0.16 build failure on FreeBSD 11.3 |
Date: | Fri, 01 May 2020 18:09:08 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |