Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 575772

Summary: dev-python/python-sipsimple-2.5.1-r3 : ../.../converter_libswscale.c:69:22: error: storage size of ‘srcFormat’ isn’t known
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED WONTFIX    
Severity: normal CC: aklhfex, antoine.pinsard, deference, dschridde+gentoobugs, jbowler, proxy-maint, python, treecleaner, z23
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: Pending removal: 2017-08-14
Package list:
Runtime testing required: ---
Bug Depends on: 613106    
Bug Blocks: 574788, 625424    
Attachments: dev-python:python-sipsimple-2.5.1-r3:20160226-215851.log
emerge-history.txt
environment
Patch for ffmpeg-2.8
Log file, build against ffmpeg 3.2.1
environment (build against ffmpeg-3.2.1)

Description Toralf Förster gentoo-dev 2016-02-26 22:20:40 UTC
           ^
../src/pjmedia/converter_libswscale.c: In function ‘factory_create_converter’:
../src/pjmedia/converter_libswscale.c:69:22: error: storage size of ‘srcFormat’ isn’t known
     enum PixelFormat srcFormat, dstFormat;
                      ^


$ cat emerge-info.txt
  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named amd64-13.0-unstable_20160220-102946) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

  make.conf: USE="mmx sse sse2 pax_kernel -cdinstall -oci8 -bindist apache btrfs bzip2 consolekit csc cups curl custom-cflags dbus -dot drmkms -egl freetds ftp gif git gpg icu imap -introspection javaxml libkms libvirtd llvm logrotate -mng multimedia mysql ois opengl openssl pcre16 pkcs11 plasma -policykit pwquality pyqt4 -rendering sse4 ssse3 system-llvm szip thinkpad threads tools truetype video wma x264 x265 xinetd xmlreader xscreensaver zenmap zip"

  -----------------------------------------------------------------
Portage 2.2.27 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-5.3.0, glibc-2.22-r2, 4.4.2-hardened x86_64)
=================================================================
System uname: Linux-4.4.2-hardened-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16164680 total,   2327360 free
KiB Swap:   16777212 total,  16711508 free
Timestamp of repository gentoo: Fri, 26 Feb 2016 18:42:35 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.3.5-r7::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.4.3::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.2.4-r1::gentoo, 4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::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.22-r2::gentoo
Repositories:

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

local
    location: /usr/local/portage
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/fax /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/spool/fax/etc"
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"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--deep --verbose-conflicts --color=n --nospinner --tree --quiet-build --accept-properties=-interactive --accept-restrict=-fetch"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.utf8"
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="acl amd64 apache berkdb btrfs bzip2 cli consolekit cracklib crypt csc cups curl custom-cflags cxx dbus dri drmkms fortran freetds ftp gdbm gif git gpg iconv icu imap ipv6 javaxml libkms libvirtd llvm logrotate mmx mmxext modules multilib multimedia mysql ncurses nls nptl ois opengl openmp openssl pam pax_kernel pcre pcre16 pkcs11 plasma pwquality pyqt4 readline seccomp session sse sse2 sse4 ssl ssse3 system-llvm szip tcpd thinkpad threads tools truetype unicode video wma x264 x265 xattr xinetd xmlreader xscreensaver zenmap zip 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Toralf Förster gentoo-dev 2016-02-26 22:20:43 UTC
Created attachment 426694 [details]
dev-python:python-sipsimple-2.5.1-r3:20160226-215851.log
Comment 2 Toralf Förster gentoo-dev 2016-02-26 22:20:45 UTC
Created attachment 426696 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2016-02-26 22:20:48 UTC
Created attachment 426698 [details]
environment
Comment 4 Chris Mayo 2016-02-27 17:19:58 UTC
Created attachment 426774 [details, diff]
Patch for ffmpeg-2.8

This may be enough for ffmpeg-2.8, but not ffmpeg-3.0

From here, path adjusted:
http://trac.pjsip.org/repos/changeset/5198/pjproject/trunk/pjmedia/src/pjmedia/converter_libswscale.c
Comment 5 John Bowler 2016-12-06 20:10:45 UTC
Created attachment 455294 [details]
Log file, build against ffmpeg 3.2.1
Comment 6 John Bowler 2016-12-06 20:14:07 UTC
(In reply to Chris Mayo from comment #4)
> Created attachment 426774 [details, diff] [details, diff]
> Patch for ffmpeg-2.8
> 
> This may be enough for ffmpeg-2.8, but not ffmpeg-3.0
> 
> From here, path adjusted:
> http://trac.pjsip.org/repos/changeset/5198/pjproject/trunk/pjmedia/src/
> pjmedia/converter_libswscale.c

Indeed, the attached log file is against ffmeg-3.2.1 which I got as a result of this recent (today, Dec 6, 2016) update:

[ebuild  r  U  ] media-video/ffmpeg-3.2.1 [2.8.9] USE="-chromaprint% -ebur128% -gcrypt% -gmp% -kvazaar% -libilbc% (-mmal) -nvenc% -openh264% -rubberband% -zimg%" CPU_FLAGS_X86="aes%*"

There are quite a lot of suspicious warnings in there in addition to the error from the missing type.

John Bowler
Comment 7 John Bowler 2016-12-06 20:17:30 UTC
emerge --pqv:

[ebuild   R   ] dev-python/python-sipsimple-2.5.1-r3  USE="-libressl" PYTHON_TARGETS="python2_7"

emerge --info:

Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r3, 4.8.12-gentoo x86_64)
=================================================================
System uname: Linux-4.8.12-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.3
KiB Mem:    16411912 total,  11645644 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 06 Dec 2016 11:00:01 +0000
sh bash 4.4_p5-r1
ld GNU ld (Gentoo 2.27 p1.0) 2.27
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p5-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            4.8.5::gentoo, 4.9.3::gentoo, 5.3.0::gentoo, 5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

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

hippopopus-jbowler-com
    location: /home/gentoo/overlay
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
ACCEPT_LICENSE="* -@EULA @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -g -march=native -pipe -fexceptions"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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="-Os -g -march=native -pipe"
DISTDIR="/home/gentoo/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.llarian.net/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="--jobs=8 --load-average=5.5"
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="/home/gentoo/build"
USE="X a52 aac acl acpi aes alsa amd64 avx berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jack jpeg kde kipi lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit popcnt ppds pulseaudio qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx 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="keyboard mouse evdev" KERNEL="linux" L10N="en-us" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" 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
Comment 8 John Bowler 2016-12-06 20:19:12 UTC
Created attachment 455296 [details]
environment (build against ffmpeg-3.2.1)
Comment 9 John Bowler 2016-12-06 20:59:54 UTC
The patch (PixelFormat->AVPixelFormat) doesn't work; there are lots of other uses of PixelFormat that fail when later files are compiled.
Comment 10 John Bowler 2016-12-07 18:08:36 UTC
In my case this is just because net-voip/blink is installed, however the latter depends (currently) on ruby20 and that has just been marked for future removal so obviously some amount of work is required here.

I just unmerged blink and emerge --depclean then removed the sipsimple package along with a whole load of other python cruft.
Comment 12 Antoine Pinsard 2017-01-16 21:24:04 UTC
Note that this is fixed in version 3.0.0.

However, the current SRC_URI doesn't look reliable. Archives seems removed when new versions comes and even the latest version (3.1.0) is not here: http://download.ag-projects.com/SipClient/

I found it more reliable to fetch sources from github: https://github.com/AGProjects/python-sipsimple/releases

However, theses sources lack executable permissions on two files. Which requires a little fix:

src_prepare() {
  # Fix missing execution permission
  chmod u+x deps/pjsip/configure
  chmod u+x deps/pjsip/aconfigure
  default
}

I made ebuilds for 2.5.1, 2.6.0, 3.0.0 and 3.1.0 versions. 2.x are patched for this bug. 3.x are not affected by the bug.

Feel free to pick them up.
Comment 13 Antoine Pinsard 2017-01-16 21:24:46 UTC
Forgot the link, sorry.

https://github.com/apinsard/sapher-overlay/tree/master/dev-python/python-sipsimple
Comment 14 Pacho Ramos gentoo-dev 2017-01-21 15:37:37 UTC
do you want to proxy maintain this?
https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
Comment 15 Antoine Pinsard 2017-01-27 12:52:29 UTC
Sorry Pacho Ramos, I hadn't seen your comment. I'm not sure I am the right person for this, because:

1) I'm using Funtoo, not Gentoo.
2) I don't use this package myself.

If however, you think this is not a concern, I'd be glad to give a hand where it's needed.
Comment 16 Pacho Ramos gentoo-dev 2017-02-04 18:14:49 UTC
Well, if you still want to proxy maintain it, opening a bug and following the procedure listed in the link I posted would be enough :/

If I don't misremember, most ebuilds stuff is the same in Funtoo, then, your ebuilds should work in both without any changes
Comment 17 Antoine Pinsard 2017-03-18 17:22:30 UTC
Thanks Pacho Ramos. I created a maintainership request (bug #613106).
Comment 18 Pacho Ramos gentoo-dev 2017-06-06 11:15:17 UTC
any updates on this?
Comment 19 Pacho Ramos gentoo-dev 2017-06-06 17:27:11 UTC
please note blink is the only reverse dep of this
Comment 20 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-14 21:28:18 UTC
commit 471c712ae145ce37063a7ef707a1764413407110
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Mon Aug 14 23:19:05 2017
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Mon Aug 14 23:24:31 2017

    dev-python/python-sipsimple: Remove last-rited pkg, #575772