Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516514 - dev-libs/cyrus-sasl-2.1.26-r7 - configure: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite nor SQLite3 found
Summary: dev-libs/cyrus-sasl-2.1.26-r7 - configure: error: --enable-sql chosen but nei...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-06 13:28 UTC by antu456
Modified: 2014-07-07 14:32 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,37.06 KB, text/plain)
2014-07-06 13:31 UTC, antu456
Details

Note You need to log in before you can comment on or make changes to this bug.
Description antu456 2014-07-06 13:28:16 UTC
When I try to install cyrus-sasl, I get the following error:

[...]

checking PASSDSS... disabled
checking SQL... enabled
configure: WARNING: MySQL Library not found
checking for PQsetdbLogin in -lpq... no
checking for crypt in -lcrypt... yes
checking LDAPDB... disabled
checking for dmalloc library... no
checking for sfio library... no
checking for getsubopt... yes
checking GSSAPI... disabled
checking PLAIN... enabled
checking ANONYMOUS... enabled
checking LOGIN... enabled
checking NTLM... enabled
checking PASSDSS... disabled
checking SQL... enabled
configure: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite nor SQLite3 found
yes
checking for snprintf... 
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/cyrus-sasl-2.1.26-r7/work/cyrus-sasl-2.1.26-abi_x86_32.x86/config.log
 * ERROR: dev-libs/cyrus-sasl-2.1.26-r7::gentoo failed (configure phase):

[...]



Reproducible: Always

Steps to Reproduce:
1. emerge cyrus-sasl
Actual Results:  
Installation fails with above error messages.

Expected Results:  
New cyrus-sasl version is installed correctly.

# emerge -pqv cyrus-sasl
[ebuild     U ] dev-libs/cyrus-sasl-2.1.26-r7 [2.1.26-r5] USE="berkdb gdbm java mysql pam postgres ssl -authdaemond -kerberos -ldapdb -openldap -sample -sqlite -srp -static-libs -urandom" ABI_X86="32%* (64%*) (-x32)"

# emerge --info
Portage 2.2.10 (default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.14.9-gentoo x86_64)
=================================================================
System uname: Linux-3.14.9-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1240_v3_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16388248 total,    375264 free
KiB Swap:   16777212 total,  16777128 free
Timestamp of tree: Sat, 05 Jul 2014 22:00:01 +0000
ld GNU ld (GNU Binutils) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.3.5, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3, 4.9.0
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo sunrise owncloud-client mrueg qt anders-larsson lokales_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -ggdb"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=native -ggdb"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=native -ggdb"
GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/owncloud-client /var/lib/layman/mrueg /var/lib/layman/qt /var/lib/layman/anders-larsson /usr/local/portage"
SYNC="rsync://master.lan/gentoo-portage"
USE="X aac aacplus acl acpi alsa amd64 apache2 bash-completion berkdb bzip2 cli cracklib crypt css cups cxx dbus device-mapper dri dts dvd encode exif ffmpeg firefox flac fontconfig fortran g3dvl gdbm gif gimp git gstreamer gzip iconv icu infinality ipv6 java jpeg kde mad mmx mng modules mp3 mp4 mpeg multilib mysql ncurses nls nptl offensive ogg opengl openmp pam pcre pdf php png postgres pulseaudio qt3support qt4 readline samba semantic-desktop session speex sse sse2 sse3 ssl ssse3 svg syslog tcpd theora threads tiff truetype udev unicode usb vaapi vdpau vorbis vpx xvmc zlib" ABI_X86="32 64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="crypt crypt-gpg lvm mdraid syslog dm" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" LIRC_DEVICES="devinput" NETBEANS_MODULES="mobility cnd java php profiler webcommon websvccommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 antu456 2014-07-06 13:31:02 UTC
Created attachment 380300 [details]
build.log
Comment 2 antu456 2014-07-06 13:34:28 UTC
And all of them are installed:

# emerge -pqv mysql postgresql-base postgresql-server sqlite
[ebuild   R   ] dev-db/sqlite-3.8.5  USE="icu readline -debug -doc -secure-delete -static-libs -tcl {-test}" ABI_X86="32 (64) (-x32)" 
[ebuild   R   ] dev-db/postgresql-base-9.4_beta1  USE="kerberos nls pam readline ssl threads zlib -doc -ldap -pg_legacytimestamp -python" LINGUAS="de en -af -cs -es -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro -ru -sk -sl -sv -tr -zh_CN -zh_TW" PYTHON_SINGLE_TARGET="python2_7 (-python2_6) -python3_2 -python3_3 -python3_4" PYTHON_TARGETS="python2_7 python3_3 (-python2_6) -python3_2 -python3_4" 
[ebuild   R   ] dev-db/postgresql-server-9.4_beta1  USE="nls pam -doc -kerberos -perl -pg_legacytimestamp -python (-selinux) -tcl {-test} -uuid -xml" LINGUAS="de en -af -cs -es -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro -ru -sk -sl -sv -tr -zh_CN -zh_TW" PYTHON_SINGLE_TARGET="python2_7 (-python2_6) -python3_2 -python3_3 -python3_4" PYTHON_TARGETS="python2_7 python3_3 (-python2_6) -python3_2 -python3_4" 
[ebuild   R   ] dev-db/mysql-5.5.38  USE="community embedded perl ssl -bindist -cluster -debug -extraengine -jemalloc -latin1 -max-idx-128 -minimal -profiling (-selinux) -static -static-libs -systemtap -tcmalloc {-test}"
Comment 3 Rafał Mużyło 2014-07-06 13:45:27 UTC
It's a multilib problem - for the time being (meaning likely till multilib mysql gets added to the tree), a more complex condition is needed for adding '--enable-sql' - right now only sqlite3 is supported for multilib.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-07-06 14:19:38 UTC
Well, the problems starts with the ebuild pretending to support all three, with no REQUIRED_USE or otherwise clear statement.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-07-06 14:44:04 UTC
I'm thoroughly confused now. I know that berkdb & gdbm are blocking each other. Does cyrus-sasl support multiple SQL backends or does it use random one of them?
Comment 6 Eray Aslan gentoo-dev 2014-07-07 10:56:38 UTC
(In reply to Michał Górny from comment #5)
> Does cyrus-sasl support multiple SQL backends

Yes.

> or does it use random one of them?

Not random.  One specifies which sql backend to use for each application separately in the corresponding config file.  For example, for postfix:

/etc/sasl2/smtpd.conf:
  [...]
  auxprop_plugin: sql
  sql_engine: mysql
  [...]

In general, cyrus-sasl supports a bunch of authentication methods and backends (ldap, sql, kerberos, external, shadow, rimap etc).  And one specifies which backend and which mechanisms to use for each application.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-07-07 14:32:03 UTC
+  07 Jul 2014; Michał Górny <mgorny@gentoo.org> cyrus-sasl-2.1.26-r7.ebuild:
+  Pass --enable-sql for non-native build only when SQLite is enabled (since
+  MySQL and PgSQL are not multilib ATM), bug #516514.

Please try now. As a note, the nested conditional can go when we enable multilib on MySQL and PgSQL.