Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121028 - cyrus-sasl fails to compile
Summary: cyrus-sasl fails to compile
Status: RESOLVED DUPLICATE of bug 111016
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-31 03:15 UTC by Dennis Robertson
Modified: 2006-02-03 03:03 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Robertson 2006-01-31 03:15:13 UTC
if /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib -I../sasldb -I../include    -Wall -W -O2 -march=athlon-xp -pipe -MT ntlm.lo -MD -MP -MF ".deps/ntlm.Tpo" \
  -c -o ntlm.lo `test -f 'ntlm.c' || echo './'`ntlm.c; \
then mv ".deps/ntlm.Tpo" ".deps/ntlm.Plo"; \
else rm -f ".deps/ntlm.Tpo"; exit 1; \
fi
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib -I../sasldb -I../include -Wall -W -O2 -march=athlon-xp -pipe -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: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
!!! If you need support, post the topmost build error, and the call stack if relevant.

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 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-31 03:48:08 UTC
*** This bug has been marked as a duplicate of 111016 ***
Comment 2 Dennis Robertson 2006-02-01 00:15:31 UTC
If this was a resolved duplicate, the fix for bug 111016 would have worked, but it did not.

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 3 Jakub Moc (RETIRED) gentoo-dev 2006-02-01 00:20:20 UTC
Reopen with 'emerge -pv openssl' output.
Comment 4 Dennis Robertson 2006-02-01 03:51:49 UTC
emerge -pv openssl

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-libs/openssl-0.9.8a  USE="zlib -bindist -emacs -test" 0 kB

Total size of downloads: 0 kB
Comment 5 Dennis Robertson 2006-02-01 13:58:47 UTC
See emerge -pv openssl output above.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-02-01 14:08:41 UTC
# grep -C2 openssl /usr/portage/profiles/package.mask

# Martin Schlemmer <azarah@gentoo.org> (05 Jul 2005)
# Masked for testing, as it breaks api
>=dev-libs/openssl-0.9.8

Report this upstream, as already said in the other bug.

*** This bug has been marked as a duplicate of 111016 ***
Comment 7 Dennis Robertson 2006-02-03 03:03:36 UTC
OK, that fixed it. Sorry for the bother.