Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443856 - media-gfx/splashutils- failed to build - asm/posix_types.h: No such file or directory
Summary: media-gfx/splashutils- failed to build - asm/posix_types.h: No such...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Asaf Gery
Depends on:
Reported: 2012-11-18 23:08 UTC by Lars
Modified: 2015-04-14 05:09 UTC (History)
2 users (show)

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

The ebuild environment file (environment,110.99 KB, text/plain)
2012-11-18 23:09 UTC, Lars
The complete build log (build.log,21.65 KB, text/plain)
2012-11-18 23:10 UTC, Lars
complete build log of media-gfx/splashutils- (build.log,21.90 KB, text/plain)
2013-01-25 22:25 UTC, Lars

Note You need to log in before you can comment on or make changes to this bug.
Description Lars 2012-11-18 23:08:24 UTC
media-gfx/splashutils won't compile: 

In file included from /usr/lib64/klibc/include/sys/types.h:15:0,
                 from /usr/lib64/klibc/include/unistd.h:11,
                 from /usr/lib64/klibc/include/stdio.h:11,
                 from gzio.c:10:
/usr/lib64/klibc/include/linux/posix_types.h:47:29: fatal error: asm/posix_types.h: No such file or directory
compilation terminated.
make[3]: *** [gzio.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [libz.a] Error 2
make[2]: *** Waiting for unfinished jobs....
configure: error: in `/var/tmp/portage/media-gfx/splashutils-':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
/bin/sed: can't read Makefile: No such file or directory
make[3]: *** No rule to make target `'.  Stop.
  MAKE    libjpeg.a
make[3]: *** No rule to make target `'.  Stop.
make[2]: *** [libjpeg.a] Error 2
configure: WARNING: zlib.h: present but cannot be compiled
configure: WARNING: zlib.h:     check for missing prerequisite headers?
configure: WARNING: zlib.h: see the Autoconf documentation
configure: WARNING: zlib.h:     section "Present But Cannot Be Compiled"
configure: WARNING: zlib.h: proceeding with the preprocessor's result
configure: WARNING: zlib.h: in the future, the compiler will take precedence
configure: WARNING:     ## ---------------------------------- ##
configure: WARNING:     ## Report this to ##
configure: WARNING:     ## ---------------------------------- ##
  MAKE    libfreetype.a
In file included from /usr/lib64/klibc/include/sys/types.h:15:0,
                 from /usr/lib64/klibc/include/unistd.h:11,
                 from /usr/lib64/klibc/include/stdio.h:11,
                 from /var/tmp/portage/media-gfx/splashutils-,
                 from /var/tmp/portage/media-gfx/splashutils-,
                 from /var/tmp/portage/media-gfx/splashutils-
/usr/lib64/klibc/include/linux/posix_types.h:47:29: fatal error: asm/posix_types.h: No such file or directory
compilation terminated.

Reproducible: Always

emerge -pqv '=media-gfx/splashutils-'
[ebuild   R   ] media-gfx/splashutils-  USE="fbcondecor gpm hardened mng png truetype"

emerge --info '=media-gfx/splashutils-'
Portage (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.15-r3, 3.5.7-gentoo x86_64)
                        System Settings
System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Fri, 16 Nov 2012 22:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.8 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo rion java-overlay enlightenment science local_overlay g-ctan
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 sun-bcla-java-vm skype-eula AdobeFlash-10.1 AdobeFlash-10.3 cadsoft EULA Oracle-BCLA-JavaSE"
CFLAGS="-O2 -march=core2 -mtune=generic -msse -msse2 -msse3 -mfpmath=sse -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb /var/lib/redmine/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /var/lib/redmine/config/locales /var/lib/redmine/config/settings.yml"
CXXFLAGS="-O2 -march=core2 -mtune=generic -msse -msse2 -msse3 -mfpmath=sse -pipe"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/rion /var/lib/layman/java-overlay /var/lib/layman/enlightenment /var/lib/layman/science /usr/local/portage /var/lib/g-ctan"
USE="X X509 Xaw3d a52 aac aacplus aalib acct acl acpi activefilter addbookmarks additions addns addressbook aio akonadi alias alisp alsa amd64 amr amrnb amrwb aotuv apache2 apng archive ass async asyncns atm audiofile auth autoipd automount autoreplace autotrace avahi bash-completion berkdb bitmap bittorrent bluetooth branding bs2b bzip2 cairo calendar caps cdaudio cdda cddax cddb cdio cdparanoia cdr chdir chroot cleartype cli clucene clutter connectionstatus consolekit contactnotes contrast coverage cracklib cron crypt cscope css cuda cups curl cxx daap dar64 dbus dc1394 dell desktopglobe device-mapper devil dga dia dirac directfb disk-partition djbfft djvu dmraid dmx dnd dri dts dv dvb dvd dvdr dvdread dvi dynamic eap-sim eap-tls ebook eigen emacs embedded-fuseiso emf emovix enca encode eolconv epos escreen espeak etwin eurephia exif expat extras faac faad fam fame fastcgi fat fax fbcon fbcondecor fbsplash fdt festival ffmpeg fftw finger firefox firefox3 fits flac flite fluidsynth fmod fontconfig foomaticdb fortran fpx freetds freetts ftd2xx ftdi ftp fts3 fuse fusion g3dvl gadu gbm gcj gcrypt gd gdbm geoip geolocation ggi ggz gif gimp git glib glitz gme gmp gnokii gnutls gopher gpg gphoto2 gpm gpu graphics graphviz groupwise grp gs gsm gstreamer gtk gtk3 gudev gzip handwriting hardened hbci hfs highlight history hog hotpixels hpcups hpijs hpn htmlhandbook http humanities hwdb hybrid-auth hyperestraier ical iconv icotools icoutils icu id3tag idea idn ieee1394 ifp ilbc imagemagick imlib inkjar inotify ioctl ios ipod iproute2 ipv6 ipw4965 irc irmc isag ivtv jabber jack jadetex java java5 java6 javascript jbig jce jemalloc jfs jingle jit joystick jpeg jpeg2k jsapi json kate kdm kdrive keymap kig-scripting kipi kpathsea kqemu kvm ladspa lame lapack laptop lasi lastfm latex lcms ldap ldb lensfun libass libcaca libkms libmpeg2 libnl libnotify libsamplerate libssh2 libsysfs libtiger libv4l libv4l2 libvisual live llvm lm_sensors logitech-mouse loop-aes lqr lua lvm lzma lzo mac macvtap mad madwifi marble matroska mbox mbrola md5sum mdadm mdnsresponder-compat mem-scramble messenger midi mikmod minizip mixer mjpeg mmap mms mmx mmxext mng mod modplug modules mono mozdevelop mozdom mozilla mp2 mp3 mp3tunes mp4 mpeg mpg123 mpi mplayer mpx mtp mudflap mule multilib multimedia multiuser musepack musicbrainz mvl mysql mythtv nas natspec ncurses nemesi netbeans netboot nettle network network-cron new-hpcups nfs njb nls nntp nodrm nokia nowlistening nptl nsplugin nss ntfs ntlm nut nuv nvidia objc objc++ objc-gc ocr octave odbc ofa offensive ofono ofx ogg openal opencl opencore-amr openexr opengl openmp openntpd openssl openvg openvpn optimization optimized-qmake oscar oss otp otr pam pam_ssh panorama parted passenger passwordsave paste64 pcap pcmcia pcre pdf pdfannotextractor pdfimport perl phonon pkcs11 pkinit plasma plotutils plugins pmu png pnm policykit postscript ppds ppp pppd presto pronounce pth pulseaudio pvr python qalculate qemu qemu-ifup qpak qt-faststart qt3support qt4 quicktime quotas qwt radio radius rar raw rdesktop rdesktop-vrdp rdp rdpusb readline realtime redeyes reiser4 reiserfs replytolist resolvconf restrict-javascript rfc3779 rpm rss rtc rtf rtmp rtsp ruby rups s3 samba sametime sasl scanner schroedinger science scim script sdl sdl-image secure-delete security segger semantic-desktop sensord serial session shine shout sidebar sift silc skins skype slang slit slp smbclient smbkrb5passwd smbsharemodes smi smime smp sms smtp sndfile snmp socks5 sound soundex soundtouch speex spell spice spoof-source sqlite sse sse2 sse3 ssh ssl ssse3 startup-notification statistics stream subversion svg swat swig sysfs syslog t1lib taglib tcl tcpd teletext templates test-programs texteffect tga themes theora thin-splines threads thumbnail tiff timezone timidity tk tls toolbar toolkit-scroll-bars tor-hardening tordns translator transmitter trayicon truetype tv twolame udev udev-acl udisks uml unicode usb usbredir utempter uuid v4l v4l2 vaapi vamp vcd vcdinfo vcdx vde vdpau vdr versaloon vhosts video vim-pager vim-syntax vim-with-x virt-network visualization vlc vlm vnc vorbis vpnc vpx wad wavpack webgl webinterface webkit webp webpresence wicd wifi wimax win32 winbind winetools winetriks winpopup wma wma-fixed wmf wps wxwidgets wxwindows x264 xa xanim xattr xcomposite xemacs xetex xext xforms xfs xine xinerama xinetd xml xmldoclet xmp xnest xosd xpm xprint xrandr xscreensaver xulrunner xv xvfb xvid xvmc yahoo yv12 zephyr zeroconf zip zlib zoran zsh-completion zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="cgid actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias dav dav_fs dav_lock deflate dir disk_cache" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11 jl2005a topfield ax203 st2205 jl2005c tp6801" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="pvrusb2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse joystick synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" LIRC_DEVICES="hauppauge hauppauge_dvb" PHP_TARGETS="php5-4" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nv vesa nvidia v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"

                        Package Settings

media-gfx/splashutils- was built with the following:
USE="fbcondecor gpm hardened mng (multilib) png truetype"
Comment 1 Lars 2012-11-18 23:09:34 UTC
Created attachment 329922 [details]
The ebuild environment file
Comment 2 Lars 2012-11-18 23:10:46 UTC
Created attachment 329924 [details]
The complete build log
Comment 3 Pacho Ramos gentoo-dev 2013-01-20 10:24:26 UTC
Still valid with -r2?
Comment 4 Lars 2013-01-25 22:25:44 UTC
Created attachment 336856 [details]
complete build log of media-gfx/splashutils-

Yes, it still fails with -r2 (see build.log).
Comment 5 Stefan Briesenick (RETIRED) gentoo-dev 2014-06-30 18:27:33 UTC
any news?
Comment 6 Asaf Gery 2014-07-01 02:17:19 UTC
From the output I gather that you're using klibc rather than gcc.
With gcc there are no compilation problems.
Could you provide me with instruction how to set my own machine to use klibc?

Comment 7 Asaf Gery 2014-07-01 02:39:03 UTC
Sorry, I meant, it appears that you're using klibc rather than glibc.
Could you please guide me about how to set Gentoo to compile this package with klibc?

Thanks again,
Comment 8 Sergey Popov gentoo-dev 2015-02-02 15:32:04 UTC
Which version of dev-libs/klibc do you use?
Comment 9 Lars 2015-04-11 23:26:24 UTC
(In reply to Asaf Gery from comment #6)
> From the output I gather that you're using klibc rather than gcc.
> With gcc there are no compilation problems.
> Could you provide me with instruction how to set my own machine to use klibc?

I have no idea why it is compiled with klibc rather than glibc. I did not tell emerge to use klbc.


emerge -av media-gfx/splashutils

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-libs/klibc-1.5.25  USE="-debug" 74.812 KiB
[ebuild  N     ] media-gfx/fbgrab-1.0-r2  12 KiB
[ebuild  N     ] media-gfx/splashutils-  USE="fbcondecor gpm hardened png truetype" 3.953 KiB

Total: 3 packages (3 new), Size of downloads: 78.776 KiB

Would you like to merge these packages? [Yes/No]


klibc is defined as built-time dependency in the ebuild of splashutils:


Without hardened USE flag it compiles.
Comment 10 Ian Delaney (RETIRED) gentoo-dev 2015-04-14 05:09:02 UTC
pkg_setup() {
        if use hardened; then
                ewarn "Due to problems with klibc, it is currently impossible to compile splashutils"
                ewarn "with 'hardened' GCC flags. As a workaround, the package will be compiled with"
                ewarn "-fno-stack-protector. Hardened GCC features will not be used while building"
                ewarn "the splash kernel helper."


~/cvsPortage/gentoo-x86/media-gfx/splashutils $ USE=hardened ebuild splashutils- clean instal


 * Removing unnecessary /usr/lib64/ (no libs & flags)
 * Removing unnecessary /usr/lib64/ (covered by .pc)
>>> Completed installing splashutils- into /mnt/gen2/TmpDir/portage/media-gfx/splashutils-

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R

Closing. If someone has some further input to offer validity to the claim in the title, feel free to re-open.