Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138814 - net-print/cups-1.2.1-r2 build stops on sys/acl.h
Summary: net-print/cups-1.2.1-r2 build stops on sys/acl.h
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
: 161970 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-02 01:56 UTC by Fabio Coatti
Modified: 2007-01-14 01:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
add HAVE_SYS_ACL_H (1/3) (url.txt,35 bytes, text/plain)
2007-01-14 01:10 UTC, kenny t
Details
add HAVE_SYS_ACL_H (2/3) (url.txt,43 bytes, text/plain)
2007-01-14 01:11 UTC, kenny t
Details
add HAVE_SYS_ACL_H (3/3) (url.txt,40 bytes, text/plain)
2007-01-14 01:11 UTC, kenny t
Details
add HAVE_SYS_ACL_H (4/3) [ebuild updated at link] (url.txt,40 bytes, text/plain)
2007-01-14 01:24 UTC, kenny t
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Coatti 2006-07-02 01:56:15 UTC
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 
Comment 1 Fabio Coatti 2006-07-02 01:56:15 UTC
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
Comment 2 Rafael Lukas Moe 2006-07-02 03:58:17 UTC
(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
Comment 3 Fabio Coatti 2006-07-02 05:37:23 UTC
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?
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-17 18:02:23 UTC
#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.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-01-14 00:08:56 UTC
*** Bug 161970 has been marked as a duplicate of this bug. ***
Comment 6 kenny t 2007-01-14 01:10:51 UTC
Created attachment 106877 [details]
add HAVE_SYS_ACL_H (1/3)
Comment 7 kenny t 2007-01-14 01:11:11 UTC
Created attachment 106879 [details]
add HAVE_SYS_ACL_H (2/3)
Comment 8 kenny t 2007-01-14 01:11:31 UTC
Created attachment 106881 [details]
add HAVE_SYS_ACL_H (3/3)
Comment 9 kenny t 2007-01-14 01:24:12 UTC
Created attachment 106883 [details]
add HAVE_SYS_ACL_H (4/3) [ebuild updated at link]
Comment 10 kenny t 2007-01-14 01:32:13 UTC
it works with these patches, but without sys-apps/acl, the web side is pretty broken; sys-apps/acl would be a nice dependency