Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304301 - net-libs/libssh-0.4.0 fails to build
Summary: net-libs/libssh-0.4.0 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-10 12:02 UTC by Tobias Leupold
Modified: 2010-02-18 18:27 UTC (History)
0 users

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


Attachments
The complete build.log (build.log,6.79 KB, text/plain)
2010-02-10 12:03 UTC, Tobias Leupold
Details
tries to fix libssh-0.4.0 compilation when USE="debug" used (libssh-0.4.0.ebuild,1.41 KB, patch)
2010-02-10 18:23 UTC, Arttu Valo
Details | Diff
ok, this is the patch, ignore the ebuild; sry for the confusion :D (libssh-0.4.0-debug.patch,755 bytes, patch)
2010-02-10 18:24 UTC, Arttu Valo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Leupold 2010-02-10 12:02:12 UTC
net-libs/libssh-0.4.0 (required by KDE 4.4.0) fails to build on my machine:

[ 46%] Building C object libssh/CMakeFiles/ssh_shared.dir/gzip.c.o                                                       
[ 50%] Building C object libssh/CMakeFiles/ssh_shared.dir/init.c.o                                                       
[ 53%] Building C object libssh/CMakeFiles/ssh_shared.dir/kex.c.o                                                        
/var/tmp/portage/net-libs/libssh-0.4.0/work/libssh-0.4.0/libssh/kex.c: In function 'build_session_id1':                  
/var/tmp/portage/net-libs/libssh-0.4.0/work/libssh-0.4.0/libssh/kex.c:490: error: dereferencing pointer to incomplete type                                                                                                                        
/var/tmp/portage/net-libs/libssh-0.4.0/work/libssh-0.4.0/libssh/kex.c:491: error: dereferencing pointer to incomplete type                                                                                                                        
make[2]: *** [libssh/CMakeFiles/ssh_shared.dir/kex.c.o] Error 1                                                          
make[2]: *** Waiting for unfinished jobs....                                                                             
make[1]: *** [libssh/CMakeFiles/ssh_shared.dir/all] Error 2                                                              
make: *** [all] Error 2                                                                                                  
 * ERROR: net-libs/libssh-0.4.0 failed:                                                                                  
 *   Make failed!                                                                                                        
 *                                                                                                                       
 * Call stack:                                                                                                           
 *     ebuild.sh, line   54:  Called src_compile                                                                         
 *   environment, line 2995:  Called cmake-utils_src_compile                                                             
 *   environment, line  764:  Called _execute_optionaly 'src_compile'
 *   environment, line  247:  Called enable_cmake-utils_src_compile
 *   environment, line 1121:  Called cmake-utils_src_make
 *   environment, line  783:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 *
 * If you need support, post the output of 'emerge --info =net-libs/libssh-0.4.0',
 * the complete build log and the output of 'emerge -pqv =net-libs/libssh-0.4.0'.
 * The complete build log is located at '/var/tmp/portage/net-libs/libssh-0.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/libssh-0.4.0/temp/environment'.
 * S: '/var/tmp/portage/net-libs/libssh-0.4.0/work/libssh-0.4.0'

Here's my emerge --info:

Portage 2.1.7.16 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31.6 x86_64)       
=================================================================                                      
System uname: Linux-2.6.31.6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1       
Timestamp of tree: Wed, 10 Feb 2010 11:30:01 +0000                                                     
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                              
app-shells/bash:     4.0_p35                                                                           
dev-java/java-config: 2.1.10                                                                           
dev-lang/python:     2.6.4, 3.1.1-r1                                                                   
dev-util/cmake:      2.6.4-r3                                                                          
sys-apps/baselayout: 2.0.1                                                                             
sys-apps/openrc:     0.4.3-r4                                                                          
sys-apps/sandbox:    1.6-r2                                                                            
sys-devel/autoconf:  2.13, 2.63-r1                                                                     
sys-devel/automake:  1.9.6-r2, 1.10.2                                                                  
sys-devel/binutils:  2.20                                                                              
sys-devel/gcc:       4.3.4                                                                             
sys-devel/gcc-config: 1.4.1                                                                            
sys-devel/libtool:   2.2.6b                                                                            
virtual/os-headers:  2.6.27-r2                                                                         
ACCEPT_KEYWORDS="amd64"                                                                                
ACCEPT_LICENSE="* -@EULA"                                                                              
CBUILD="x86_64-pc-linux-gnu"                                                                           
CFLAGS="-march=core2 -O2 -pipe -msse4.1 -ggdb"                                                         
CHOST="x86_64-pc-linux-gnu"                                                                            
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                             
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 /etc/udev/rules.d"                                                                                                          
CXXFLAGS="-march=core2 -O2 -pipe -msse4.1 -ggdb"
DISTDIR="/usr/src/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="        http://ftp.uni-erlangen.de/pub/mirrors/gentoo/  http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/       http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ "
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage/tree"
PORTDIR_OVERLAY="/var/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus debug dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gpm gtk hal iconv ipv6 jpeg kde ldap libnotify lm_sensors mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection sdl semantic-desktop session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora thunar tiff truetype unicode usb vim-syntax vorbis wmf x264 xine xml xorg xulrunner xv xvid zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Reproducible: Always

Steps to Reproduce:
Comment 1 Tobias Leupold 2010-02-10 12:03:18 UTC
Created attachment 219089 [details]
The complete build.log
Comment 2 Arttu Valo 2010-02-10 18:23:20 UTC
Created attachment 219119 [details, diff]
tries to fix libssh-0.4.0 compilation when USE="debug" used

Maybe these newer gcc versions are again stricter wrt included headers? I had to add libssh/string.h includes to two files to get the type defined and libssh compiling with gcc 4.4.3 on an amd64.

I don't know if upstream will like a patch like this. They might already have this fixed, as their pace of development for 0.5.0 branch has changed their tree and code quite considerably.
Comment 3 Arttu Valo 2010-02-10 18:24:12 UTC
Created attachment 219121 [details, diff]
ok, this is the patch, ignore the ebuild; sry for the confusion :D
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2010-02-18 18:27:23 UTC
Thank you Arttu and Tobias Leupold. Fixed in 0.4.1.