From: Kern S. <ke...@si...> - 2009-12-22 17:50:33
|
On Tuesday 22 December 2009 18:01:55 Phil Stracchino wrote: > Bacula 3.0.3 is failing to compile on OpenBSD 4.6 x86. Here's the most > recent configuration try I used: > > > ./configure --prefix=/opt/cula --datarootdir=/usr/share > --mandir=/usr/share/man --enable-client-only=yes --enable-static-fd=yes > --without-tcp-wrappers --with-working-dir=/opt/bacula/var > --with-subsys-dir=/opt/bacula/var --without-x > --with-smtp-host=smtp.caerllewys.net > --with-job-email=ro...@ca... > --with-dump-email=ro...@ca... --enable-build-dird=no > --enable-build-stored=no --disable-conio --enable-readline=yes > > > And here's the problem, the point at which the build breaks: > > > Making libbac.la ... > /netstore/src/bacula-3.0.3/libtool --silent --tag=CXX --mode=link > /usr/bin/g++ -o libbac.la attr$(DEFAULT_OBJECT_TYPE) > base64$(DEFAULT_OBJECT_TYPE) berrno$(DEFAULT_OBJECT_TYPE) > bsys$(DEFAULT_OBJECT_TYPE) bget_msg$(DEFAULT_OBJECT_TYPE) > bnet$(DEFAULT_OBJECT_TYPE) bnet_server$(DEFAULT_OBJECT_TYPE) > runscript$(DEFAULT_OBJECT_TYPE) bsock$(DEFAULT_OBJECT_TYPE) > bpipe$(DEFAULT_OBJECT_TYPE) bsnprintf$(DEFAULT_OBJECT_TYPE) > btime$(DEFAULT_OBJECT_TYPE) cram-md5$(DEFAULT_OBJECT_TYPE) > crc32$(DEFAULT_OBJECT_TYPE) crypto$(DEFAULT_OBJECT_TYPE) > daemon$(DEFAULT_OBJECT_TYPE) edit$(DEFAULT_OBJECT_TYPE) > fnmatch$(DEFAULT_OBJECT_TYPE) guid_to_name$(DEFAULT_OBJECT_TYPE) > hmac$(DEFAULT_OBJECT_TYPE) jcr$(DEFAULT_OBJECT_TYPE) > lex$(DEFAULT_OBJECT_TYPE) alist$(DEFAULT_OBJECT_TYPE) > dlist$(DEFAULT_OBJECT_TYPE) md5$(DEFAULT_OBJECT_TYPE) > message$(DEFAULT_OBJECT_TYPE) mem_pool$(DEFAULT_OBJECT_TYPE) > openssl$(DEFAULT_OBJECT_TYPE) plugins$(DEFAULT_OBJECT_TYPE) > queue$(DEFAULT_OBJECT_TYPE) bregex$(DEFAULT_OBJECT_TYPE) > rwlock$(DEFAULT_OBJECT_TYPE) scan$(DEFAULT_OBJECT_TYPE) > serial$(DEFAULT_OBJECT_TYPE) sha1$(DEFAULT_OBJECT_TYPE) > signal$(DEFAULT_OBJECT_TYPE) smartall$(DEFAULT_OBJECT_TYPE) > rblist$(DEFAULT_OBJECT_TYPE) tls$(DEFAULT_OBJECT_TYPE) > tree$(DEFAULT_OBJECT_TYPE) util$(DEFAULT_OBJECT_TYPE) > var$(DEFAULT_OBJECT_TYPE) watchdog$(DEFAULT_OBJECT_TYPE) > workq$(DEFAULT_OBJECT_TYPE) btimers$(DEFAULT_OBJECT_TYPE) > address_conf$(DEFAULT_OBJECT_TYPE) breg$(DEFAULT_OBJECT_TYPE) > htable$(DEFAULT_OBJECT_TYPE) lockmgr$(DEFAULT_OBJECT_TYPE) > -export-dynamic -rpath /opt/bacula/lib -version-info 1:0:0 > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > /bin/sh: DEFAULT_OBJECT_TYPE: not found > g++: no input files > *** Error code 1 > > Stop in /netstore/src/bacula-3.0.3/src/lib (line 225 of Makefile). > > > The relevant Makefile fragment is: > > libbac.la: Makefile $(LIBBAC_OBJS) > @echo "Making $@ ..." > $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ > $(LIBBAC_OBJS) -export-dynamic -rpath $(libdir) -version-info > $(LIBBAC_LT_CURRENT):$(LIBBAC_LT_REVISION):$(LIBBAC_LT_AGE) $(WRAPLIBS) > > > DEFAULT_OBJECT_TYPE is correctly defined to .lo in the Makefile. It > appears that the line: > > LIBBAC_OBJS = $(LIBBAC_SRCS:.c=$(DEFAULT_OBJECT_TYPE)) > > is not actually working on OpenBSD as it is intended to. > > If I manually perform the expansion and edit the Makefile accordingly, > the same problem occurs with LIBBACCFG_OBJS, then with LIBBACPY_OBJS. > If I manually expand both of these as well, then also fix LIBOBJS in > src/findlib/Makefile, the build completes and installs, and the client > (at least) appears to work fine. It appears to me that they (OpenBSD) have, unfortunately, broken something. Marco knows more about the linking process, so maybe he can shed some light on this. Although, it could be a Bacula but, I suggest as a first step filing a bug report with OpenBSD, because Bacula 3.0.3 builds on all Linux machines, Solaris, FreeBSD, NetBSD, Mac OSX, ... Regards, Kern |