Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111016 - cyrus-sasl-2.1.21-r1 fails with openssl-0.9.8a
Summary: cyrus-sasl-2.1.21-r1 fails with openssl-0.9.8a
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
: 121028 (view as bug list)
Depends on: 111178
Blocks:
  Show dependency tree
 
Reported: 2005-10-31 06:38 UTC by Michael Cramer
Modified: 2006-02-01 14:08 UTC (History)
1 user (show)

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


Attachments
cyrus-sasl-2.1.21-fix-md5.patch (cyrus-sasl-2.1.21-fix-md5.patch,726 bytes, patch)
2005-11-01 09:40 UTC, Michael Cramer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cramer 2005-10-31 06:38:53 UTC
have installed a new system from stage1 and unmasked openssl-0.9.8a, during
emerge cyrus-sasl following error occurs:

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib
-I../sasldb -I../include -I/usr/include/mysql -I/usr/include -Wall -W -MT
ntlm.lo -MD -MP -MF .deps/ntlm.Tpo -c ntlm.c  -fPIC -DPIC -o ntlm.lo
In file included from ../include/saslplug.h:14,
                 from ntlm.c:96:
../include/hmac-md5.h:11: error: parse error before "MD5_CTX"
../include/hmac-md5.h:11: warning: no semicolon at end of struct or union
../include/hmac-md5.h:12: warning: type defaults to `int' in declaration of
`HMAC_MD5_CTX'
../include/hmac-md5.h:12: warning: data definition has no type or storage class
../include/hmac-md5.h:36: error: parse error before '*' token
../include/hmac-md5.h:46: error: parse error before '*' token
../include/hmac-md5.h:53: error: parse error before "HMAC_MD5_CTX"
In file included from ntlm.c:96:
../include/saslplug.h:73: error: parse error before '*' token
../include/saslplug.h:74: error: parse error before '*' token
../include/saslplug.h:75: error: parse error before "MD5_CTX"
../include/saslplug.h:79: error: parse error before '*' token
../include/saslplug.h:81: error: parse error before "HMAC_MD5_CTX"
../include/saslplug.h:84: error: parse error before '*' token
ntlm.c: In function `ntlm_server_mech_step2':
ntlm.c:1574: error: `MD5_DIGEST_LENGTH' undeclared (first use in this function)
ntlm.c:1574: error: (Each undeclared identifier is reported only once
ntlm.c:1574: error: for each function it appears in.)
ntlm.c: In function `ntlm_client_mech_step2':
ntlm.c:2002: error: `MD5_DIGEST_LENGTH' undeclared (first use in this function)
make[2]: *** [ntlm.lo] Fehler 1
make[2]: Leaving directory
`/var/tmp/portage/cyrus-sasl-2.1.21-r1/work/cyrus-sasl-2.1.21/plugins'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory
`/var/tmp/portage/cyrus-sasl-2.1.21-r1/work/cyrus-sasl-2.1.21'
make: *** [all] Fehler 2

!!! ERROR: dev-libs/cyrus-sasl-2.1.21-r1 failed.
!!! Function src_compile, Line 183, Exitcode 2
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message.

after looking around at the web, i found the following fix, attached as patch.
with this one everything goes well


Reproducible: Always
Steps to Reproduce:
1. emerge openssl-0.9.8a
2. emerge cyrus-sasl-2.1.21-r1
3. error at ntlm.c

Actual Results:  
emerge failed with openssl-0.9.8a

Expected Results:  
should compile with openssl-0.9.8a
Comment 1 Michael Cramer 2005-11-01 09:40:13 UTC
Created attachment 71880 [details, diff]
cyrus-sasl-2.1.21-fix-md5.patch

forgot to submit the patch, but now i found another md5 error which the actual
patch also fixes, one occour with USE="srp" the other under normal conditions
Comment 2 Fernando J. Pereda (RETIRED) gentoo-dev 2005-11-05 05:30:11 UTC
Since openssl-0.9.8a is '-*' you should take this upstream to get it merged
there befor openssl-0.9.8a is ready to go stable on Gentoo.

Cheers,
Ferdy
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-01-31 03:48:08 UTC
*** Bug 121028 has been marked as a duplicate of this bug. ***
Comment 4 Dennis Robertson 2006-01-31 16:07:44 UTC
I applied the patch:

<<< files/cyrus-sasl-2.1.21-fix-md5.patch

and still get this error, which I posted as bug 121028 and on the forums as http://forums.gentoo.org/viewtopic-t-427396-highlight-cyrussasl.html:

In file included from ../include/saslplug.h:14,
                 from ntlm.c:96:
../include/hmac-md5.h:11: error: parse error before "MD5_CTX"
../include/hmac-md5.h:11: warning: no semicolon at end of struct or union
../include/hmac-md5.h:12: warning: type defaults to `int' in declaration of `HMAC_MD5_CTX'
../include/hmac-md5.h:12: warning: data definition has no type or storage class
../include/hmac-md5.h:36: error: parse error before '*' token
../include/hmac-md5.h:46: error: parse error before '*' token
../include/hmac-md5.h:53: error: parse error before "HMAC_MD5_CTX"
In file included from ntlm.c:96:
../include/saslplug.h:73: error: parse error before '*' token
../include/saslplug.h:74: error: parse error before '*' token
../include/saslplug.h:75: error: parse error before "MD5_CTX"
../include/saslplug.h:79: error: parse error before '*' token
../include/saslplug.h:81: error: parse error before "HMAC_MD5_CTX"
../include/saslplug.h:84: error: parse error before '*' token
ntlm.c: In function `ntlm_server_mech_step2':
ntlm.c:1491: warning: dereferencing type-punned pointer will break strict-aliasing rules
ntlm.c:1497: warning: dereferencing type-punned pointer will break strict-aliasing rules
ntlm.c:1574: error: `MD5_DIGEST_LENGTH' undeclared (first use in this function)
ntlm.c:1574: error: (Each undeclared identifier is reported only once
ntlm.c:1574: error: for each function it appears in.)
ntlm.c: In function `ntlm_client_mech_step2':
ntlm.c:1987: warning: dereferencing type-punned pointer will break strict-aliasing rules
ntlm.c:2002: error: `MD5_DIGEST_LENGTH' undeclared (first use in this function)
make[2]: *** [ntlm.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/cyrus-sasl-2.1.21-r2/work/cyrus-sasl-2.1.21/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/cyrus-sasl-2.1.21-r2/work/cyrus-sasl-2.1.21'
make: *** [all] Error 2

!!! ERROR: dev-libs/cyrus-sasl-2.1.21-r2 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile

!!! compile problem

emerge --info
Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.6-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.12.0_pre15
ccache version 2.4 [enabled]
dev-lang/python:     2.2.3-r6, 2.3.5-r2, 2.4.2
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-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.iinet.net.au/pub/Gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X alsa apm arts artswrappersuid authdaemond avi bash-completion bigger-fonts bitmap-fonts bzip2 cdparanoia crypt cups cyrus dmx dvd dvdr eds emboss encode escreen fbcon foomaticdb fortran fpx gcj gdbm gif gimp gimpprint glibc-compat20 glibc-omitfp gnome gpm graphviz gstreamer gtk gtk2 idea imap imlib ipv6 java javamail javascript jikes jpeg justify kde kdeenablefinal libg++ libwww mad maildir mailwrapper mikmod mmx mmxext motif mozilla moznoxft mp3 mpeg mplayer ncurses network new-login nls nptl nptlonly nsplugin ntlm ogg opengl oss pam pdflib perl png ppds python qt quicktime readline sample sasl sdl spell sse ssl tcpd tiff truetype truetype-fonts type1-fonts udev urandom usb userlocales vim vim-pager vim-with-x vorbis wmf xml2 xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-02-01 14:08:41 UTC
*** Bug 121028 has been marked as a duplicate of this bug. ***