Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640454 - sys-fs/udev-216 mtd_probe.h:24:9: error: unknown type name 'uint32_t' uint8_t
Summary: sys-fs/udev-216 mtd_probe.h:24:9: error: unknown type name 'uint32_t' uint8_t
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-12-10 04:18 UTC by Alex Cannon
Modified: 2021-07-13 21:11 UTC (History)
1 user (show)

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


Attachments
Patch to add missing #include <stdint.h> to fix it (file_640454.txt,529 bytes, patch)
2017-12-10 04:37 UTC, Alex Cannon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Cannon 2017-12-10 04:18:08 UTC
>>> Verifying ebuild manifests

sys-fs/udev-216 seems to fail either due to a what may be a later gcc version or else because of a change in the header files of some libraries that it depends on. I am including a patch for udev-216 that fixes the problem by adding a missing header file and it now compiles fine. Just copy the patch in to /etc/portage/patches/sys-fs/udev-216/bugfix-mtd_probe.h-uint32_t-undefined.patch and it should work fine. I have gcc-6.4.0.

Here is the error:
>>> Emerging (1 of 1) sys-fs/udev-216::gentoo
 * systemd-216.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...               [ ok ]
 * udev-216-patches-2.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...        [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
[...]
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-fs/udev-216/work/systemd-216  -include ./config.h -DPKGSYSCONFDIR=\"/etc/systemd\" -DSYSTEM_CONFIG_UNIT_PATH=\"/etc/systemd/system\" -DSYSTEM_DATA_UNIT_PATH=\"/lib/systemd/system\" -DSYSTEM_SYSVINIT_PATH=\"/etc/init.d\" -DSYSTEM_SYSVRCND_PATH=\"/etc/rc.d\" -DUSER_CONFIG_UNIT_PATH=\"/etc/systemd/user\" -DUSER_DATA_UNIT_PATH=\"/usr/lib/systemd/user\" -DCERTIFICATE_ROOT=\"/etc/ssl\" -DCATALOG_DATABASE=\"/var/lib/lib/systemd/catalog/database\" -DSYSTEMD_CGROUP_AGENT_PATH=\"/lib/systemd/systemd-cgroups-agent\" -DSYSTEMD_BINARY_PATH=\"/lib/systemd/systemd\" -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"/lib/systemd/systemd-shutdown\" -DSYSTEMD_SLEEP_BINARY_PATH=\"/lib/systemd/systemd-sleep\" -DSYSTEMCTL_BINARY_PATH=\"/bin/systemctl\" -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"/bin/systemd-tty-ask-password-agent\" -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"/usr/bin/systemd-stdio-bridge\" -DROOTPREFIX=\"\" -DRANDOM_SEED_DIR=\"/var/lib/lib/systemd/\" -DRANDOM_SEED=\"/var/lib/lib/systemd/random-seed\" -DSYSTEMD_CRYPTSETUP_PATH=\"/lib/systemd/systemd-cryptsetup\" -DSYSTEM_GENERATOR_PATH=\"/lib/systemd/system-generators\" -DUSER_GENERATOR_PATH=\"/usr/lib/systemd/user-generators\" -DSYSTEM_SHUTDOWN_PATH=\"/lib/systemd/system-shutdown\" -DSYSTEM_SLEEP_PATH=\"/lib/systemd/system-sleep\" -DSYSTEMD_KBD_MOD
EL_MAP=\"/usr/share/systemd/kbd-model-map\" -DX_SERVER=\"/usr/bin/X\" -DUDEVLIBEXECDIR=\"/lib/udev\" -DPOLKIT_AGENT_BINARY_PATH=\"/usr/bin/pkttyagent\" -DQUOTACHECK=\"/usr/sbin/quotacheck\" -DKEXEC=\"/usr/sbin/kexec\" -DLIBDIR=\"/usr/lib\" -DROOTLIBDIR=\"/lib\" -DTEST_DIR=\"/var/tmp/portage/sys-fs/udev-216/work/systemd-216/test\" -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src -I ./src/shared -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/shared -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/network -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/login -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/journal -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/timedate -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/timesync -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/resolve -I ./src/resolve -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/systemd -I ./src/core -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/core -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/libudev -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/udev -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/udev/net -I ./src/udev -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/libsystemd/sd-bus -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/libsystemd/sd-event -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/libsystemd/sd-rtnl -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/libsystemd/sd-network -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/libsystemd-network -I /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/libsystemd-terminal   -pipe -Wall -Wextra -Wno-inline -Wundef -Wformat=2 -Wformat-security -Wformat-nonliteral -Wlogical-op -Wsign-compare -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal  -Wsuggest-attribute=noreturn -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-typedef-redefinition -Werror=overflow -Wdate-time -Wnested-externs -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color -fno-strict-aliasing -fvisibility=hidden -ffunction-sections -fdata-sections -fstack-protector -fstack-protector-strong -fPIE --param=ssp-buffer-size=4   -Os -march=pentium3 -pipe -c -o src/udev/mtd_probe/mtd_probe.o /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/udev/mtd_probe/mtd_probe.c
cc1: warning: ./src/resolve: No such file or directory [-Wmissing-include-dirs]
cc1: warning: ./src/core: No such file or directory [-Wmissing-include-dirs]
In file included from /var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/udev/mtd_probe/mtd_probe.c:19:0:
/var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/udev/mtd_probe/mtd_probe.h:24:9: error: unknown type name 'uint32_t'
         uint32_t reserved;
/var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/udev/mtd_probe/mtd_probe.h:25:9: error: unknown type name 'uint8_t'
         uint8_t data_status;
         ^~~~~~~
/var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/udev/mtd_probe/mtd_probe.h:26:9: error: unknown type name 'uint8_t'
         uint8_t block_status;
         ^~~~~~~
/var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/udev/mtd_probe/mtd_probe.h:27:9: error: unknown type name 'uint8_t'
         uint8_t lba_copy1[2];
         ^~~~~~~
/var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/udev/mtd_probe/mtd_probe.h:28:9: error: unknown type name 'uint8_t'
         uint8_t ecc2[3];
         ^~~~~~~
/var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/udev/mtd_probe/mtd_probe.h:29:9: error: unknown type name 'uint8_t'
         uint8_t lba_copy2[2];
         ^~~~~~~
/var/tmp/portage/sys-fs/udev-216/work/systemd-216/src/udev/mtd_probe/mtd_probe.h:30:9: error: unknown type name 'uint8_t'
         uint8_t ecc1[3];
         ^~~~~~~
cc1: warning: unrecognized command line option '-Wno-typedef-redefinition'
make: *** [Makefile:13071: src/udev/mtd_probe/mtd_probe.o] Error 1



Reproducible: Always




emerge --info
Portage 2.3.13 (python 3.4.5-final-0, default/linux/x86/13.0, gcc-6.4.0, glibc-2.25-r8, 3.2.94 i686)
=================================================================
System uname: Linux-3.2.94-i686-Pentium_III_-Coppermine-with-gentoo-2.4.1
KiB Mem:     3876856 total,   2338664 free
KiB Swap:    5179512 total,   4295952 free
Timestamp of repository gentoo: Sat, 02 Dec 2017 16:30:01 +0000
Head commit of repository gentoo: df59470b1db4002e04bcf2f347a5b8c74b733a0e
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14::gentoo, 3.1.5-r1::gentoo, 3.2.5-r6::gentoo, 3.4.5::gentoo, 3.5.4::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.32.1::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.12.6::gentoo, 1.13.4-r1::gentoo, 1.14.1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.28.1::gentoo
sys-devel/gcc:            3.4.6-r2::gentoo, 4.3.6-r1::gentoo, 4.9.4::gentoo, 5.4.0-r3::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

MyOverlay
    location: /usr/local/portage
    masters: gentoo

twister
    location: /var/lib/layman/twister
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE IBM-J1.6"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/lib/i2pd/certificates"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="7zip X a52 aac acc acl alsa apache2 apng bash-completion bazaar berkdb bittorrent bzip2 caps cgi chappa clang cli cpudetection cracklib crypt cups cvs cxx dbus dga divx4linux dlz dri dvd dvdread egl emacs encode esd esound examples extras faac faad fdformat finger fltk fontconfig fortran ftp gd gdbm geoip gif gimp git gles gles2 gnutella gnutls gopher gpg gpm graph gtk html hwdb iconv idn imagemagick imap imlib ipv6 jadetex javascript jpeg kdeenablefinal libcaca libopts live lzo mad math mbox messages minizip mmx mmxext mng modules motif mp2 mp3 mpeg mpi multinet nas ncat ncurses ndiff nls nntp nping nptl offensive ogg oident openft openmp openssl pam pcre pcre16 perl png pnm policykit pop proxy_http python qt3support qt5 readline rtmp savedconfig scripting seccomp server session sidebar smtp snmp socks5 speex sqlite sse ssl subversion suexec syslog tcl tcpd theora threads tiff tk truetype tty-helpers unicode usb vim-syntax vorbis x264 x86 xa xattr xinetd xkb xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="unixd 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 cgi cgid dav dav_fs dav_lock deflate dir disk_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 ident proxy proxy_connect proxy_ftp proxy_http auth_digest" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr de es it nl ru sv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 alpha arm m68k mips mips64 mips64el mipsel ppc ppc64 ppcemb sparc sparc64 x86_64" QEMU_USER_TARGETS="alpha arm armeb i386 m68k mips mips64 mips64el mipsel mipsn32 mipsn32el ppc ppc64 ppc64abi32 ppc64le sparc sparc32plus sparc64 x86_64" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alex Cannon 2017-12-10 04:37:32 UTC
Created attachment 509170 [details, diff]
Patch to add missing #include <stdint.h> to fix it

/etc/portage/patches/sys-fs/udev-216/bugfix-mtd_probe.h-uint32_t-undefined.patch