Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493970 - net-libs/libssh-0.6.0_rc2 - ...2/work/libssh-0.6.0rc2/src/curve25519.c:93:3: error: passing argument 3 of ‘BN_bin2bn’ from incompatible pointer type
Summary: net-libs/libssh-0.6.0_rc2 - ...2/work/libssh-0.6.0rc2/src/curve25519.c:93:3: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-11 21:01 UTC by Gary E. Miller
Modified: 2014-01-16 17:32 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,21.12 KB, text/plain)
2013-12-11 21:02 UTC, Gary E. Miller
Details
Environment (environment,108.97 KB, text/plain)
2013-12-11 21:02 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2013-12-11 21:01:16 UTC
ebuild fails to emerge

Reproducible: Always

Steps to Reproduce:
1. emerge net-libs/libssh-0.6.0_rc2
2.
3.
Actual Results:  
fails to emerge

Expected Results:  
emerge succeeds

kong ~ # emerge --info '=net-libs/libssh-0.6.0_rc2::gentoo'
Portage 2.2.7 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.2, glibc-2.17, 3.12.4-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.12.4-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.2
KiB Mem:    12297540 total,    571636 free
KiB Swap:   33554424 total,  33553956 free
Timestamp of tree: Wed, 11 Dec 2013 16:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.1-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.5-r1, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/bind /var/lib/hsqldb"
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=amdfam10 -O2 -pipe"
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 sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.llarian.net/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.osuosl.org/ http://gentoo.gossamerhost.com http://gentoo.mirrors.tera-byte.com/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
PORTAGE_TMPDIR="/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://spidey.rellim.com/gentoo-portage"
USE="256-color 3dnow 3dnowext X a52 aac aacplus aalib acl acpi adns ads afterimage airplay alsa amarok amazon amd64 ao apache2 applet ares aspell asyncdns attica audacious audiofile auth autoipd autotrace avahi background bash-completion berkdb binfilter bl blink bluetooth bogofilter bonjour bonobo bookmarks bootsplash branding bzip2 cairo caps cdaudio cdda cdinstall cdr cgi cgroup chroot cle266 cleartype cli command-args consolekit contentcache corba cracklib crypt cscope css csv ctype cups curl curlwrappers cursors cxx daap dba dbm dbus dbx dcc dcraw declarative devfs26 device-mapper dga dirac disassembler discard-path divx dlz dmi dmx docbook dpms dri dtmf dts dv dvb dvd dvdr dvdread dvi dynagraph dynamicplugin ecc edl egl emboss encode equalizer escreen espeak ethereal etwin exif expat exscalibar extensions extramodules faac faad fading-colors faillog fam fame fat festival ffmpeg ffmpeg-mt fftw firefox fits flac flash flatfile fltk fmod fontconfig foomatic-db foomaticdb fortran fpx freetts ftp g3dvl gadu gajim gallium gcj gconf gcrypt gd gdal gdbm gdu gecko-mediaplayer geoip geometry geonames geotiff gif gimp gimpprint glade glamor gles gles1 gles2 glew glib glitz glut gmath gmedia gml gmp gmplayer gnuplot gnustep gnutls gost gphoto2 gpm gps graphite graphviz grass gs gsl gsm gstreamer gstreamer010 gtk gtkhtml gtkspell guile h323 hardened hdf5 hdri hostip howl howl-compat http httpd icecast iconv icq id3 idea ilbc imagemagick imap imlib imlib2 inkjar inode inotify insecure-savers int64 introspection ipv6 iso14755 jabber jack jadetex java javascript jbig jce jingle john jpeg jpeg2k karma kde kdepim kipi kpathsea ladspa lame lastfm latex lcms ldap libass libedit libextractor libnotify libsamplerate libv4l2 libvisual live lm_sensors logrotate lpr lua lv2 lyrics lzma lzo mad manual mapnik marble matroska mbox md5sum mdadm mdnsresponder-compat menubar midi mikmod milter mime mimencode mmap mmx mmxext mng mnogosearch mod modplug modules mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpg123 mpi mplayer mpm-worker mtp mudflap multilib munin-apache munin-dhcp munin-irc munin-squid munin-surfboard musepack musicbrainz mythtv na_dd na_icons nagios-dns nagios-ntp nagios-ping nagios-ssh ncat ncurses ndiff net netlink network networking nfs nls nodrm nominatim nping nptl nsplugin nss ntp objc offensive ogg oggvorbis on-the-fly-crypt openal openctl openexr opengl openmp openssh openssl opensslcrypt openvg opus oscar osmesa oss otr pam pango parse-clocks passfile passwdqc passwordsave paste64 pcap pci pcmcia pcre pdf pdfimport perl phonon php pidgin pixbuf plasma player plazes plotutils png pnm policykit pop3d portage portaudio posix postproc ppds print priority procmail proj pulseaudio pvr python pyzor qt3support qt4 quicktime rar raw razor rc5 rdesktop readline realmedia realtime recursor redland remix rle rpz rrdcgi rrdtool rss rtc rtf rtmp rtsp run-as-root samba sasl scanner schroedinger screen scripts sdk sdl secure-delete semantic-desktop sendmail sendto sensord serial server session sftp sftplogging shape sharedext shmvideo shorten shout silc sip sipim skins slp smi smime smp smtp sndfile snmp soap sockets sofia-sip softfax sound spamassassin speex spell spf sqlite srt sse sse2 sse3 sse4a ssh ssl startup-notification static-modules stats stream subtitles subversion svg svgz swat swig syntax-check sysfs syslog sysvipc szip t1lib taglib tagwriting tcl tcltk tcpd template tetex tga themes theora thesaurus threads threadsafe thumbnail thunderbird tidy tiff timidity tk tokenizer tokyocabinet toolbar tools transcode truetype twolame type1 udev udisks ugly unicode unzip upnp upower ups urandom usb utils v4l v4l2 vaapi vcd vdpau vdr vhosts video vim vim-syntax visualization vlc vlm vnc vorbis vorbis-psy vpx watchdog wavpack web webkit webkit2 webserver wfs widescreen wikipedia winbind wma wmf wmp wxwindows x264 xa xanim xattr xcb xcomposite xface xft xine xinerama xml xmlrpc xorg xosd xpm xrandr xrender xscreensaver xsettings xsl xslt xterm xulrunner xv xvfb xvid xvmc yaepg yahoo yahoo-geo zeroconf zip zlib zrtp zvbai zvbi" ABI_X86="64 32" 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" 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" GRUB_PLATFORMS="emu gentoo_platforms_efi-32 gentoo_platforms_efi-64 pc" INPUT_DEVICES="keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="gphoto2 abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc25 dc210 dc240 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpsj5s hpljm1005 hs2p ibm kodak kodakaio kvs1025 kvs20xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax_pp umax1220u xerox_mfp" USERLAND="GNU" VIDEO_CARDS="vesa nouveau radeon radeonsi" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

kong ~ # emerge -pqv '=net-libs/libssh-0.6.0_rc2::gentoo'
[ebuild     U ] net-libs/libssh-0.6.0_rc2 [0.6.0_rc1] USE="gcrypt pcap server sftp zlib -debug -doc -examples -ssh1 -static-libs {-test}"
Comment 1 Gary E. Miller 2013-12-11 21:02:27 UTC
Created attachment 365112 [details]
build.log
Comment 2 Gary E. Miller 2013-12-11 21:02:52 UTC
Created attachment 365114 [details]
Environment
Comment 3 Gary E. Miller 2013-12-11 21:04:06 UTC
[ 21%] Building C object src/CMakeFiles/ssh_shared.dir/curve25519.c.o
cd /tmp/portage/net-libs/libssh-0.6.0_rc2/work/libssh-0.6.0_rc2_build/src && /usr/bin/x86_64-pc-linux-gnu-gcc  -DLIBSSH_EXPORTS  -DNDEBUG -march=amdfam10 -O2 -pipe  -std=gnu99 -pedantic -pedantic-errors -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement -Wunused -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fPIC -fstack-protector -D_LARGEFILE64_SOURCE -fPIC -I/tmp/portage/net-libs/libssh-0.6.0_rc2/work/libssh-0.6.0_rc2_build/src -I/tmp/portage/net-libs/libssh-0.6.0_rc2/work/libssh-0.6.0rc2/src -I/tmp/portage/net-libs/libssh-0.6.0_rc2/work/libssh-0.6.0rc2/include -I/tmp/portage/net-libs/libssh-0.6.0_rc2/work/libssh-0.6.0_rc2_build    -fvisibility=hidden -o CMakeFiles/ssh_shared.dir/curve25519.c.o -c /tmp/portage/net-libs/libssh-0.6.0_rc2/work/libssh-0.6.0rc2/src/curve25519.c
/tmp/portage/net-libs/libssh-0.6.0_rc2/work/libssh-0.6.0rc2/src/curve25519.c: In function ‘ssh_curve25519_build_k’:
/tmp/portage/net-libs/libssh-0.6.0_rc2/work/libssh-0.6.0rc2/src/curve25519.c:93:3: error: passing argument 3 of ‘BN_bin2bn’ from incompatible pointer type
   BN_bin2bn(k, CURVE25519_PUBKEY_SIZE, session->next_crypto->k);
   ^
In file included from /usr/include/openssl/asn1.h:74:0,
                 from /usr/include/openssl/ec.h:85,
                 from /usr/include/openssl/ecdh.h:78,
                 from /tmp/portage/net-libs/libssh-0.6.0_rc2/work/libssh-0.6.0rc2/include/libssh/crypto.h:43,
                 from /tmp/portage/net-libs/libssh-0.6.0_rc2/work/libssh-0.6.0rc2/src/curve25519.c:37:
/usr/include/openssl/bn.h:453:9: note: expected ‘struct BIGNUM *’ but argument is of type ‘bignum’
 BIGNUM *BN_bin2bn(const unsigned char *s,int len,BIGNUM *ret);
         ^
src/CMakeFiles/ssh_shared.dir/build.make:264: recipe for target 'src/CMakeFiles/ssh_shared.dir/curve25519.c.o' failed
Comment 4 Gary E. Miller 2013-12-11 21:10:16 UTC
I'm running dev-libs/openssl-1.0.1e-r2
Comment 5 Manuel Lauss 2013-12-13 14:46:47 UTC
it builds without the "gcrypt" use flag
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-01-06 13:37:58 UTC
Closing as CANTFIX as upstream doesn't support gcrypt anymore and we already removed the USE flag from libssh ebuilds.

Please note that upstream plans to support nettle with libssh-0.7.0 instead.
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-01-16 17:32:43 UTC
Changing to FIXED as =net-libs/libssh-0.6.0 works again with gcrypt.