Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146271 - pam_ssh breaks with openssl 0.9.8b
Summary: pam_ssh breaks with openssl 0.9.8b
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Developers for the x86 Architecture
URL:
Whiteboard:
Keywords:
: 147068 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-04 08:07 UTC by Meethune Bhowmick
Modified: 2006-09-12 02:09 UTC (History)
5 users (show)

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


Attachments
Patch to fix compilation error when built against >=openssl-0.9.8 (pam_ssh-1.91-openssl.patch,290 bytes, patch)
2006-09-04 08:11 UTC, Meethune Bhowmick
Details | Diff
Ebuild that applies patch and fixes compilaton error (pam_ssh-1.91-r3.ebuild,1.16 KB, text/plain)
2006-09-04 08:12 UTC, Meethune Bhowmick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Meethune Bhowmick 2006-09-04 08:07:01 UTC
In openssl >= 0.9.8, md5 functions have been broken out into their own header. This causes pam_ssh to break while compiling. I've fixed this and am supplying a patch and updated ebuild.

Here is the compilation error I get with the current pam_ssh ebuild in portage:
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/security -Wall -O2 -march=athlon-xp -fomit-frame-pointer -pipe -MT cipher.lo -MD -MP -MF .deps/cipher.Tpo -c cipher.c  -fPIC -DPIC -o cipher.lo
cipher.c: In function 'cipher_set_key_string':
cipher.c:300: error: 'MD5_CTX' undeclared (first use in this function)
cipher.c:300: error: (Each undeclared identifier is reported only once
cipher.c:300: error: for each function it appears in.)
cipher.c:300: error: expected ';' before 'md'
cipher.c:303: warning: implicit declaration of function 'MD5_Init'
cipher.c:303: error: 'md' undeclared (first use in this function)
cipher.c:304: warning: implicit declaration of function 'MD5_Update'
cipher.c:305: warning: implicit declaration of function 'MD5_Final'
make[1]: *** [cipher.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/pam_ssh-1.91-r2/work/pam_ssh-1.91'
make: *** [all] Error 2


Here is some info about my system:

[ebuild   R   ] dev-libs/openssl-0.9.8b

mbhowmic@vishnu /usr/local/overlays/portage/sys-auth/pam_ssh $ emerge --info
Portage 2.1.1_rc1-r3 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.4
Last Sync: Mon, 04 Sep 2006 02:30:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/portage"
SYNC="rsync://raptor.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X a52 aac accessibility acpi alsa apache2 apm avi bash-completion beagle berkdb bitmap-fonts bzip2 bzlib cairo cdr cjk cli crypt cups dbus dga dlloader dri dvd dvdr dvi eds elibc_glibc emboss encode ethereal expat firefox flac foomaticdb fortran freetype gd gdbm gif gksu gmail gnome gnomedb gnutls gpm gstreamer gtk gtk2 hal howl imap imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jikes jpeg junit kernel_linux lcms ldap libg++ libnotify libwww linguas_en logrotate mad mbox mikmod mmx mng mono motif mp3 mpeg mplayer nautilus ncurses network nfs nls nntp nptl ntlm nvidia offensive ogg opengl oss pam pam_console pcre pda pdf pdflib perl pic png posix pppd pthreads pwdb python qemu-fast qt qt3 quicktime readline reflection rtc sdl session skey soap spell spl sqlite sse ssl svg t1lib tcpd tetex threads tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa vorbis win32codecs xinerama xml xml2 xmms xorg xprint xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Meethune Bhowmick 2006-09-04 08:11:02 UTC
Created attachment 95962 [details, diff]
Patch to fix compilation error when built against >=openssl-0.9.8
Comment 2 Meethune Bhowmick 2006-09-04 08:12:27 UTC
Created attachment 95963 [details]
Ebuild that applies patch and fixes compilaton error
Comment 3 Bill C. Riemers 2006-09-05 06:10:46 UTC
Same problem.  I am not sure how to apply the patch within an emerge environment...

Gentoo Base System version 1.12.4
Portage 2.1.1_rc1-r3 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-reiser4-r1-nosmp x86_64)
=================================================================
System uname: 2.6.17-reiser4-r1-nosmp x86_64 AMD Athlon(tm) 64 Processor 3200+
Last Sync: Mon, 04 Sep 2006 02:00:10 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=x86-64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/share/config/kdm /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=x86-64 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en it es de gr fr jp ga hu ja lt nb fi el pt ro ru sk sl sr sv zh_CN da ja en_GB nl pl"
MAKEOPTS="-s -j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlay /usr/local/gentopia /usr/local/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac aalib accessibility acpi ada alsa apache2 arts artswrappersuid asterisk audiofile avahi avi berkdb bitmap-fonts bluetooth browserplugin bzip2 cairo canvas cdda cdr cjk cli commercial crypt css cups dbus dga divx4linux djvu dlloader dri dts dvb dvd dvdr dvdread dvi eds elibc_glibc emboss encode evo exif exscalibar fat ffmpeg firefox flac foomatic-db foomaticdb fortran freetype fuse gcj gdbm gif gimpprint glitz glut gnokii gnome gnutls gphoto2 gpm gstreamer gtk gtk2 hal hfs ieee1394 imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipod ipv6 irda isdnlog jack java jfs joystick jpeg jpeg2k kde kdeenablefinal kdgraphics kerberos kernel_linux kig-scripting ladspa lcd ldap libcaca linguas_da linguas_de linguas_el linguas_en linguas_en_GB linguas_es linguas_fi linguas_fr linguas_ga linguas_gr linguas_hu linguas_it linguas_ja linguas_jp linguas_lt linguas_nb linguas_nl linguas_pl linguas_pt linguas_ro linguas_ru linguas_sk linguas_sl linguas_sr linguas_sv linguas_zh_CN lirc live livecd lm_sensors logitech-mouse lzw lzw-tiff mad mbrola mikmod mono mozcalendar moznocompose moznoirc moznomail mozsvg mp3 mpeg musepack musicbrainz nautilus ncurses nls nntp nptl nptlonly nsplugin ntfs nvidia ogg oggvorbis ole on-the-fly-crypt openexr opengl pam pam_chroot pam_timestamp pcmcia pcre pda pdf pdflib perforce perl php png portaudio postgres povray ppds pppd pwdb python qt qt3 qt4 quicktime rdesktop readline reflection reiser4 reiserfs remote rtsp ruby samba scanner sdl session shout skins smartcard sms sndfile soundtouch speedo speex spell spl sql sqlite ssl stats stream subversion svg symlink tcpd theora tiff timidity truetype truetype-fonts type1-fonts udev unichrome unicode usb userland_GNU v4l v4l2 vcd video_cards_apm video_cards_ark video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_fglrx video_cards_glint video_cards_i128 video_cards_i810 video_cards_mach64 video_cards_mga video_cards_neomagic video_cards_nv video_cards_nvidia video_cards_r128 video_cards_radeon video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo visualization vlm vorbis wifi wxwindows xfs xine xinerama xml xml2 xorg xpm xprint xscreensaver xv xvid xvmc zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-07 07:38:31 UTC
(In reply to comment #3)
> Same problem.  I am not sure how to apply the patch within an emerge
> environment...

like this: http://gentoo-wiki.com/HOWTO_Create_an_Updated_Ebuild

Patch applied fine to 1.91-r2, compiled and works ok on x86. Please make it into stable ASAP, now that openssl-0.9.8c is stable.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-09-10 09:39:43 UTC
*** Bug 147068 has been marked as a duplicate of this bug. ***
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-09-11 17:00:52 UTC
I've added a slightly different patch to portage, without the #if condition (builds fine on 0.9.7 this way, too).

x86 please mark 1.91-r2 stable, your current stable is broken, two times most likely (glibc 2.4, too).
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2006-09-12 00:36:24 UTC
1) emerges fine
2) passes collision test
3) seems to work

Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.4
Last Sync: Tue, 12 Sep 2006 06:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 alsa arts artworkextra asf audiofile avi bash-completion beagle berkdb bidi bitmap-fonts bootsplash branding bzip2 cairo cdda cddb cdparanoia cdr cli cracklib crypt css cups curl custom-cflags dbus dga directfb divx4linux dlloader dri dts dvd dvdr dvdread dvi eds elibc_glibc emacs emboss encode esd evo exif expat fam fat fbcon ffmpeg firefox fortran ftp gb gcj gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal icq idn imagemagick imap input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jikes jpeg jpeg2k kernel_linux ldap leim libg++ linguas_de lm_sensors mad maildir matroska mbox mikmod mime mmx mmxext mng mono mp3 mpeg mpeg2 mule nautilus ncurses nforce2 nls nocardbus nptl nptlonly nsplugin nvidia objc ogg opengl pam pcre pdf pdflib perl plotutils pmu png ppds pppd preview-latex print python qt3 qt4 quicktime readline reflection reiserfs samba sdk session slang spell spl sse ssl svg svga t1lib tcltk tcpd tetex theora thunderbird tiff truetype truetype-fonts type1-fonts udev usb userland_GNU vcd video_cards_fbdev video_cards_radeon video_cards_vesa videos vorbis win32codecs wmf wxwindows xine xml xorg xosd xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 Andrej Kacian (RETIRED) gentoo-dev 2006-09-12 02:09:36 UTC
Marked stable on x86, thanks. Closing bug, as I can't see any more arch teams in CC list.