Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 750863 - media-video/transcode-1.1.7-r5 with USE=v4l: import_v4lcam.c:371:30: error: ‘sys_nerr’ undeclared (first use in this function)
Summary: media-video/transcode-1.1.7-r5 with USE=v4l: import_v4lcam.c:371:30: error: ‘...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-23 15:08 UTC by Kobboi
Modified: 2020-11-02 14:06 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,449.36 KB, text/plain)
2020-10-23 15:14 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2020-10-23 15:08:48 UTC
Compiles fine with USE=-v4l

Making all in v4l
make[3]: Entering directory '/var/tmp/portage/media-video/transcode-1.1.7-r5/work/transcode-1.1.7/import/v4l'
/bin/sh ../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -D_REENTRANT -I../.. -I../../src -I../../import   -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb -c -o import_v4l2.lo import_v4l2.c
/bin/sh ../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -D_REENTRANT -I../.. -I../../src -I../../import     -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb -c -o import_v4lcam_la-import_v4lcam.lo `test -f 'import_v4lcam.c' || echo './'`import_v4lcam.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -D_REENTRANT -I../.. -I../../src -I../../import -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb -c import_v4l2.c  -fPIC -DPIC -o .libs/import_v4l2.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -D_REENTRANT -I../.. -I../../src -I../../import -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb -c import_v4lcam.c  -fPIC -DPIC -o .libs/import_v4lcam_la-import_v4lcam.o
In file included from ../../libtc/tcframes.h:34,
                 from ../../src/framebuffer.h:32,
                 from ../../src/transcode.h:56,
                 from import_v4lcam.c:28:
import_v4lcam.c: In function ‘tc_v4l2_video_setup_stream_parameters’:
import_v4lcam.c:371:30: error: ‘sys_nerr’ undeclared (first use in this function)
  371 |                     errno <= sys_nerr ? sys_errlist[errno] : "unknown");
      |                              ^~~~~~~~
../../libtc/libtc.h:191:42: note: in definition of macro ‘tc_log_warn’
  191 |     tc_log(TC_LOG_WARN, tag, format , ## args)
      |                                          ^~~~
import_v4lcam.c:371:30: note: each undeclared identifier is reported only once for each function it appears in
  371 |                     errno <= sys_nerr ? sys_errlist[errno] : "unknown");
      |                              ^~~~~~~~
../../libtc/libtc.h:191:42: note: in definition of macro ‘tc_log_warn’
  191 |     tc_log(TC_LOG_WARN, tag, format , ## args)
      |                                          ^~~~
In file included from ../../libtc/tcframes.h:34,
                 from ../../src/framebuffer.h:32,
                 from ../../src/transcode.h:56,
                 from import_v4l2.c:30:
import_v4l2.c: In function ‘tc_v4l2_video_setup_cropping’:
import_v4l2.c:458:30: error: ‘sys_nerr’ undeclared (first use in this function)
  458 |                     errno <= sys_nerr ? sys_errlist[errno] : "unknown");
      |                              ^~~~~~~~
../../libtc/libtc.h:191:42: note: in definition of macro ‘tc_log_warn’
  191 |     tc_log(TC_LOG_WARN, tag, format , ## args)
      |                                          ^~~~
import_v4l2.c:458:30: note: each undeclared identifier is reported only once for each function it appears in
  458 |                     errno <= sys_nerr ? sys_errlist[errno] : "unknown");
      |                              ^~~~~~~~
../../libtc/libtc.h:191:42: note: in definition of macro ‘tc_log_warn’
  191 |     tc_log(TC_LOG_WARN, tag, format , ## args)
      |                                          ^~~~
import_v4lcam.c:371:41: error: ‘sys_errlist’ undeclared (first use in this function)
  371 |                     errno <= sys_nerr ? sys_errlist[errno] : "unknown");
      |                                         ^~~~~~~~~~~
../../libtc/libtc.h:191:42: note: in definition of macro ‘tc_log_warn’
  191 |     tc_log(TC_LOG_WARN, tag, format , ## args)
      |                                          ^~~~
import_v4l2.c:458:41: error: ‘sys_errlist’ undeclared (first use in this function)
  458 |                     errno <= sys_nerr ? sys_errlist[errno] : "unknown");
      |                                         ^~~~~~~~~~~
../../libtc/libtc.h:191:42: note: in definition of macro ‘tc_log_warn’
  191 |     tc_log(TC_LOG_WARN, tag, format , ## args)
      |                                          ^~~~
import_v4l2.c: In function ‘tc_v4l2_video_setup_stream_parameters’:
import_v4l2.c:616:34: error: ‘sys_nerr’ undeclared (first use in this function)
  616 |                         errno <= sys_nerr ? sys_errlist[errno] : "unknown");
      |                                  ^~~~~~~~
../../libtc/libtc.h:191:42: note: in definition of macro ‘tc_log_warn’
  191 |     tc_log(TC_LOG_WARN, tag, format , ## args)
      |                                          ^~~~
import_v4l2.c:616:45: error: ‘sys_errlist’ undeclared (first use in this function)
  616 |                         errno <= sys_nerr ? sys_errlist[errno] : "unknown");
      |                                             ^~~~~~~~~~~
../../libtc/libtc.h:191:42: note: in definition of macro ‘tc_log_warn’
  191 |     tc_log(TC_LOG_WARN, tag, format , ## args)
      |                                          ^~~~
import_v4l2.c: In function ‘tc_v4l2_video_get_TV_standard’:
import_v4l2.c:631:30: error: ‘sys_nerr’ undeclared (first use in this function)
  631 |                     errno <= sys_nerr ? sys_errlist[errno] : "unknown");
      |                              ^~~~~~~~
../../libtc/libtc.h:191:42: note: in definition of macro ‘tc_log_warn’
  191 |     tc_log(TC_LOG_WARN, tag, format , ## args)
      |                                          ^~~~
make[3]: *** [Makefile:595: import_v4lcam_la-import_v4lcam.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
import_v4l2.c:631:41: error: ‘sys_errlist’ undeclared (first use in this function)
  631 |                     errno <= sys_nerr ? sys_errlist[errno] : "unknown");
      |                                         ^~~~~~~~~~~
../../libtc/libtc.h:191:42: note: in definition of macro ‘tc_log_warn’
  191 |     tc_log(TC_LOG_WARN, tag, format , ## args)
      |                                          ^~~~
import_v4l2.c: In function ‘tc_v4l2_video_setup_TV_standard’:
import_v4l2.c:720:37: warning: pointer targets in passing argument 1 of ‘strcasecmp’ differ in signedness [-Wpointer-sign]
  720 |             if (!strcasecmp(standard.name, vs->format_name)) {
      |                             ~~~~~~~~^~~~~
      |                                     |
      |                                     __u8 * {aka unsigned char *}
In file included from /usr/include/string.h:446,
                 from ../../src/transcode.h:41,
                 from import_v4l2.c:30:
/usr/include/strings.h:116:36: note: expected ‘const char *’ but argument is of type ‘__u8 *’ {aka ‘unsigned char *’}
  116 | extern int strcasecmp (const char *__s1, const char *__s2)
      |                        ~~~~~~~~~~~~^~~~
import_v4l2.c: In function ‘tc_v4l2_video_setup_input_source’:
import_v4l2.c:1047:41: warning: pointer targets in passing argument 1 of ‘strcasecmp’ differ in signedness [-Wpointer-sign]
 1047 |                 if (strcasecmp(vs->input.name, vs->input_name) == 0) {
      |                                ~~~~~~~~~^~~~~
      |                                         |
      |                                         __u8 * {aka unsigned char *}
In file included from /usr/include/string.h:446,
                 from ../../src/transcode.h:41,
                 from import_v4l2.c:30:
/usr/include/strings.h:116:36: note: expected ‘const char *’ but argument is of type ‘__u8 *’ {aka ‘unsigned char *’}
  116 | extern int strcasecmp (const char *__s1, const char *__s2)
      |                        ~~~~~~~~~~~~^~~~
make[3]: *** [Makefile:588: import_v4l2.lo] Error 1
make[3]: Leaving directory '/var/tmp/portage/media-video/transcode-1.1.7-r5/work/transcode-1.1.7/import/v4l'
make[2]: *** [Makefile:3357: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-video/transcode-1.1.7-r5/work/transcode-1.1.7/import'
make[1]: *** [Makefile:587: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-video/transcode-1.1.7-r5/work/transcode-1.1.7'
make: *** [Makefile:496: all] Error 2
 * ERROR: media-video/transcode-1.1.7-r5::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-video/transcode-1.1.7-r5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-video/transcode-1.1.7-r5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-video/transcode-1.1.7-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/transcode-1.1.7-r5/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/transcode-1.1.7-r5/work/transcode-1.1.7'
 * S: '/var/tmp/portage/media-video/transcode-1.1.7-r5/work/transcode-1.1.7'



Reproducible: Always
Comment 1 Kobboi 2020-10-23 15:14:16 UTC
Created attachment 668150 [details]
build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-23 15:16:56 UTC
emerge --info too
Comment 3 Kobboi 2020-10-23 15:17:53 UTC
Portage 3.0.8 (python 3.7.9-final-0, !../../var/db/repos/kobboi-linux/profiles/kobboi/samsonov, gcc-10.2.0, glibc-2.32-r2, 5.4.72 x86_64)
=================================================================
System uname: Linux-5.4.72-x86_64-Intel-R-_Core-TM-_i7-6700_CPU_@_3.40GHz-with-gentoo-2.7
KiB Mem:    32773996 total,   8863084 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 23 Oct 2020 09:35:27 +0000
Head commit of repository gentoo: abc6e0f1d11ecd0eb541bab913081e85c1cedb9e

Timestamp of repository brother-overlay: Sun, 13 Sep 2020 08:53:15 +0000
Head commit of repository brother-overlay: 8e91529a8c1aeee7ee042d9d6a8cb4cf32c420a0

Timestamp of repository gitlab: Thu, 22 Oct 2020 08:05:16 +0000
Head commit of repository gitlab: 58eedacc6af855c8ca5e389c6a7cecfbfe3ef324

Head commit of repository kobboi-linux: f49fbd49cce4e4d2beb69cdcf706fefd23e7243b

Timestamp of repository steam-overlay: Sun, 11 Oct 2020 12:05:31 +0000
Head commit of repository steam-overlay: 36114ecbc69648699f6d43c1240a440441524acd

sh bash 5.0_p18
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 4.0 [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/ccache:          4.0::gentoo
dev-util/cmake:           3.18.4::gentoo
dev-util/pkgconfig:       0.29.2::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.15.1-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo, 10.2.0-r2::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.git
    masters: gentoo

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

kobboi-linux
    location: /var/db/repos/kobboi-linux
    sync-type: git
    sync-uri: https://github.com/kobboi/kobboi-linux.git
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

Installed sets: @kobboi-all
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/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="-O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb"
DISTDIR="/usr/portage/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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://kobboi-linux:*password*@10.8.0.1/2020.05"
INSTALL_MASK="/usr/src/debug /usr/lib/debug"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="ftp://kobboi-linux:*password*@10.8.0.1/2020.05/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="X a52 aac acl acpi alsa amd64 avahi berkdb bluetooth bzip2 cairo cdda cdr cli colord crypt cups dbus djvu dri dts dvd dvdr eds egl emboss encode evo exif facedetect ffmpeg flac fluidsynth fortran frei0r gdbm gif glade gles gles2 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle gui iconv icu introspection ipv6 jpeg lcms libass libglvnd libnotify libsecret libtirpc mad midi mng modemmanager mono mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl ogg opencv opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt5 readline samba screencast sdl seccomp smartcard smp spell split-usr ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext 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" INPUT_DEVICES="keyboard mouse synaptics libinput" KERNEL="linux" 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-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="vesa radeon nvidia intel amdgpu dummy fbdev nouveau radeonsi 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, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 acmondor 2020-11-01 22:30:22 UTC
I get the same behaviour for an x86 build.

It seems there may already be a patch for this problem in portage but it's currently not used by any ebuilds:

media-video/transcode/files/transcode-1.1.7-glibc-2.32.patch
Comment 5 Manfred Knick 2020-11-02 14:01:31 UTC
WORKAROUND:

Enforcing above patch, e.g. by


# ll /etc/portage/patches/media-video/transcode-1.1.7-r5

lrwxrwxrwx 1 root root 73  2. Nov 14:52 
  transcode-1.1.7-glibc-2.32.patch -> 
    /usr/portage/media-video/transcode/files/transcode-1.1.7-glibc-2.32.patch


WORKSFORME:

# uname -a

Linux XXX.YYY.ZZZ 5.9.3-gentoo                        <-----
#1 SMP 
Mon Nov 2 10:51:02 CET 2020 
x86_64                                                <-----
Intel(R) Xeon(R) CPU E3-1276 v3 @ 3.60GHz 
GenuineIntel GNU/Linux


@ acmondor: Thanks for your hint!
Comment 6 Larry the Git Cow gentoo-dev 2020-11-02 14:06:37 UTC
The bug has been closed via the following commit(s):

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

commit b6e90f304e0a5623fefbcd13639c8552c74edbe1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-11-02 14:06:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-11-02 14:06:22 +0000

    media-video/transcode: fix build with glibc-2.31 deux
    
    Fixes: 3a260316838f08e9c0a273220115a240e5eb6914
    Closes: https://bugs.gentoo.org/750863
    Package-Manager: Portage-3.0.8, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/transcode/transcode-1.1.7-r5.ebuild | 1 +
 1 file changed, 1 insertion(+)