I'm haveng problem in building net-print/cups-1.2.1-r2, maybe I'm doing something stupid, but even google hasn't helped me :) during compilation I get this: Compiling banners.c... Compiling cert.c... cert.c:41:23: error: sys/acl.h: No such file or directory cert.c: In function
I'm haveng problem in building net-print/cups-1.2.1-r2, maybe I'm doing something stupid, but even google hasn't helped me :) during compilation I get this: Compiling banners.c... Compiling cert.c... cert.c:41:23: error: sys/acl.h: No such file or directory cert.c: In function cupsdAddCert: cert.c:104: error: acl_t undeclared (first use in this function) cert.c:104: error: (Each undeclared identifier is reported only once cert.c:104: error: for each function it appears in.) cert.c:104: error: expected ; before acl cert.c:105: error: acl_entry_t undeclared (first use in this function) kefk ~ # emerge --info Portage 2.1.1_pre2-r1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-mm4 i686) ================================================================= System uname: 2.6.17-mm4 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.12.1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -msse2 -mfpmath=sse -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O3 -march=pentium4 -msse2 -mfpmath=sse -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="it_IT.utf8" LC_ALL="it_IT.utf8" LINGUAS="it en" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/workspace/gentoo/overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac aalib acpi aim alsa apache2 apm arts asf audiofile avi bash-completion berkdb bidi bitmap-fonts bl bluetooth bri bzip2 cdparanoia cdr cjk cli crypt cups curl dba dga directfb divx4linux dlloader dri dv dvb dvd dvdr dvdread edl eds emboss encode esd ethereal exif expat faad fam fame fbcon ffmpeg fftw flac foomaticdb fortran ftp gd gdbm gif gmp gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv icq idn imagemagick imap imlib innodb ipv6 isdnlog ithreads jabber jack java javascript jpeg kde lcms ldap libcaca libg++ libwww live lm_sensors lzo mad maildir mbox mhash mikmod mime mjpeg mmap mmx mng motif mozilla mp3 mpeg msn mysql ncurses network nfsv4 nls nptl nptlonly nsplugin nvidia offensive ofx ogg oggvorbis openal opengl oscar oss pam pcre pdflib perl php plotutils png ppds pppd python qt qt3 qt4 quicktime readline real reflection rtc ruby samba sasl sdl session slang slp sndfile snmp sox speex spell spl sse sse2 ssl svg tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd videos vorbis win32codecs wmf wxwindows xanim xface xft xine xml xmms xorg xosd xpm xsl xv xvid xvmc yahoo zlib zpm elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_it linguas_en userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #0) It seems as if you're missing the acl.h header file in the sys folder, more specifically /usr/include/sys/acl.h (or at least I think). I've tried to check it out, and I'm not sure if it's common at all. Trying to locate the file, I've seen a file with the same name available in the kernel sources. Therefore it might work to make a temporary symlink from the kernel sources to the folder that CUPS is looking in. If you wish to try, I suggest the following procedure: 1 Find the file acl.h in the kernel sources. It might be available several places aswell. # find /usr/src/linux -name acl.h 2 Use the output from above to make a symlink. ln -s <output_location-of-acl.h> /usr/include/sys/acl.h
Thanks to your suggestion, I've seen where the problem can be: I've emerged sys-apps/acl and that supplied the right acl.h file. I suppose that fiddling with kernel headers can be a little bit dagerous :) Maybe sys-apps/acl should be a require for cups?
#ifdef HAVE_ACL_INIT # include <sys/acl.h> somehow the ifdef has been defined wrongly by configure for your system. Likely to be an isolated unreproduceable issue. If you want to debug it andmake a patch feel free to reopen or if it happens again of course.
*** Bug 161970 has been marked as a duplicate of this bug. ***
Created attachment 106877 [details] add HAVE_SYS_ACL_H (1/3)
Created attachment 106879 [details] add HAVE_SYS_ACL_H (2/3)
Created attachment 106881 [details] add HAVE_SYS_ACL_H (3/3)
Created attachment 106883 [details] add HAVE_SYS_ACL_H (4/3) [ebuild updated at link]
it works with these patches, but without sys-apps/acl, the web side is pretty broken; sys-apps/acl would be a nice dependency