[Aide] compiling aide 0.15.1 on FreeBSD 8.2

Hannes von Haugwitz hannes at vonhaugwitz.com
Thu Sep 15 22:56:31 EEST 2011


On Thu, Sep 15, 2011 at 07:07:02PM +0200, Axel Rau wrote:
> the FreeBSD ports collection contains aide 0.13.1 and I used it for many years.
> Using the 0.13.1 patches of configure.in, I could build a binary, but after creating a new db, the 1st run produced one line per file like this:
> ---
> Entry /usr/bin/perror in databases has different attributes: 1bbd 800001bbd
> ---

This line indicates that the attributes for /usr/bin/perror in the old
database (created with 0.13.1?) differ from the ones in the new database
(created with 0.15.1).

You can use the aide-attributes.sh script from contrib/ to display the
differences:

$ aide-attributes.sh 1bbd 800001bbd
+ftype

According to the following NEWS entry for 0.15 this is expected:

* Added support for ftype attribute

The message shouldn't occur any longer after you copied the new 0.15.1
database over the old 0.13.1 one.


> Did something change in this area from 0.13 to 0.15:
> ---
> --- configure.in.orig	Sat Feb 18 04:46:41 2006
> +++ configure.in	Wed Feb 22 20:26:01 2006
> @@ -362,7 +362,9 @@
>  	AIDE_FSTAT_FUNC="fstat"
>  	AIDE_STAT_TYPE="stat"
>  	AIDE_OFF_TYPE="off_t"
> -	AIDE_BLKCNT_TYPE="blkcnt_t"
> +	AC_CHECK_TYPES(blkcnt_t,
> +		AIDE_BLKCNT_TYPE="blkcnt_t",
> +		AIDE_BLKCNT_TYPE="int32_t"),
>  	AIDE_READDIR_FUNC="readdir"
>  	AIDE_READDIR_R_FUNC="readdir_r"
>  	compoptionstring="${compoptionstring}WITH_LSTAT\\n"
> @@ -373,7 +375,9 @@
>  	AIDE_FSTAT_FUNC="fstat"
>  	AIDE_STAT_TYPE="stat"
>  	AIDE_OFF_TYPE="off_t"
> -	AIDE_BLKCNT_TYPE="blkcnt_t"
> +	AC_CHECK_TYPES(blkcnt_t,
> +		AIDE_BLKCNT_TYPE="blkcnt_t",
> +		AIDE_BLKCNT_TYPE="int32_t"),
>  	AIDE_READDIR_FUNC="readdir"
>  	AIDE_READDIR_R_FUNC="readdir_r"
>  	compoptionstring="${compoptionstring}WITH_LSTAT\\n"
> ---
> ?

So blkcnt_t is not defined on FreeBSD?

Greetings

Hannes


More information about the Aide mailing list