Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38699 - cyrus-sasl-2.1.17 fails to compile
Summary: cyrus-sasl-2.1.17 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-19 04:30 UTC by Veiko Kukk
Modified: 2004-03-15 12:26 UTC (History)
9 users (show)

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


Attachments
full emerge log (emergelog,60.68 KB, text/plain)
2004-02-15 03:22 UTC, Jens Lindemann
Details
Patch the java Makefile to add .libs dir to search path (cyrus-sasl-2.1.17-java-Makefile.patch,610 bytes, patch)
2004-03-09 17:52 UTC, Ronald Hummelink
Details | Diff
Patch the ebuild to apply above patch if use java (cyrus-sasl-2.1.17.ebuild.patch,629 bytes, patch)
2004-03-09 17:54 UTC, Ronald Hummelink
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Veiko Kukk 2004-01-19 04:30:09 UTC
/blackdown-jdk-1.4.1/include/linux -I/include -I/usr/include/mysql -I/usr/include/postgresql/ pgsql -Wall -W -Os -march=athlon-xp -funroll-loops -mmmx -m3dnow -msse -fomit-frame-pointer - MT javasasl.lo -MD -MP -MF .deps/javasasl.Tpo -c javasasl.c  -fPIC -DPIC -o javasasl.lo
javasasl.c: In function `Java_CyrusSasl_GenericClient_jni_1sasl_1client_1start':
javasasl.c:453: warning: unused variable `res2'
javasasl.c: In function `Java_CyrusSasl_GenericCommon_jni_1sasl_1getSecurity':
javasasl.c:922: warning: dereferencing type-punned pointer will break strict-aliasing rules
/bin/sh ../../libtool --mode=link gcc  -Wall -W -Os -march=athlon-xp -funroll-loops -mmmx -m3 dnow -msse -fomit-frame-pointer   -o libjavasasl.la -rpath /usr/lib -export_dynamic -L../../l ib -lsasl2 -version-info 1:0:0  javasasl.lo  -lresolv
mkdir .libs
(cd . && ln -s javasasl.lo javasasl.o)
gcc -shared  javasasl.lo  -L../../lib -lsasl2 -lresolv -lc  -Wl,-soname -Wl,libjavasasl.so.1 -o .libs/libjavasasl.so.1.0.0
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -l sasl2
collect2: ld returned 1 exit status
make[4]: *** [libjavasasl.la] Error 1
make[4]: Leaving directory `/var/tmp/portage/cyrus-sasl-2.1.17/work/cyrus-sasl-2.1.17/java/Cy rusSasl'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/cyrus-sasl-2.1.17/work/cyrus-sasl-2.1.17/java/Cy rusSasl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/cyrus-sasl-2.1.17/work/cyrus-sasl-2.1.17/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/cyrus-sasl-2.1.17/work/cyrus-sasl-2.1.17'
make: *** [all] Error 2
 
!!! ERROR: dev-libs/cyrus-sasl-2.1.17 failed.
!!! Function src_compile, Line 96, Exitcode 2
!!! compile problem


Reproducible: Always
Steps to Reproduce:




emerge info
Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.1)
=================================================================
System uname: 2.6.1 i686 AMD Duron(tm) processor
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=athlon-xp -funroll-loops -mmmx -m3dnow -msse
-fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-Os -march=athlon-xp -funroll-loops -mmmx -m3dnow -msse
-fomit-frame-pointer -Wno-deprecated"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://noa.linux.ee/gentoo-portage"
USE="3dnow X aalib acl acpi alsa apache2 apm arts avi berkdb bonobo cdr cjk
crypt cups dga directfb dvd encode ethereal fam fbcon flac flash foomaticdb gb
gd gdbm ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml imagemagick imap
imlib jack java jikes jpeg lcms ldap lesstif libg++ libgda libwww mad maildir
matrox mbox mcal mikmod mmx motif mozilla mpeg mysql nas ncurses nls odbc
oggvorbis opengl oss pam pdflib perl plotutils png postgres ppds python
quicktime readline ruby samba sasl scanner sdl slang snmp speex spell sse ssl
svga tcltk tcpd tetex tiff truetype unicode usb videos wmf wxwindows x86 xml
xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2004-01-19 05:24:05 UTC
Veiko: as always, could you please verify that this is NOT a bug with your EE locale ?
Comment 2 Veiko Kukk 2004-01-19 05:31:54 UTC
i'm currently not using estonian locale. LANG is set to C.
Comment 3 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-01-23 09:50:20 UTC
Same problem in my server. Also using C locale.
Comment 4 Max Kalika (RETIRED) gentoo-dev 2004-01-23 09:55:14 UTC
which java do you have installed?
Comment 5 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-01-23 10:21:58 UTC
Hellas root # java-config -L    
[blackdown-jdk-1.4.1] "Blackdown JDK 1.4.1" (/etc/env.d/java/20blackdown-jdk-1.4.1) *
Comment 6 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-01-25 12:43:56 UTC
Any updates there? Need any more info?
Comment 7 Max Kalika (RETIRED) gentoo-dev 2004-01-26 09:38:47 UTC
Hopefully the java folks can help.  This worked fine here with blackdown-1.4.1.
Comment 8 Richard Morris 2004-01-30 09:53:14 UTC
I get exactly the same problems with my computer.

Portage 2.0.50_pre21 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.2-rc1-mm3)
=================================================================
System uname: 2.6.2-rc1-mm3 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://212.219.247.10/sites/www.ibiblio.org/gentoo/ http://212.219.247.15/sites/www.ibiblio.org/gentoo/ http://212.219.247.13/sites/www.ibiblio.org/gentoo/ http://212.219.247.17/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib acl acpi alsa apm arts avi berkdb bonobo cdr crypt cups curl dga directfb dvd emacs encode esd ethereal evo fam fastcgi fbcon flac flash foomaticdb freetds gb gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib innodb ipv6 java jpeg kde kerberos krb4 lcms ldap libg++ libgda libwww mad maildir mcal mikmod mmx motif mozilla mpeg mpi mysql nas ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png ppds prelude python qt quicktime readline samba sasl scanner sdl slang slp snmp socks5 speex spell sse ssl svga tcltk tcpd tiff truetype usb wmf wxwindows x86 xinerama xml2 xmms xosd xv zlib"
 
java-config -L
[blackdown-jdk-1.4.1] "Blackdown JDK 1.4.1" (/etc/env.d/java/20blackdown-jdk-1.4.1) *
Comment 9 Jason Toffaletti 2004-02-03 12:20:04 UTC
same problem here too.

Portage 2.0.50_pre21 (default-amd64-2004.0, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.1-gentoo-r1)
=================================================================
System uname: 2.6.1-gentoo-r1 x86_64 4
Gentoo Base System version 1.4.3.12
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.ccccom.com ftp://gentoo.ccccom.com http://mirror.tucdemonic.org/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apache2 apm avi berkdb cdr crypt cups dvd dvdr encode foomaticdb gdbm gif gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jpeg kde ldap libg++ libwww mad mikmod motif mpeg ncurses nls noreiserfs oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sasl sdl slang slp spell ssl tcpd tetex tiff truetype usb xml2 xmms xv zlib"
Comment 10 Richard Morris 2004-02-04 00:01:29 UTC
As a workaround this has worked for me

USE="-java" emerge cyrus-sasl
Comment 11 Max Kalika (RETIRED) gentoo-dev 2004-02-06 08:57:36 UTC
can someone please attach a full emerge log?  thanks.
Comment 12 Jens Lindemann 2004-02-15 03:22:07 UTC
Created attachment 25650 [details]
full emerge log
Comment 13 Ghislain Bourgeois 2004-02-17 14:19:13 UTC
Same problem:

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 2.6.2-gentoo)
=================================================================
System uname: 2.6.2-gentoo i686 Pentium II (Klamath)
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acpi apache2 apm cups directfb ethereal foomaticdb gif imap java jpeg libwww maildir mbox mysql ncurses pam pcap php png samba sasl slp ssl x86"

Comment 14 Adrian Almenar 2004-02-17 16:17:05 UTC
Ok after looking at this bug for a little i tried to compile it.

Calculating dependencies ...done!
[ebuild  N   ] dev-libs/cyrus-sasl-2.1.17  +gdbm +java -kerberos -ldap +mysql +pam -postgres +ssl -static  1,464 kB

Total size of downloads: 1,464 kB

(Some minutes later...)

>>> original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                      [ ok ]
>>> dev-libs/cyrus-sasl-2.1.17 merged.
>>> Recording dev-libs/cyrus-sasl in "world" favorites file...

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.

Im not saying that youre wrong but...

Can everyone with this problem submit it java-config -L output ?
Comment 15 Gavrila 2004-02-25 05:55:17 UTC
java-config -L:

[blackdown-jdk-1.4.1] "Blackdown JDK 1.4.1" (/etc/env.d/java/20blackdown-jdk-1.4.1) *

(obviously I have same problem)
Comment 16 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-02-25 12:21:42 UTC
I propose resolving the bug as WONTFIX, as after doing a clean install, problem waves.
Comment 17 Max Kalika (RETIRED) gentoo-dev 2004-02-25 12:53:41 UTC
which leads me to ask... is there a version java installed somewhere else that the compiler is picking up?
Comment 18 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-02-25 13:46:30 UTC
For what I see, no one reported an error with Sun's J2SDK... at least we know what does NOT cause the error.
Comment 19 Sam Iam 2004-03-02 11:37:03 UTC
I also had the same error. Upon investigating further, I found out that while compiling cyrus-sasl-2.1.17/work/cyrus-sasl-2.1.17/java/CyrusSasl directory, the libraries it is looking for are in a different place. So changing the library path to -L../../lib/.libs 

Changing cyrus-sasl-2.1.17/work/cyrus-sasl-2.1.17/java/CyrusSasl/Makefile.in with the following patch should do that. 

---begin-patch
--- Makefile.am.old     2004-03-02 14:24:55.674813304 -0500
+++ Makefile.am 2004-03-02 14:27:29.724394208 -0500
@@ -43,7 +43,7 @@

 lib_LTLIBRARIES = libjavasasl.la
 libjavasasl_la_SOURCES = javasasl.h javasasl.c
-libjavasasl_la_LDFLAGS = -export_dynamic -L../../lib -lsasl2 -version-info $(javasasl_version) $(wildcard ../lib/*.lo)
+libjavasasl_la_LDFLAGS = -export_dynamic -L../../lib/.libs -lsasl2 -version-info $(javasasl_version) $(wildcard ../lib/*.lo)
 BUILT_SOURCES = javasasl.h $(CLASSES)

 $(srcdir)/javasasl.c: javasasl.h
---end-patch

Perhaps I'm only treating the symptoms. But that's as far as I can handle.

Sam
Comment 20 Ronald Hummelink 2004-03-09 17:52:55 UTC
Created attachment 27129 [details, diff]
Patch the java Makefile to add .libs dir to search path

Is almost the same as posted above, just I feel saver adding .libs over
replacing lib ;)
Comment 21 Ronald Hummelink 2004-03-09 17:54:37 UTC
Created attachment 27130 [details, diff]
Patch the ebuild to apply above patch if use java

As well request Automake 1.7 as 1.7.9 was used by developers of the package.
Comment 22 Max Kalika (RETIRED) gentoo-dev 2004-03-15 10:40:23 UTC
This was applied upstream and will be in 2.0.18 which is due very soon now.  Lets just wait -- I'll bump the ebuild as soon as it comes out.  Thanks for your report.
Comment 23 Max Kalika (RETIRED) gentoo-dev 2004-03-15 12:04:12 UTC
Scratch that, new sasl was released on the 11th.  It is now in portage and this bug should be fixed.  I'm closing it.  If it crops up again, please reopen.
Comment 24 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-03-15 12:26:26 UTC
11-M, let's remember the victims of terrorism.