Summary: | media-gfx/iscan-2.30.4.2-r1: model-info.c:305:1: error: conflicting types for ‘model_info_customise_commands’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andreas Sturmlechner <asturm> |
Component: | Current packages | Assignee: | Marcin Deranek <marcin.deranek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dilfridge, proxy-maint, ptk |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=715420 https://github.com/gentoo/gentoo/pull/18938 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | iscan-2.30.4.2-r1.build.log |
Description
Andreas Sturmlechner
2020-11-20 20:49:14 UTC
I cannot replicate this with the very same gcc and glibc on ~amd64. Error message seems a bit strange eg.: model-info.c:669:1: error: conflicting types for ‘model_info_has_lock_commands’ 669 | model_info_has_lock_commands (const void *self) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from model-info.c:69: model-info.h:136:8: note: previous declaration of ‘model_info_has_lock_commands’ was here 136 | bool model_info_has_lock_commands (const void *self); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ To me both types are the same (in the first case book is specified in previous line, so that's why it's not shown). I am getting the same error with that package. build.log available upon request. The code appears correct to me, too. I tried all four versions of gcc that I have installed without success (see below for versions). + emerge -pqv =media-gfx/iscan-2.30.4.2-r1::gentoo [ebuild N ] media-gfx/iscan-data-1.39.0.1 USE="udev" [ebuild N ] media-gfx/iscan-2.30.4.2-r1 USE="X gimp nls -doc" L10N="ja" + emerge --info =media-gfx/iscan-2.30.4.2-r1::gentoo Portage 3.0.12 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-9.3.0, glibc-2.32-r5, 5.4.80-gentoo-r1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.4.80-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-7700_CPU_@_3.60GHz-with-gentoo-2.7 KiB Mem: 65603376 total, 8566508 free KiB Swap: 67108860 total, 66996732 free Timestamp of repository gentoo: Wed, 13 Jan 2021 15:30:01 +0000 Head commit of repository gentoo: 261075241f8c5ff23e73f48fa08aa16f9fd61bea sh bash 5.0_p18 ld GNU ld (Gentoo 2.34 p6) 2.34.0 app-shells/bash: 5.0_p18::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 2.7.18-r5::gentoo, 3.7.9-r1::gentoo, 3.8.6-r1::gentoo, 3.9.0-r1::gentoo dev-util/cmake: 3.17.4-r1::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.16.2-r1::gentoo sys-devel/binutils: 2.34-r2::gentoo sys-devel/gcc: 6.5.0-r3::gentoo, 7.5.0-r1::gentoo, 8.4.0-r1::gentoo, 9.3.0-r2::gentoo sys-devel/gcc-config: 2.3.2-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r5::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 ptkinney-overlay location: /var/db/repos/ptkinney-overlay masters: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=native -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O3 -march=native -fomit-frame-pointer -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O3 -march=native -fomit-frame-pointer -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O3 -march=native -fomit-frame-pointer -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="ar ar_SA de de_DE en en_US eo es es_CR es_ES es_MX fr ga ga_IE it it_IT ja ja_JP la pt sa sa_IN" MAKEOPTS="-j9" PKGDIR="/var/cache/binpkgs" 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="X a52 aac acl acpi alsa amd64 apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli colord crypt cryptsetup cups dbus docker dos drafts dri dropbox dts dvd dvdr eds efi efiemu elfutils emboss encode evo exif extraengine fat fftw flac fontconfig fortran gdbm gif gimp gles2 gnome gnome-keyring gnome-online-accounts gnuefi gold gpm gstreamer gtk gui hdri heif hl http hwdb iconv icu introspection ipv6 java javafx jbig jbr8 jdbc jpeg jpeg2k jumbo-build kerberos lapack lcms libglvnd libnotify libsecret libtirpc libvirt libvirtd llvm lm-sensors logrotate lzma mad minizip mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg openexr opengl openmp pam pango pch pcre pdf png policykit postgres postproc postscript ppds printsupport pulseaudio python qemu qml qt5 raw readline samba scanner script sdl seccomp secure-delete sift spell split-usr ssl startup-notification svg syslog sysprof system-ffmpeg system-icu systemd tcpd threads tiff tracker truetype udev udisks unicode upower usb usbredir v4l vim vim-pager vim-syntax virt-network virtfs vnc vorbis wayland widgets winbind wxwidgets x264 xattr xcb xetex xinetd xla xml xorg xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb 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" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="ar ar-SA de de-DE en en-US eo es es-CR es-ES es-MX fr ga ga-IE it it_IT ja ja-JP la pt sa sa-IN" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby25 ruby26" SANE_BACKENDS="epson2 hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s hs2p" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" 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, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Can you try patch from https://github.com/gentoo/gentoo/pull/18938 ? I checked the link https://github.com/gentoo/gentoo/pull/18938 but it is not obvious to me how to try it. Are there instructions I can follow? I am not a Gentoo developer. Download https://raw.githubusercontent.com/gentoo/gentoo/34d78ad77dad1f5dd45991322226d25fd45c80f7/media-gfx/iscan/files/iscan-2.30.4.2-c99.patch and store it as /etc/portage/patches/media-gfx/iscan/iscan-2.30.4.2-c99.patch During build process you should see iscan-2.30.4.2-c99.patch being applied. That worked for me (package installed on two Linux hosts without error, software runs on one of them). I did see " * Applying iscan-2.30.4.2-c99.patch ..." during the builds. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2757129ca25c1b7ff6e4e0095445c6650e2c5f0 commit b2757129ca25c1b7ff6e4e0095445c6650e2c5f0 Author: Hector Martin <marcan@marcan.st> AuthorDate: 2021-01-04 08:22:12 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2021-01-15 20:25:03 +0000 media-gfx/iscan: fix build due to `bool` mismatch Use <stdbool.h> instead of a custom bool type when available, to avoid build failures if other packages include <stdbool.h> later, which redefines it to _Bool. This causes build failures due to mismatch between declarations and definitions. Closes: https://bugs.gentoo.org/755884 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Hector Martin <marcan@marcan.st> Closes: https://github.com/gentoo/gentoo/pull/18938 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> media-gfx/iscan/files/iscan-2.30.4.2-c99.patch | 24 ++++++++++++++++++++++++ media-gfx/iscan/iscan-2.30.4.2-r1.ebuild | 3 ++- 2 files changed, 26 insertions(+), 1 deletion(-) |