[sysutils/dar] compilation error - filesystem.cpp:80:27: linux/ext2_fs.h: No such file or directory

Elifarley Callado Coelho Cruz elifarley at gmail.com
Mon Jun 27 12:51:38 GMT 2005


I'm trying to install sysutils/dar, but compilation fails.
What's wrong here ?
Error log follows:

if /bin/sh /usr/local/bin/libtool15 --tag=CXX --mode=compile c++
-DHAVE_CONFIG_H  -I. -I. -I../..   -DHAVE_DECL_GETOPT=0
-I/usr/local/include   -pipe -funroll-loops -O2 -march=pentiumpro -MT
filesystem.lo -MD -MP -MF ".deps/filesystem.Tpo" -c -o filesystem.lo
filesystem.cpp;  then mv -f ".deps/filesystem.Tpo"
".deps/filesystem.Plo"; else rm -f ".deps/filesystem.Tpo"; exit 1; fi
 c++ -DHAVE_CONFIG_H -I. -I. -I../.. -DHAVE_DECL_GETOPT=0
-I/usr/local/include -pipe -funroll-loops -O2 -march=pentiumpro -MT
filesystem.lo -MD -MP -MF .deps/filesystem.Tpo -c filesystem.cpp 
-fPIC -DPIC -o .libs/filesystem.o
filesystem.cpp:80:27: linux/ext2_fs.h: No such file or directory
filesystem.cpp: In function `bool
libdar::is_nodump_flag_set(libdar::user_interaction&, const
libdar::path&, const std::string&)':
filesystem.cpp:1554: error: `EXT2_IOC_GETFLAGS' undeclared (first use
this function)
filesystem.cpp:1554: error: (Each undeclared identifier is reported
only once for each function it appears in.)
filesystem.cpp:1575: error: `EXT2_NODUMP_FL' undeclared (first use
this function)
*** Error code 1

Stop in /var/usr-ports-work/volumes/smallFiles/usr-ports/sysutils/dar/work/dar-2.2.2/src/libdar.
*** Error code 1

After some examination, I found this:

filesystem.cpp:
#if LIBDAR_NODUMP_FEATURE == linux
#include <linux/ext2_fs.h>
#else
#if LIBDAR_NODUMP_FEATURE == ext2fs
#include <ext2fs/ext2_fs.h>

How do I make the test 'LIBDAR_NODUMP_FEATURE == linux' return true ?
Where should I change it ?


-- 
There are 10 types of people in the world:
Those who understand binary and those who don't


More information about the freebsd-questions mailing list