Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 606898 - x11-wm/xpra-1.0.1 build failure - implicit declarations of avcodec_send_packet avcodec_receive_frame
Summary: x11-wm/xpra-1.0.1 build failure - implicit declarations of avcodec_send_packe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2017-01-23 10:51 UTC by kavol
Modified: 2017-02-03 12:37 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,66.99 KB, text/x-log)
2017-01-23 10:51 UTC, kavol
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kavol 2017-01-23 10:51:13 UTC
Created attachment 461052 [details]
build.log

trying new xpra, I got the following error:

x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -ggdb -fno-strict-aliasing -fPIC -I/usr/include/python2.7 -c xpra/codecs/dec_avcodec2/decoder.c -o /var/tmp/portage/x11-wm/xpra-1.0.1/work/xpra-1.0.1-python2_7/temp.linux-x86_64-2.7/xpra/codecs/dec_avcodec2/decoder.o -Wall -Werror -Wno-error=deprecated-declarations
xpra/codecs/dec_avcodec2/decoder.c: In function ‘__pyx_pf_4xpra_6codecs_12dec_avcodec2_7decoder_7Decoder_26decompress_image’:
xpra/codecs/dec_avcodec2/decoder.c:8413:9: error: implicit declaration of function ‘avcodec_send_packet’ [-Werror=implicit-function-declaration]
         __pyx_v_ret = avcodec_send_packet(__pyx_v_self->codec_ctx, (&__pyx_v_avpkt));
         ^
xpra/codecs/dec_avcodec2/decoder.c:8594:9: error: implicit declaration of function ‘avcodec_receive_frame’ [-Werror=implicit-function-declaration]
         __pyx_v_ret = avcodec_receive_frame(__pyx_v_self->codec_ctx, __pyx_v_self->av_frame);
         ^
cc1: all warnings being treated as errors
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1



# emerge --info '=x11-wm/xpra-1.0.1::gentoo'
Portage 2.3.0 (python 3.4.5-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.9.4, glibc-2.23-r3, 4.4.39-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.39-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.3
KiB Mem:     3843148 total,   1440172 free
KiB Swap:    4195320 total,   4181208 free
Timestamp of repository gentoo: Mon, 23 Jan 2017 09:30:01 +0000
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-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.6.3::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="X alsa amd64 berkdb bzip2 cli cracklib crypt cups cxx dga dri fortran gdbm iconv icu ipv6 jpeg modules multimedia ncurses nls nptl offensive ogg opengl openmp pam pcre png printsupport qt5 raw readline sddm seccomp session ssl symlink threads tiff unicode usb v4l vorbis webp x264 xinerama xkb xmp xv zlib" ABI_X86="64" 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" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" L10N="cs" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="cs cs_CZ" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" USERLAND="GNU" VIDEO_CARDS="intel" 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

# emerge -pqv '=x11-wm/xpra-1.0.1::gentoo'
[ebuild     U ] x11-wm/xpra-1.0.1 [0.17.6] USE="client clipboard cups dec_av2 opengl server webp x264 -csc -libav -lz4 -lzo -pulseaudio -sound -vpx -x265" PYTHON_TARGETS="python2_7"
Comment 1 Manuel Mommertz 2017-01-27 06:49:06 UTC
xpra requires a newer ffmpeg. If you install ffmpeg-3.2.2 xpra compiles (xpra-ebuild should be fixed to represent this)
Comment 2 Michael Weber (RETIRED) gentoo-dev 2017-02-01 21:13:04 UTC
commit 6d788217d3ae4cc4eba52ca144168e2a2ddb1dcd
Author: Michael Weber <xmw@gentoo.org>
Date:   Wed Feb 1 22:11:32 2017 +0100

    x11-wm/xpra: Require ffmpeg-3 (bug 606898, thanks kavol@email.cz).
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1
Comment 3 kavol 2017-02-03 11:59:19 UTC
thanks, it installs now, but doesn't work due to permission issues
I'll take a look around and possibly report that in a new bug
Comment 4 Michael Weber (RETIRED) gentoo-dev 2017-02-03 12:04:36 UTC
(In reply to kavol from comment #3)
> thanks, it installs now, but doesn't work due to permission issues
> I'll take a look around and possibly report that in a new bug

The sockets are created inside /run/xpra, which should be group xpra.

You have to add this as secondary group 

  sudo usermod -a -G xpra <yourusername>

relogin and verify that your process has the group, i.e. by running

  id

in a terminal.
Comment 5 kavol 2017-02-03 12:37:16 UTC
thanks, please follow up on bug 608120 as it is different issue than the one resolved here (hope I'm getting this bugzilla's rules right :-))