>>>>> On Tue, 22 Dec 2009 12:01:55 -0500, Phil Stracchino said: > > 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=r...@caerllewys.net > --with-dump-email=r...@caerllewys.net --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) > ... > /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.
Some BSD makes can't cope with nested expansions like that. Try using GNU make. __Martin ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel