Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922715 - app-misc/ddcutil-2.1.0[-usb-monitor]: parsed_cmd.c:138:8: error: 'DEFAULT_ENABLE_USB' undeclared <...>
Summary: app-misc/ddcutil-2.1.0[-usb-monitor]: parsed_cmd.c:138:8: error: 'DEFAULT_ENA...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
: 922719 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-01-22 18:05 UTC by Alexander Bezrukov
Modified: 2024-01-23 13:47 UTC (History)
4 users (show)

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


Attachments
Full build log (build.log,127.64 KB, application/octet-stream)
2024-01-22 18:05 UTC, Alexander Bezrukov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bezrukov 2024-01-22 18:05:16 UTC
Created attachment 882861 [details]
Full build log

parsed_cmd.c: In function 'new_parsed_cmd':
parsed_cmd.c:138:8: error: 'DEFAULT_ENABLE_USB' undeclared (first use in this function); did you mean 'DEFAULT_ENABLE_UDF'?
  138 |    if (DEFAULT_ENABLE_USB)
      |        ^~~~~~~~~~~~~~~~~~
      |        DEFAULT_ENABLE_UDF
parsed_cmd.c:138:8: note: each undeclared identifier is reported only once for each function it appears in
At top level:
cc1: note: unrecognized command-line option '-Wno-compound-token-split-by-macro' may have been intended to silence earlier diagnostics
make[3]: *** [Makefile:458: parsed_cmd.lo] Error 1

Adding USE=usb-monitor allows the build to succeed.


$ emerge --info '=app-misc/ddcutil-2.1.0::gentoo'
Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.38-r9, 6.6.11-rc1-alb x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.11-rc1-alb-x86_64-Dual_Core_AMD_Opteron-tm-_Processor_290-with-glibc2.38
KiB Mem:    16487408 total,   1571156 free
KiB Swap:   67108852 total,  66995560 free
Timestamp of repository gentoo: Mon, 22 Jan 2024 16:15:01 +0000
Head commit of repository gentoo: 5bc2303601b0dc6bc4113f75292371518f8f2453
Timestamp of repository calculate: Mon, 22 Jan 2024 10:35:10 +0000
Head commit of repository calculate: f6547edf2168cc5b6e51209b0c41b73356b56588

Timestamp of repository guru: Sat, 20 Jan 2024 22:18:08 +0000
Head commit of repository guru: 9961efe101f504966eea54d22fea94a21c6fe8dc

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r1::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.0-r2::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust:             1.74.1::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 3

calculate
    location: /var/db/repos/calculate
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/calculate.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -finline-functions-called-once -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /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-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /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="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -finline-functions-called-once -ftree-vectorize"
DISTDIR="/scratch/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -finline-functions-called-once -ftree-vectorize -fprefetch-loop-arrays -funroll-loops -fno-stack-protector"
GENTOO_MIRRORS="http://ftp.lysator.liu.se/gentoo/     https://ftp.lysator.liu.se/gentoo/     http://ftp.halifax.rwth-aachen.de/gentoo/     http://mirror.leaseweb.com/gentoo/     http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/     http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/     http://ftp.uni-stuttgart.de/gentoo-distfiles/     http://gentoo.mirrors.ovh.net/gentoo-distfiles/     http://mirror.init7.net/gentoo/     http://ftp.gwdg.de/pub/linux/gentoo/     http://mirror.netcologne.de/gentoo/     http://ftp.snt.utwente.nl/pub/os/linux/gentoo     http://mirrors.dotsrc.org/gentoo/     http://mirror.netzwerge.de/gentoo/     http://mirrors.soeasyto.com/distfiles.gentoo.org/     http://ftp.fau.de/gentoo     http://mirror.wheel.sk/gentoo     http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/     http://ftp.tu-ilmenau.de/mirror/gentoo/     https://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en fa ru"
MAKEOPTS="-j3"
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="/tmp"
SHELL="/bin/bash"
USE="X a52 aac aacs acl acpi alsa amd64 amr apng appindicator argyllcms asm bash-completion bidi bluetooth bluray branding bundled-libs bzip2 cairo caps cdda cdr celt cli colord crypt cryptsetup cscope cups dbus dirac djvu dri dts dv dvb dvd dvdr dvdread elogind encode eselect exif faac faad ffmpeg flac fontconfig fortran g726 g729 gdbm gif gimp gmp gpm gsm gsm-nonstandard gtk gtk3 gui http iconv icu idn ieee1394 ilbc jpeg jpeg2k jumbo-build kerberos lame lcms ldap ldapsam libnotify libtirpc lm_sensors lock logrotate mad matroska mmap mms mng mp3 mp4 mpeg multilib musepack ncurses nls nodrm nptl nsplugin numa ogg opencl opengl openmp opus pam pango pcre pdf pkcs11 png policykit ppds qt5 raw readline samba scanner sdl seccomp session silk smartcard sound spell split-usr srtp ssl startup-notification svg taglib tcpd test-rust theora threads tiff timidity truetype udev udisks unicode upower usb vcd vdpau vhosts vim-syntax visio vorbis vpx vulkan wavpack webp winbind wireguard wmf wpg wxwidgets x264 xattr xcb xcomposite xft xinerama xml xmp xv xvid xvmc zlib" ABI_X86="32 64" ADA_TARGET="gnat_2021" APACHE2_MODULES="alias auth_basic auth_digest authn_alias authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_user autoindex dir env expires filter headers deflate info log_config logio mime mime_magic negotiation status unique_id userdir rewrite reqtimeout proxy proxy_connect proxy_http authn_core authz_core unixd socache_shmcb" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev wacom" KERNEL="linux" L10N="en fa ru" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="auth_pam access auth_basic autoindex browser charset fastcgi addition fancyindex geoip gzip headers_more limit_conn limit_req proxy referer rewrite scgi stub_status vhost_traffic_status sub" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" SANE_BACKENDS="mustek net" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

app-misc/ddcutil-2.1.0::gentoo was built with the following:
USE="X usb-monitor -drm -user-permissions" ABI_X86="(64)" VIDEO_CARDS="-nvidia"
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-22 18:50:39 UTC
*** Bug 922719 has been marked as a duplicate of this bug. ***
Comment 2 Gary E. Miller 2024-01-22 21:06:41 UTC
#MeToo
Comment 3 Nowa Ammerlaan gentoo-dev 2024-01-23 13:45:35 UTC
Please refrain from adding comments stating only that an issue has occurred for you as well without adding new information, especially when the bug has already been marked as confirmed and has also already been reported upstream. My inbox is full enough as it is, Thanks.

Issue has been fixed upstream, backporting now...
Comment 4 Larry the Git Cow gentoo-dev 2024-01-23 13:47:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6552f78effce628accd6eb59582f367b39b97f70

commit 6552f78effce628accd6eb59582f367b39b97f70
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2024-01-23 13:46:29 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2024-01-23 13:47:20 +0000

    app-misc/ddcutil: fix build with USE=-usb-monitor (again)
    
    Closes: https://bugs.gentoo.org/922715
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 ...dcutil-2.1.0.ebuild => ddcutil-2.1.0-r1.ebuild} |  1 +
 ...2.1.0-fix-build-with-usb-monitor-disabled.patch | 34 ++++++++++++++++++++++
 2 files changed, 35 insertions(+)