libyal / libpff

Library and tools to access the Personal Folder File (PFF) and the Offline Folder File (OFF) format
GNU Lesser General Public License v3.0
289 stars 74 forks source link

Compiling fails because HAVE_UNLINK is undefined #22

Closed rdvdijk closed 8 years ago

rdvdijk commented 8 years ago

Running ./synclibs.sh and ./autogen.sh results in the following error:

libcfile_support.c:742:2: error: #error Missing file remove function
 #error Missing file remove function
  ^
make[1]: *** [libcfile_support.lo] Error 1
make: *** [all-recursive] Error 1
Running: 'make' failed

Line 688 in libcfile/libcfile_support.c:

#elif defined( HAVE_UNLINK )

The libcfile source defines HAVE_UNLINK in common/config.h, which is not checked out by synclibs.sh, so the compiler fails on line 742.

joachimmetz commented 8 years ago

so the compiler fails on line 742.

Technically it is the C preprocessor that fails, as intended.

This is pending a source update, when time permits. In the mean time you could replace libcfile.m4 with the latest version.

joachimmetz commented 8 years ago

Source updated: https://github.com/libyal/libpff/commit/e0882a80cce79c11599f83943c00c9419eaacfe4