Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 681764 - media-video/vlc-3.0.6-r1[sftp] - access/sftp.c:310:14: error: 'LIBSSH2_HOSTKEY_TYPE_ECDSA_256' undeclared (first use in this function); did you mean 'LIBSSH2_HOSTKEY_TYPE_DSS'?
Summary: media-video/vlc-3.0.6-r1[sftp] - access/sftp.c:310:14: error: 'LIBSSH2_HOSTKE...
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: https://github.com/videolan/vlc/commi...
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2019-03-25 20:18 UTC by Conrad Kostecki
Modified: 2019-04-06 20:34 UTC (History)
0 users

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


Attachments
build.log (build.log,308.45 KB, text/plain)
2019-03-25 20:19 UTC, Conrad Kostecki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2019-03-25 20:18:42 UTC
../doltlibtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DMODULE_STRING=\"$(p="access/libavio_plugin_la-avio.lo"; p="${p##*/}"; p="${p#lib}"; p="${p%_plugin*}"; p=$(echo "$p"|sed 's/-/_/g'); p="${p%.lo}"; echo "$p")\" -D__PLUGIN__  -I./access -I./codec -I../include -I../include  -I/usr/include/samba-4.0    -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe  -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wvolatile-register-var -Wformat -Wformat-security -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Werror-implicit-function-declaration -Winit-self -Wlogical-op -Wshadow=local -fvisibility=hidden -c -o access/libavio_plugin_la-avio.lo `test -f 'access/avio.c' || echo './'`access/avio.c
../doltcompile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DMODULE_STRING=\"$(p="access/satip.lo"; p="${p##*/}"; p="${p#lib}"; p="${p%_plugin*}"; p=$(echo "$p"|sed 's/-/_/g'); p="${p%.lo}"; echo "$p")\" -D__PLUGIN__  -I./access -I./codec -I../include -I../include  -I/usr/include/samba-4.0  -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe  -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wvolatile-register-var -Wformat -Wformat-security -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Werror-implicit-function-declaration -Winit-self -Wlogical-op -Wshadow=local -fvisibility=hidden -c -o access/satip.lo access/satip.c
access/sftp.c: In function 'Open':
access/sftp.c:310:14: error: 'LIBSSH2_HOSTKEY_TYPE_ECDSA_256' undeclared (first use in this function); did you mean 'LIBSSH2_HOSTKEY_TYPE_DSS'?
         case LIBSSH2_HOSTKEY_TYPE_ECDSA_256:
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              LIBSSH2_HOSTKEY_TYPE_DSS
access/sftp.c:310:14: note: each undeclared identifier is reported only once for each function it appears in
access/sftp.c:311:42: error: 'LIBSSH2_KNOWNHOST_KEY_ECDSA_256' undeclared (first use in this function); did you mean 'LIBSSH2_KNOWNHOST_KEY_RSA1'?
             knownhost_fingerprint_algo = LIBSSH2_KNOWNHOST_KEY_ECDSA_256;
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                          LIBSSH2_KNOWNHOST_KEY_RSA1
access/sftp.c:314:14: error: 'LIBSSH2_HOSTKEY_TYPE_ECDSA_384' undeclared (first use in this function); did you mean 'LIBSSH2_HOSTKEY_TYPE_DSS'?
         case LIBSSH2_HOSTKEY_TYPE_ECDSA_384:
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              LIBSSH2_HOSTKEY_TYPE_DSS
access/sftp.c:315:42: error: 'LIBSSH2_KNOWNHOST_KEY_ECDSA_384' undeclared (first use in this function); did you mean 'LIBSSH2_KNOWNHOST_KEY_RSA1'?
             knownhost_fingerprint_algo = LIBSSH2_KNOWNHOST_KEY_ECDSA_384;
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                          LIBSSH2_KNOWNHOST_KEY_RSA1
access/sftp.c:318:14: error: 'LIBSSH2_HOSTKEY_TYPE_ECDSA_521' undeclared (first use in this function); did you mean 'LIBSSH2_HOSTKEY_TYPE_DSS'?
         case LIBSSH2_HOSTKEY_TYPE_ECDSA_521:
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              LIBSSH2_HOSTKEY_TYPE_DSS
access/sftp.c:319:42: error: 'LIBSSH2_KNOWNHOST_KEY_ECDSA_521' undeclared (first use in this function); did you mean 'LIBSSH2_KNOWNHOST_KEY_RSA1'?
             knownhost_fingerprint_algo = LIBSSH2_KNOWNHOST_KEY_ECDSA_521;
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                          LIBSSH2_KNOWNHOST_KEY_RSA1
make[4]: *** [Makefile:22928: access/libsftp_plugin_la-sftp.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from access/avio.c:37:
access/../codec/avcodec/avcommon.h: In function 'vlc_init_avformat':
access/../codec/avcodec/avcommon.h:105:5: warning: 'av_register_all' is deprecated [-Wdeprecated-declarations]
     av_register_all();
     ^~~~~~~~~~~~~~~
In file included from access/avio.h:24,
                 from access/avio.c:36:
/usr/include/libavformat/avformat.h:2043:6: note: declared here
 void av_register_all(void);
      ^~~~~~~~~~~~~~~
In file included from access/avio.c:37:
access/../codec/avcodec/avcommon.h: In function 'vlc_init_avcodec':
access/../codec/avcodec/avcommon.h:119:5: warning: 'avcodec_register_all' is deprecated [-Wdeprecated-declarations]
     avcodec_register_all();
     ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/libavformat/avformat.h:319,
                 from access/avio.h:24,
                 from access/avio.c:36:
/usr/include/libavcodec/avcodec.h:4102:6: note: declared here
 void avcodec_register_all(void);
      ^~~~~~~~~~~~~~~~~~~~
In file included from ../include/vlc_threads.h:236,
                 from ../include/vlc_common.h:409,
                 from access/satip.c:34:
access/satip.c: In function 'satip_thread':
../include/vlc_threads.h:975:43: warning: variable '__cancel_routine' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 # define vlc_cleanup_push( routine, arg ) pthread_cleanup_push (routine, arg)
                                           ^~~~~~~~~~~~~~~~~~~~
access/satip.c:464:9: note: in expansion of macro 'vlc_cleanup_push'
         vlc_cleanup_push(satip_cleanup_blocks, input_blocks);
         ^~~~~~~~~~~~~~~~
In file included from ../include/vlc_common.h:409,
                 from access/satip.c:34:
access/satip.c: In function 'satip_teardown':
../include/vlc_threads.h:878:19: warning: call to 'harmful_delay.constprop' declared with attribute warning: use proper event handling instead of short delay
 #define msleep(d) msleep(check_delay(d))
                   ^~~~~~~~~~~~~~~~~~~~~~
access/satip.c:417:13: note: in expansion of macro 'msleep'
             msleep(150000);
             ^~~~~~
make[4]: Leaving directory '/var/tmp/portage/media-video/vlc-3.0.6-r1/work/vlc-3.0.6/modules'
make[3]: *** [Makefile:27483: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/media-video/vlc-3.0.6-r1/work/vlc-3.0.6/modules'
make[2]: *** [Makefile:12537: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/media-video/vlc-3.0.6-r1/work/vlc-3.0.6/modules'
make[1]: *** [Makefile:1538: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-video/vlc-3.0.6-r1/work/vlc-3.0.6'
make: *** [Makefile:1423: all] Error 2
 * ERROR: media-video/vlc-3.0.6-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=media-video/vlc-3.0.6-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-video/vlc-3.0.6-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-video/vlc-3.0.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/vlc-3.0.6-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/vlc-3.0.6-r1/work/vlc-3.0.6'
 * S: '/var/tmp/portage/media-video/vlc-3.0.6-r1/work/vlc-3.0.6'
Comment 1 Conrad Kostecki gentoo-dev 2019-03-25 20:19:56 UTC
Created attachment 570814 [details]
build.log
Comment 2 Conrad Kostecki gentoo-dev 2019-03-25 20:20:01 UTC
Portage 2.3.62 (python 3.6.8-final-0, default/linux/amd64/17.1/desktop, gcc-8.3.0, glibc-2.28-r5, 5.0.4-gentoo x86_64)
=================================================================
System uname: Linux-5.0.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-6600U_CPU_@_2.60GHz-with-gentoo-2.6
KiB Swap:   17301500 total,  17301500 free
Timestamp of repository gentoo: Sun, 24 Mar 2019 16:15:01 +0000
Head commit of repository gentoo: 2f81dc6d06d1bdcb0d9c3c20c67cceb227c6b12d
sh bash 5.0_p3-r1
ld GNU ld (Gentoo 2.32 p1) 2.32.0
distcc 3.3.2 x86_64-pc-linux-gnu [disabled]
ccache version 3.6 [enabled]
app-shells/bash:          5.0_p3-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.8::gentoo, 3.7.2::gentoo
dev-util/ccache:          3.6::gentoo
dev-util/cmake:           3.14.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32::gentoo
sys-devel/gcc:            8.3.0::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes

crossdev
    location: /usr/local/crossdev
    masters: gentoo

serenity
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /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="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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="-frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox protect-owned sandbox sfperms sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-frecord-gcc-switches"
GENTOO_MIRRORS="https://mirror.netcologne.de/gentoo/"
INSTALL_MASK="/etc/systemd/* /etc/xinetd.d/* /usr/lib/systemd/*"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,-z,now"
LINGUAS="de de_DE"
MAKEOPTS="-j5 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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 aalib acl adns alsa amd64 berkdb bidi bluetooth bzip2 cairo caps cdda cddb cjk cracklib crypt cups curl cvs cxx dbus dga djvu dri dts dv dvb dvd encode exif fbcon ffmpeg fftw flac fontconfig fortran ftp gd gdbm geolocation gif git gmp gnome-keyring gnutls gphoto2 gpm graphviz gsm gstreamer gtk iconv icu idn ieee1394 imagemagick imlib inotify introspection ipv6 java javascript jbig jemalloc jit joystick jpeg jpeg2k lame latex lcms libass libcaca libnotify libsamplerate lm_sensors lua lzma lzo mad maildir matroska mhash mikmod milter mms mng modplug mono mp3 mpeg mplayer mtp musepack ncurses networkmanager nls nntp nptl nsplugin offensive ogg openal openexr opengl openmp opus orc oss pam pcre pdf perl pie png policykit postscript pulseaudio python qt5 quicktime raw rdp readline rtmp samba sasl scanner sctp sdl seccomp slang slp smartcard sndfile snmp sound sox speex spell sqlite ssl startup-notification subversion suid svg symlink syslog taglib tcpd theora threads tiff truetype udev udisks unicode upnp usb v4l vaapi vcd vdpau vim-syntax vnc vorbis vpx wavpack webkit webp wifi wmf wxwidgets x264 xattr xcb xcomposite xface xft xml xmp xpm xscreensaver xv xvid zeroconf zip zlib" ABI_X86="32 64" COLLECTD_PLUGINS="apcups battery cgroups conntrack contextswitch cpu cpufreq cpusleep df disk dns entropy ethstat exec fhcount filecount hddtemp hugepages interface ipc ipmi iptables irq load lvm java mcelog md memory mysql netlink nfs nginx ntpd openldap openvpn ping postgresql processes protocols rrdcached sensors serial smart snmp swap syslog tcpconns thermal turbostat unixsock uptime users" CPU_FLAGS_X86="aes avx avx2 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de_DE" LCD_DEVICES="cfontzpacket crystalfontz glcd2usb hd44780 lcd2usb" NGINX_MODULES_HTTP="access auth_basic autoindex brotli browser charset fancyindex fastcgi geo geoip geoip2 gunzip gzip headers_more limit_conn javascript proxy realip referer rewrite sticky stub_status upstream_keepalive vhost_traffic_status" NGINX_MODULES_STREAM="access geo geoip geoip2 javascript limit_conn realip return ssl_preread" PHP_TARGETS="php7-2" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby25 ruby26" SANE_BACKENDS="hp net" USERLAND="GNU" VIDEO_CARDS="i965 intel"
Unset:  CC, CPPFLAGS, CTARGET, CXX, PORTAGE_BINHOST
Comment 3 Conrad Kostecki gentoo-dev 2019-03-25 20:30:27 UTC
Patch attached, which fixes this.
Comment 4 Andreas Sturmlechner gentoo-dev 2019-04-06 16:33:24 UTC
Is this patch upstream?
Comment 5 Conrad Kostecki gentoo-dev 2019-04-06 16:34:26 UTC
(In reply to Andreas Sturmlechner from comment #4)
> Is this patch upstream?

Yes.
-> https://github.com/videolan/vlc/commit/11449b5cd8b415768e010d9b7c1d6ba3cea21f82
Comment 6 Andreas Sturmlechner gentoo-dev 2019-04-06 16:47:22 UTC
Thanks, then please make a proper git-format-patch out of that commit.
Comment 7 Conrad Kostecki gentoo-dev 2019-04-06 16:47:56 UTC
Already done :)
Comment 8 Larry the Git Cow gentoo-dev 2019-04-06 20:34:35 UTC
The bug has been closed via the following commit(s):

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

commit 6bc2447d478ecb43164615fc52b6248cf60d3671
Author:     Conrad Kostecki <conrad@kostecki.com>
AuthorDate: 2019-04-05 08:46:32 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-04-06 20:28:57 +0000

    media-video/vlc: fix build with sftp
    
    Closes: https://bugs.gentoo.org/681764
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Conrad Kostecki <conrad@kostecki.com>
    Closes: https://github.com/gentoo/gentoo/pull/11597
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-video/vlc/files/vlc-3.0.6-sftp.patch | 24 ++++++++++++++++++++++++
 media-video/vlc/vlc-3.0.6-r1.ebuild        |  1 +
 2 files changed, 25 insertions(+)