Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324149 - app-backup/bacula-5.0.2-r1: missing bacula-dir and bacula-fd binaries
Summary: app-backup/bacula-5.0.2-r1: missing bacula-dir and bacula-fd binaries
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Thomas Beierlein
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-15 15:34 UTC by Eric Thibodeau
Modified: 2010-06-16 04:26 UTC (History)
1 user (show)

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 Eric Thibodeau 2010-06-15 15:34:32 UTC
Built Bacula with the following flags and I don't end up with the -dir and -fd binaries:

nas updatedb # emerge bacula -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-backup/bacula-5.0.2-r1  USE="logwatch postgres python readline ssl tcpd -X -bacula-clientonly -bacula-nodir -bacula-nosd -ipv6 -mysql -qt4 -sqlite3 -static" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

-------- pquery returns:
nas updatedb # pquery --contents app-backup/bacula|egrep "(init.d|bin)/"
/etc/init.d/bacula-dir
/etc/init.d/bacula-fd
/etc/init.d/bacula-sd
/usr/sbin/bacula
/usr/sbin/bacula-fd
/usr/sbin/bconsole
/usr/sbin/btraceback

---------------------

The init scripts are installed but no binaries (?!).

Here is my emerge --info:

Portage 2.1.8.3 (default/linux/amd64/10.0/server, gcc-4.4.3, glibc-2.10.1-r1, 2.6.32-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-Intel-R-_Celeron-R-_CPU_E1200_@_1.60GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 14 Jun 2010 17:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2, 3.1.2-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.8.5-r3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -D_FORTIFY_SOURCE=0 -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg distcc distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j18"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 bacula-console berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv jadetex kerberos ldap logrotate logwatch mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl postgres pppd python readline reflection session snmp spl sse sse2 ssl symlink sysfs tcpd truetype unicode xml xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always

Steps to Reproduce:
Comment 1 Eric Thibodeau 2010-06-15 18:59:44 UTC
In short, the problem was "resolved" by re-emerging dev-db/postgresql-base. 

For some reason, the configure process doesn't halt on errors, incorrectly leading me to believe 'all went well'. In fact, the build process wasn't able to find the dev-db/postgresql-base provided header files, which caused the 'cats' portion of bacula to fail to build:

==>Entering directory /var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/src/cats
make[1]: Entering directory `/var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/src/cats'
In file included from mysql.c:44:
cats.h:427:22: error: libpq-fe.h: No such file or directory
In file included from bdb.c:49:
cats.h:427:22: error: libpq-fe.h: No such file or directory
In file included from dbi.c:61:
cats.h:427:22: error: libpq-fe.h: No such file or directory
In file included from sql.c:47:
cats.h:427:22: error: libpq-fe.h: No such file or directory
In file included from sql_create.c:42:
cats.h:427:22: error: libpq-fe.h: No such file or directory
In file included from sql_delete.c:44:
cats.h:427:22: error: libpq-fe.h: No such file or directory
In file included from sql_find.c:46:
cats.h:427:22: error: libpq-fe.h: No such file or directory
In file included from sql_get.c:45:
cats.h:427:22: error: libpq-fe.h: No such file or directory
In file included from sql_list.c:43:
cats.h:427:22: error: libpq-fe.h: No such file or directory
In file included from sql_update.c:42:
cats.h:427:22: error: libpq-fe.h: No such file or directory
In file included from sqlite.c:44:
cats.h:427:22: error: libpq-fe.h: No such file or directory
In file included from postgresql.c:45:
cats.h:427:22: error: libpq-fe.h: No such file or directory
postgresql.c:49:61: error: postgres_ext.h: No such file or directory
postgresql.c:50:78: error: pg_config_manual.h: No such file or directory
In file included from ingres.c:46:
cats.h:427:22: error: libpq-fe.h: No such file or directory
In file included from bvfs.c:32:
../cats/cats.h:427:22: error: libpq-fe.h: No such file or directory
make[1]: *** [depend] Error 1

Errors would then cascade in the make phase (obviously):


==>Entering directory /var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/src/plugins/fd
make[1]: Entering directory `/var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/src/plugins/fd'
/var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/libtool --silent --tag=CXX --mode=compile /usr/bin/x86_64-pc-linux-gnu-g++    -O2 -pipe -D_FORTIFY_SOURCE=0 -march=nocona  -I../.. -I../../filed -c bpipe-fd.c
/var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/libtool --silent --tag=CXX --mode=link /usr/bin/x86_64-pc-linux-gnu-g++ -Wl,-O1 -shared bpipe-fd.lo -o bpipe-fd.la -rpath /usr/lib64 -module -export-dynamic -avoid-version
make[1]: Leaving directory `/var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/src/plugins/fd'
==>Entering directory /var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/src/cats
make[1]: Entering directory `/var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/src/cats'
Compiling mysql.c
In file included from mysql.c:44:
cats.h:427:22: error: libpq-fe.h: No such file or directory
In file included from mysql.c:44:
cats.h:452: error: ISO C++ forbids declaration of ‘PGconn’ with no type
cats.h:452: error: expected ‘;’ before ‘*’ token
cats.h:453: error: ISO C++ forbids declaration of ‘PGresult’ with no type
cats.h:453: error: expected ‘;’ before ‘*’ token
make[1]: *** [mysql.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/src/cats'


  ====== Error in /var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/src/cats ======

And:


make[1]: *** No rule to make target `../cats/libbacsql.la', needed by `bacula-dir'.  Stop.
make[1]: Leaving directory `/var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/src/dird'

  ====== Error in /var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/src/dird ======

Also:

make[1]: *** No rule to make target `../cats/libbacsql.la', needed by `bscan'.  Stop.
make[1]: Leaving directory `/var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/src/stored'

  ====== Error in /var/tmp/portage/app-backup/bacula-5.0.2-r1/work/bacula-5.0.2/src/stored ======

....anyways, think this is enough meat for the search engines to hit on this 'bug'...for prosperity's sake ;)
Comment 2 Thomas Beierlein gentoo-dev 2010-06-16 04:26:46 UTC
Thanks for reporting Eric. 

Make does not fail even if some of the submakes fail because of an error in upstreams Makefile. Can you please report that problem upstream?