Bacula-1.34.[45] doesn't find sqlite.h, which is in /usr/include. # ll /usr/include/sqlite.h -rw-r--r-- 1 root root 36881 3. Aug 00:55 /usr/include/sqlite.h # Here the error-msg: | checking for SQLite support... no | configure: error: Invalid SQLite directory /usr - unable to find sqlite.h under /usr | | !!! ERROR: app-admin/bacula-1.34.4 failed. | !!! Function src_compile, Line 71, Exitcode 1 | !!! bad ./configure After I changed | elif use sqlite | then | myconf="${myconf} --with-sqlite=/usr" to | myconf="${myconf} --with-sqlite=/usr/include" everything went fine. Don't know if it's a "local" problem, but if not I think it should be changed in the ebuild. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7) ================================================================= System uname: 2.6.7 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -funroll-loops -pipe -fomit-frame-pointer -m3dnow -mmmx -msse" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -funroll-loops -pipe -fomit-frame-pointer -m3dnow -mmmx -msse" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://gentoo.mirror.sdv.fr ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.tiscali.nl/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib acpi acpi4linux alsa apm arts avi berkdb bonobo caps cdr crypt cups dga directfb divx4linux doc dvd encode esd faad fbcon ffmpeg foomaticdb freetype fs gdbm ggi gif gimp gimpprint glut gnome gpm gtk gtk2 gtkhtml imagemagick imap imlib innodb jabber java javascript jikes jpeg kde ldap libg++ libwww linguas_de live mad maildir matroska md5sum mikmod mmx motif mozilla mozsvg mpeg msn music mysql ncurses nls nocardbus nptl offensive oggvorbis opengl oscar oss pam parse-clocks pda pdflib perl pic png ppds python qt quicktime readline samba sdl slang snmp speedo spell sse ssl svga tcpd tetex theora tiff transcode truetype type1 usb videos vim-with-x wmf x86 xface xfs xml2 xmms xprint xv xvid yahoo zlib"
As a result of my changes in the ebuild the "bindir" in the sqlite-scripts (/etc/bacula/*sqlite*) are wrong. After the emerge they are "bindir=/usr/include" but must be "bindir=/usr/bin".
The solution is simplier. Just remove the path from the --with-sqlite option switch. I'm including patch for 1.34.4 and for 1.34.5.
Created attachment 43301 [details, diff] Fixing sqlite linking for 1.34.4
Created attachment 43302 [details, diff] Fixing sqlite linking for 1.34.5
zul: would you like to join app-backup?
This is fixed in the new 1.36.3-r1 ebuild. If the problem persists, please reopen.
*** Bug 101760 has been marked as a duplicate of this bug. ***