Comment 1 for bug 808868

Revision history for this message
Andrew Peace (andrew-peace) wrote : Re: netatalk 2.2beta4 deb package can't use its ACL capability

I tried compiling the 2.2.1-1 version from Precise (using apt-get source/dpkg-buildpackage) to create a backport on Oneric. On my x64 machine this worked fine as I already had libacl1-dev installed, however it seems now if you do not have it installed (as on my i386 machine) the build fails as follows:

 gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include "-D_U_=__attribute__((unused))" -g -O2 -g -O2 -Wall -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I../../sys -c ldap.c -fPIC -DPIC -o .libs/ldap.o
ldap.c:56:18: error: array type has incomplete element type
ldap.c:72:19: error: array type has incomplete element type
make[4]: *** [ldap.lo] Error 1
make[4]: Leaving directory `/local/scratch/apeace/netatalk/netatalk-2.2.1/libatalk/acl'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/local/scratch/apeace/netatalk/netatalk-2.2.1/libatalk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/local/scratch/apeace/netatalk/netatalk-2.2.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/local/scratch/apeace/netatalk/netatalk-2.2.1'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

This is reported as a bug #651406 in the Debian tracker and was fixed there (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651406).

I can confirm that installing libacl1-dev then re-attempting the build results in the package building successfully.

I would recommend adding libacl1-dev to the build dependencies to resolve this issue.