Re: [Bacula-users] Problem installing bacula on Solaris 10

2014-11-01 Thread Dmitri Maziuk
On 10/31/2014 4:53 PM, Kenneth Garges wrote:
 Thanks for the suggestion. I avoided it because everyone in the
 office here said stay away from SunStudio, gcc is way better, Solaris
 compilers  are evil, blah blah.

They're incompatible with gnu build chains, especially libtool, so most 
gnuware won't build. Name mangling's different so you can't link c++ 
objs to g++ libs (and vise versa), etfc. Other than that, there was 
nothing wrong with 'em back when -- now that there is no sun, they'll 
presumably get obsolete at some point.
:(

Dima

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem installing bacula on Solaris 10

2014-11-01 Thread Gary R. Schmidt
On 2/11/2014 4:05 AM, Dmitri Maziuk wrote:
 On 10/31/2014 4:53 PM, Kenneth Garges wrote:
 Thanks for the suggestion. I avoided it because everyone in the
 office here said stay away from SunStudio, gcc is way better, Solaris
 compilers  are evil, blah blah.

 They're incompatible with gnu build chains, especially libtool, so most
 gnuware won't build. Name mangling's different so you can't link c++
 objs to g++ libs (and vise versa), etfc. Other than that, there was
 nothing wrong with 'em back when -- now that there is no sun, they'll
 presumably get obsolete at some point.
 :(

Solaris Studio is still free, and being developed by Oracle.

In the old days when a lot of gcc development was being performed on Sun 
systems, gcc would often out perform the Sun compilers, these days it's 
the other way around.

That many so-called open source products are developed by people who 
have a of course it's portable, it build on both Fedora Core *and* 
OpenSUSE is the real problem.

Cheers,
GaryB-)


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem installing bacula on Solaris 10

2014-10-31 Thread Kenneth Garges
Thanks for the suggestion. I avoided it because everyone in the office here 
said stay away from SunStudio, gcc is way better, Solaris compilers are evil, 
blah blah.

But I tried it and it did clear up that error. Got past the configure stage and 
most of make ran. Still not all the way there but further.


Kenneth Garges
gar...@ucsc.edu



On 25Oct 2014, at 9:03 AM, Phil Stracchino ph...@caerllewys.net wrote:

 
 Ken,
 For what it's worth, I have found it to be better on Solaris to compile
 Bacula using Sun Studio.  The last release Sun Studio packages for
 Solaris 10 are, to the best of my knowledge, still a free download.
 
 This is my Solaris 10 configure line.  At this point, the Solaris 10
 machine runs only a client and an SD, but this may help you.
 
 
 CC=/usr/bin/CC CXX=${CC} LDFLAGS=-m64 CFLAGS='-fast -xarch=generic
 -xtarget=generic -xcache=generic -m64' CPPFLAGS=${CFLAGS} ./configure
 --prefix=/opt/bacula --with-dump-email=r...@caerllewys.net
 --with-job-email=r...@caerllewys.net
 --with-smtp-host=smtp.caerllewys.net --with-subsys-dir=/opt/bacula/var
 --with-working-dir=/opt/bacula/var --disable-build-dird
 --with-mysql=/opt/mysql/mysql
 
 
 Make is gmake 3.81.
 
 
 -- 
  Phil Stracchino
  Babylon Communications
  ph...@caerllewys.net
  p...@co.ordinate.org
  Landline: 603.293.8485
 
 --
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users



signature.asc
Description: Message signed with OpenPGP using GPGMail
--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem installing bacula on Solaris 10

2014-10-27 Thread Kenneth Garges
Thanks for the suggestion. I tried it by changing the SHELL = /bin/sh line to 
SHELL = /usr/bin/bash in the Makefile. Unfortunately I get the same error 
although with a different code number:

-bash-3.2$ /opt/csw/bin/gmake DESTDIR= depend
/usr/bin/bash: # DO NOT DELETE: nice dependency list follows: command not found
gmake: *** [depend] Error 127




Kenneth Garges
gar...@ucsc.edu



On 25Oct 2014, at 5:21 AM, Ana Emília M. Arruda emiliaarr...@gmail.com wrote:

 Hi Kenneth,
 
 I'm not a Solaris expert, but have you tried using bash instead of Bourne 
 shell (sh)?
 
 Best regards,
 Ana
 
 On Fri, Oct 24, 2014 at 9:45 PM, Kenneth Garges gar...@ucsc.edu wrote:
 I’m trying to build  Bacula 7.0.4 on a Solaris 10 box (Sun T5220) but am 
 getting this error during the configure:
 
 Doing make of dependencies
 ==Entering directory /home/garges/bacula-7.0.4/src
 ==Entering directory /home/garges/bacula-7.0.4/scripts
 ==Entering directory /home/garges/bacula-7.0.4/src/lib
 mksh: Fatal error in reader: = missing from replacement macro reference
 Current working directory /home/garges/bacula-7.0.4/src/lib
 *** Error code 1
 The following command caused the error:
 for I in src scripts src/lib src/findlib src/filed  src/console 
 src/plugins/fd src/cats src/dird src/stored src/tools manpages; \
   do (cd $I; echo ==Entering directory `pwd`; make DESTDIR= depend || exit 
 1); done
 make: Fatal error: Command failed for target `depend'
 chmod: WARNING: can't access storage-ctl
 chmod: WARNING: can't access bsg_persist
 
 Following a suggestion I read on the net I changed line 52 of Makefile.in to 
 force configure to use gmake instead of the Solaris make:
 
 -bash-3.2$ more +52 -1 Makefile.in
   do (cd $$I; echo ==Entering directory `pwd`; /opt/csw/bin/gmake 
 DESTDIR=$(DESTDIR) $@ || exit 1); done
 
 That changes the error to:
 
 Doing make of dependencies
 ==Entering directory /home/garges/bacula-7.0.4/src
 gmake[1]: Entering directory `/home/garges/bacula-7.0.4/src'
 gmake[1]: Nothing to be done for `depend'.
 gmake[1]: Leaving directory `/home/garges/bacula-7.0.4/src'
 ==Entering directory /home/garges/bacula-7.0.4/scripts
 gmake[1]: Entering directory `/home/garges/bacula-7.0.4/scripts'
 gmake[1]: `depend' is up to date.
 gmake[1]: Leaving directory `/home/garges/bacula-7.0.4/scripts'
 ==Entering directory /home/garges/bacula-7.0.4/src/lib
 gmake[1]: Entering directory `/home/garges/bacula-7.0.4/src/lib'
 /bin/sh: # DO NOT DELETE: nice dependency list follows: not found
 gmake[1]: *** [depend] Error 1
 gmake[1]: Leaving directory `/home/garges/bacula-7.0.4/src/lib'
 *** Error code 1
 The following command caused the error:
 for I in src scripts src/lib src/findlib src/filed  src/console 
 src/plugins/fd src/cats src/dird src/stored src/tools manpages; \
   do (cd $I; echo ==Entering directory `pwd`; /opt/csw/bin/gmake DESTDIR= 
 depend || exit 1); done
 make: Fatal error: Command failed for target `depend'
 chmod: WARNING: can't access storage-ctl
 chmod: WARNING: can't access bsg_persist
 
 Trying to run it manually gives the same error:
 
 -bash-3.2$ cd src/lib
 -bash-3.2$ /opt/csw/bin/gmake DESTDIR= depend
 /bin/sh: # DO NOT DELETE: nice dependency list follows: not found
 gmake: *** [depend] Error 1
 
 The error seems to imply the shell is trying to execute the last line of the 
 Makefile.in which is a comment!
 -bash-3.2$ tail -2 Makefile.in
 # DO NOT DELETE: nice dependency list follows
 
 -bash-3.2$ tail -2 Makefile
 
 # ---
 
 
 
 So I’m stumped. What should I try next?
 
 
 
 
 Here’s the whole dialog:
 
 PATH=/opt/csw/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/openwin/bin:/usr/local/bin:/usr/ucb:/usr/sbin
 export PATH
 
 LDFLAGS=-L/opt/csw/lib -R/opt/csw/lib -L/opt/csw/lib/openssl 
 -R/opt/csw/lib/openssl -I/opt/csw/include -I/opt/csw/include/openssl
 export LDFLAGS
 
 CFLAGS=-g -I/opt/csw/include -lcrypto -lssl -L/opt/csw/lib -R/opt/csw/lib
 export CFLAGS
 
 ./configure \
   --sbindir=/usr/local/bin \
   --sysconfdir=/etc/bacula \
   --with-postgresql=/opt/csw \
   --enable-smartalloc \
   --with-pid-dir=/var/bacula/working \
   --with-subsys-dir=/var/bacula/subsys \
   --with-working-dir=/var/bacula/working \
   --with-dir-user=bacula \
   --with-dir-group=backup \
   --with-sd-user=bacula \
   --with-sd-group=backup \
   --with-fd-user=root \
   --with-fd-group=backup \
   --with-dump-email=gar...@ucsc.edu \
   --with-job-email=gar...@ucsc.edu \
   --with-smtp-host=smtp.ucsc.edu \
   --with-openssl=/opt/csw \
   --disable-ipv6 --disable-batch-insert
 
 checking for true... /usr/bin/true
 checking for false... /usr/bin/false
 configuring for Bacula 7.0.4 (04 June 2014)
 checking for gcc... gcc
 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables... 
 checking whether we are cross compiling... no
 checking for suffix of object files... o
 checking 

Re: [Bacula-users] Problem installing bacula on Solaris 10

2014-10-27 Thread Kenneth Garges
Thanks for your suggestions.


I had disabled batch-insert because the test for the version of Postgresql I 
have installed from the OpenCSW package showed that it was not thread safe:
-bash-3.2$ nm /opt/csw/postgresql/lib/libpq.a | grep PQputCopyData
[90]|  7472|   416|FUNC |GLOB |0|2  |PQputCopyData
-bash-3.2$ nm /opt/csw/postgresql/lib/libpq.a | grep mutex
-bash-3.2$ 

I plan to later compile and re-install Postgresql  to make it thread safe since 
the Bacula installation directions say that’s required for batch-insert to be 
enabled. But for now it’s disabled. 

I tried the config script you suggested with only minor modifications to email 
settings, PREFIX, and other paths. The enable-bat setting causes the error 
Unable to find Qt4 installation needed by bat“

So I disabled bat. But still get the same error:
-bash-3.2$ cat kern-config.sh 
#!/bin/sh
# This is Kern's configure script for Bacula modifed slightly by Ken

PREFIX=/usr/local
CFLAGS=-g -O2 -Wall \
  ./configure \
--sbindir=${PREFIX}/bin \
--sysconfdir=/etc/bacula \
--docdir=${PREFIX}/html \
--htmldir=${PREFIX}/html \
--with-working-dir=/var/bacula/working \
--with-pid-dir=/var/bacula/working \
--with-scriptdir=${PREFIX}/scripts \
--with-plugindir=${PREFIX}/plugins \
--libdir=${PREFIX}/lib \
--enable-smartalloc \
--disable-conio \
--enable-readline \
--disable-bat \
--with-postgresql=/opt/csw/postgresql \
--with-dump-email=gar...@ucsc.edu \
--with-job-email=gar...@ucsc.edu \
--with-smtp-host=smtp.ucsc.edu \
--with-baseport=9101

exit 0


-bash-3.2$ ./kern-config.sh 
checking for true... /usr/bin/true
checking for false... /usr/bin/false
configuring for Bacula 7.0.4 (04 June 2014)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking whether gcc needs -traditional... no
checking for g++... /usr/local/bin/g++
checking for a BSD-compatible install... /opt/csw/bin/ginstall -c
checking for mv... /usr/bin/mv
checking for rm... /usr/bin/rm
checking for cp... /usr/bin/cp
checking for sed... /usr/bin/sed
checking for echo... /usr/bin/echo
checking for cmp... /usr/bin/cmp
checking for tbl... /usr/bin/tbl
checking for ar... /usr/ccs/bin/ar
checking for openssl... /opt/csw/bin/openssl
checking for mtx... mtx
checking for dd... /usr/bin/dd
checking for mkisofs... mkisofs
checking for python... /usr/bin/python
checking for growisofs... growisofs
checking for dvd+rw-mediainfo... dvd+rw-mediainfo
checking for dvd+rw-format... dvd+rw-format
checking for pkg-config... pkg-config
checking for qmake... none
checking for gmake... /opt/csw/bin/gmake
checking for cdrecord... cdrecord
checking for pidof... pidof
checking for gawk... gawk
checking for gawk... /opt/csw/bin/gawk
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/xpg4/bin/grep -F
checking for ld used by gcc... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/ccs/bin/nm -p
checking the name lister (/usr/ccs/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands +=... yes
checking how to convert sparc-sun-solaris2.10 file names to 
sparc-sun-solaris2.10 format... func_convert_file_noop
checking how to convert sparc-sun-solaris2.10 file names to toolchain format... 
func_convert_file_noop
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes

Re: [Bacula-users] Problem installing bacula on Solaris 10

2014-10-25 Thread Ana Emília M . Arruda
Hi Kenneth,

I'm not a Solaris expert, but have you tried using bash instead of Bourne
shell (sh)?

Best regards,
Ana

On Fri, Oct 24, 2014 at 9:45 PM, Kenneth Garges gar...@ucsc.edu wrote:

 I’m trying to build  Bacula 7.0.4 on a Solaris 10 box (Sun T5220) but am
 getting this error during the configure:

 Doing make of dependencies
 ==Entering directory /home/garges/bacula-7.0.4/src
 ==Entering directory /home/garges/bacula-7.0.4/scripts
 ==Entering directory /home/garges/bacula-7.0.4/src/lib
 mksh: Fatal error in reader: = missing from replacement macro reference
 Current working directory /home/garges/bacula-7.0.4/src/lib
 *** Error code 1
 The following command caused the error:
 for I in src scripts src/lib src/findlib src/filed  src/console
 src/plugins/fd src/cats src/dird src/stored src/tools manpages; \
   do (cd $I; echo ==Entering directory `pwd`; make DESTDIR= depend ||
 exit 1); done
 make: Fatal error: Command failed for target `depend'
 chmod: WARNING: can't access storage-ctl
 chmod: WARNING: can't access bsg_persist

 Following a suggestion I read on the net I changed line 52 of Makefile.in
 to force configure to use gmake instead of the Solaris make:

 -bash-3.2$ more +52 -1 Makefile.in
   do (cd $$I; echo ==Entering directory `pwd`;
 /opt/csw/bin/gmake DESTDIR=$(DESTDIR) $@ || exit 1); done

 That changes the error to:

 Doing make of dependencies
 ==Entering directory /home/garges/bacula-7.0.4/src
 gmake[1]: Entering directory `/home/garges/bacula-7.0.4/src'
 gmake[1]: Nothing to be done for `depend'.
 gmake[1]: Leaving directory `/home/garges/bacula-7.0.4/src'
 ==Entering directory /home/garges/bacula-7.0.4/scripts
 gmake[1]: Entering directory `/home/garges/bacula-7.0.4/scripts'
 gmake[1]: `depend' is up to date.
 gmake[1]: Leaving directory `/home/garges/bacula-7.0.4/scripts'
 ==Entering directory /home/garges/bacula-7.0.4/src/lib
 gmake[1]: Entering directory `/home/garges/bacula-7.0.4/src/lib'
 /bin/sh: # DO NOT DELETE: nice dependency list follows: not found
 gmake[1]: *** [depend] Error 1
 gmake[1]: Leaving directory `/home/garges/bacula-7.0.4/src/lib'
 *** Error code 1
 The following command caused the error:
 for I in src scripts src/lib src/findlib src/filed  src/console
 src/plugins/fd src/cats src/dird src/stored src/tools manpages; \
   do (cd $I; echo ==Entering directory `pwd`; /opt/csw/bin/gmake
 DESTDIR= depend || exit 1); done
 make: Fatal error: Command failed for target `depend'
 chmod: WARNING: can't access storage-ctl
 chmod: WARNING: can't access bsg_persist

 Trying to run it manually gives the same error:

 -bash-3.2$ cd src/lib
 -bash-3.2$ /opt/csw/bin/gmake DESTDIR= depend
 /bin/sh: # DO NOT DELETE: nice dependency list follows: not found
 gmake: *** [depend] Error 1

 The error seems to imply the shell is trying to execute the last line of
 the Makefile.in which is a comment!
 -bash-3.2$ tail -2 Makefile.in
 # DO NOT DELETE: nice dependency list follows

 -bash-3.2$ tail -2 Makefile

 # ---



 So I’m stumped. What should I try next?




 Here’s the whole dialog:

 *PATH*
 =/opt/csw/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/openwin/bin:/usr/local/bin:/usr/ucb:/usr/sbin
 *export* PATH

 *LDFLAGS*=-L/opt/csw/lib -R/opt/csw/lib -L/opt/csw/lib/openssl
 -R/opt/csw/lib/openssl -I/opt/csw/include -I/opt/csw/include/openssl
 *export* LDFLAGS

 *CFLAGS*=-g -I/opt/csw/include -lcrypto -lssl -L/opt/csw/lib
 -R/opt/csw/lib
 *export* CFLAGS

 ./*configure* \
   --sbindir=/usr/local/bin \
   --sysconfdir=/etc/bacula \
   --with-postgresql=/opt/csw \
   --enable-smartalloc \
   --with-pid-dir=/var/bacula/working \
   --with-subsys-dir=/var/bacula/subsys \
   --with-working-dir=/var/bacula/working \
   --with-dir-user=bacula \
   --with-dir-group=backup \
   --with-sd-user=bacula \
   --with-sd-group=backup \
   --with-fd-user=root \
   --with-fd-group=backup \
   --with-dump-email=gar...@ucsc.edu \
   --with-job-email=gar...@ucsc.edu \
   --with-smtp-host=smtp.ucsc.edu \
   --with-openssl=/opt/csw \
   --disable-ipv6 --disable-batch-insert

 checking for true... /usr/bin/true
 checking for false... /usr/bin/false
 configuring for Bacula 7.0.4 (04 June 2014)
 checking for gcc... gcc
 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... no
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to accept ISO C89... none needed
 checking for g++... g++
 checking whether we are using the GNU C++ compiler... yes
 checking whether g++ accepts -g... yes
 checking whether gcc and cc understand -c and -o together... yes
 checking how to run the C preprocessor... gcc -E
 checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
 checking for egrep... 

Re: [Bacula-users] Problem installing bacula on Solaris 10

2014-10-25 Thread Kern Sibbald

On 14-10-24 09:45 PM, Kenneth Garges wrote:
I’m trying to build  Bacula 7.0.4 on a Solaris 10 box (Sun T5220) but 
am getting this error during the configure:


Doing make of dependencies
==Entering directory /home/garges/bacula-7.0.4/src
==Entering directory /home/garges/bacula-7.0.4/scripts
==Entering directory /home/garges/bacula-7.0.4/src/lib
mksh: Fatal error in reader: = missing from replacement macro reference
Current working directory /home/garges/bacula-7.0.4/src/lib
*** Error code 1
The following command caused the error:
for I in src scripts src/lib src/findlib src/filed  src/console 
src/plugins/fd src/cats src/dird src/stored src/tools manpages; \
do (cd $I; echo ==Entering directory `pwd`; make DESTDIR= depend || 
exit 1); done

make: Fatal error: Command failed for target `depend'
chmod: WARNING: can't access storage-ctl
chmod: WARNING: can't access bsg_persist

Following a suggestion I read on the net I changed line 52 of 
Makefile.in to force configure to use gmake instead of the Solaris make:


-bash-3.2$ more +52 -1 Makefile.in
  do (cd $$I; echo ==Entering directory `pwd`; 
/opt/csw/bin/gmake DESTDIR=$(DESTDIR) $@ || exit 1); done


That changes the error to:

Doing make of dependencies
==Entering directory /home/garges/bacula-7.0.4/src
gmake[1]: Entering directory `/home/garges/bacula-7.0.4/src'
gmake[1]: Nothing to be done for `depend'.
gmake[1]: Leaving directory `/home/garges/bacula-7.0.4/src'
==Entering directory /home/garges/bacula-7.0.4/scripts
gmake[1]: Entering directory `/home/garges/bacula-7.0.4/scripts'
gmake[1]: `depend' is up to date.
gmake[1]: Leaving directory `/home/garges/bacula-7.0.4/scripts'
==Entering directory /home/garges/bacula-7.0.4/src/lib
gmake[1]: Entering directory `/home/garges/bacula-7.0.4/src/lib'
/bin/sh: # DO NOT DELETE: nice dependency list follows: not found
gmake[1]: *** [depend] Error 1
gmake[1]: Leaving directory `/home/garges/bacula-7.0.4/src/lib'
*** Error code 1
The following command caused the error:
for I in src scripts src/lib src/findlib src/filed  src/console 
src/plugins/fd src/cats src/dird src/stored src/tools manpages; \
do (cd $I; echo ==Entering directory `pwd`; /opt/csw/bin/gmake 
DESTDIR= depend || exit 1); done

make: Fatal error: Command failed for target `depend'
chmod: WARNING: can't access storage-ctl
chmod: WARNING: can't access bsg_persist

Trying to run it manually gives the same error:

-bash-3.2$ cd src/lib
-bash-3.2$ /opt/csw/bin/gmake DESTDIR= depend
/bin/sh: # DO NOT DELETE: nice dependency list follows: not found
gmake: *** [depend] Error 1

The error seems to imply the shell is trying to execute the last line 
of the Makefile.in which is a comment!

-bash-3.2$ tail -2 Makefile.in
# DO NOT DELETE: nice dependency list follows

-bash-3.2$ tail -2 Makefile

# ---



So I’m stumped. What should I try next?




Here’s the whole dialog:

*PATH*=/opt/csw/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/openwin/bin:/usr/local/bin:/usr/ucb:/usr/sbin
*export* PATH

*LDFLAGS*=-L/opt/csw/lib -R/opt/csw/lib -L/opt/csw/lib/openssl 
-R/opt/csw/lib/openssl -I/opt/csw/include -I/opt/csw/include/openssl

*export* LDFLAGS
*
*
*CFLAGS*=-g -I/opt/csw/include -lcrypto -lssl -L/opt/csw/lib 
-R/opt/csw/lib

*export* CFLAGS

./*configure* \
--sbindir=/usr/local/bin \
--sysconfdir=/etc/bacula \
--with-postgresql=/opt/csw \
--enable-smartalloc \
--with-pid-dir=/var/bacula/working \
--with-subsys-dir=/var/bacula/subsys \
--with-working-dir=/var/bacula/working \
--with-dir-user=bacula \
--with-dir-group=backup \
--with-sd-user=bacula \
--with-sd-group=backup \
--with-fd-user=root \
--with-fd-group=backup \
--with-dump-email=gar...@ucsc.edu 
mailto:with-dump-email=gar...@ucsc.edu \

--with-job-email=gar...@ucsc.edu mailto:with-job-email=gar...@ucsc.edu \
--with-smtp-host=smtp.ucsc.edu http://smtp.ucsc.edu \
--with-openssl=/opt/csw \
--disable-ipv6 --disable-batch-insert

checking for true... /usr/bin/true
checking for false... /usr/bin/false
configuring for Bacula 7.0.4 (04 June 2014)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking whether gcc needs -traditional... no
checking for g++... /usr/local/bin/g++
checking for a BSD-compatible install... /opt/csw/bin/ginstall -c
checking for 

Re: [Bacula-users] Problem installing bacula on Solaris 10

2014-10-25 Thread Phil Stracchino
 On Fri, Oct 24, 2014 at 9:45 PM, Kenneth Garges gar...@ucsc.edu
 mailto:gar...@ucsc.edu wrote:
 
 I’m trying to build  Bacula 7.0.4 on a Solaris 10 box (Sun T5220)
 but am getting this error during the configure:
 
 Doing make of dependencies
 ==Entering directory /home/garges/bacula-7.0.4/src
 ==Entering directory /home/garges/bacula-7.0.4/scripts
 ==Entering directory /home/garges/bacula-7.0.4/src/lib
 mksh: Fatal error in reader: = missing from replacement macro reference
 Current working directory /home/garges/bacula-7.0.4/src/lib
 *** Error code 1
 The following command caused the error:
 for I in src scripts src/lib src/findlib src/filed  src/console
 src/plugins/fd src/cats src/dird src/stored src/tools manpages; \
   do (cd $I; echo ==Entering directory `pwd`; make DESTDIR=
 depend || exit 1); done
 make: Fatal error: Command failed for target `depend'
 chmod: WARNING: can't access storage-ctl
 chmod: WARNING: can't access bsg_persist
 
 Following a suggestion I read on the net I changed line 52 of
 Makefile.in to force configure to use gmake instead of the Solaris make:
 
 -bash-3.2$ more +52 -1 Makefile.in
   do (cd $$I; echo ==Entering directory `pwd`;
 /opt/csw/bin/gmake DESTDIR=$(DESTDIR) $@ || exit 1); done


Ken,
For what it's worth, I have found it to be better on Solaris to compile
Bacula using Sun Studio.  The last release Sun Studio packages for
Solaris 10 are, to the best of my knowledge, still a free download.

This is my Solaris 10 configure line.  At this point, the Solaris 10
machine runs only a client and an SD, but this may help you.


CC=/usr/bin/CC CXX=${CC} LDFLAGS=-m64 CFLAGS='-fast -xarch=generic
-xtarget=generic -xcache=generic -m64' CPPFLAGS=${CFLAGS} ./configure
--prefix=/opt/bacula --with-dump-email=r...@caerllewys.net
--with-job-email=r...@caerllewys.net
--with-smtp-host=smtp.caerllewys.net --with-subsys-dir=/opt/bacula/var
--with-working-dir=/opt/bacula/var --disable-build-dird
--with-mysql=/opt/mysql/mysql


Make is gmake 3.81.


-- 
  Phil Stracchino
  Babylon Communications
  ph...@caerllewys.net
  p...@co.ordinate.org
  Landline: 603.293.8485

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problem installing bacula on Solaris 10

2014-10-24 Thread Kenneth Garges
I’m trying to build  Bacula 7.0.4 on a Solaris 10 box (Sun T5220) but am 
getting this error during the configure:

Doing make of dependencies
==Entering directory /home/garges/bacula-7.0.4/src
==Entering directory /home/garges/bacula-7.0.4/scripts
==Entering directory /home/garges/bacula-7.0.4/src/lib
mksh: Fatal error in reader: = missing from replacement macro reference
Current working directory /home/garges/bacula-7.0.4/src/lib
*** Error code 1
The following command caused the error:
for I in src scripts src/lib src/findlib src/filed  src/console src/plugins/fd 
src/cats src/dird src/stored src/tools manpages; \
  do (cd $I; echo ==Entering directory `pwd`; make DESTDIR= depend || exit 
1); done
make: Fatal error: Command failed for target `depend'
chmod: WARNING: can't access storage-ctl
chmod: WARNING: can't access bsg_persist

Following a suggestion I read on the net I changed line 52 of Makefile.in to 
force configure to use gmake instead of the Solaris make:

-bash-3.2$ more +52 -1 Makefile.in
  do (cd $$I; echo ==Entering directory `pwd`; /opt/csw/bin/gmake 
DESTDIR=$(DESTDIR) $@ || exit 1); done

That changes the error to:

Doing make of dependencies
==Entering directory /home/garges/bacula-7.0.4/src
gmake[1]: Entering directory `/home/garges/bacula-7.0.4/src'
gmake[1]: Nothing to be done for `depend'.
gmake[1]: Leaving directory `/home/garges/bacula-7.0.4/src'
==Entering directory /home/garges/bacula-7.0.4/scripts
gmake[1]: Entering directory `/home/garges/bacula-7.0.4/scripts'
gmake[1]: `depend' is up to date.
gmake[1]: Leaving directory `/home/garges/bacula-7.0.4/scripts'
==Entering directory /home/garges/bacula-7.0.4/src/lib
gmake[1]: Entering directory `/home/garges/bacula-7.0.4/src/lib'
/bin/sh: # DO NOT DELETE: nice dependency list follows: not found
gmake[1]: *** [depend] Error 1
gmake[1]: Leaving directory `/home/garges/bacula-7.0.4/src/lib'
*** Error code 1
The following command caused the error:
for I in src scripts src/lib src/findlib src/filed  src/console src/plugins/fd 
src/cats src/dird src/stored src/tools manpages; \
  do (cd $I; echo ==Entering directory `pwd`; /opt/csw/bin/gmake DESTDIR= 
depend || exit 1); done
make: Fatal error: Command failed for target `depend'
chmod: WARNING: can't access storage-ctl
chmod: WARNING: can't access bsg_persist

Trying to run it manually gives the same error:

-bash-3.2$ cd src/lib
-bash-3.2$ /opt/csw/bin/gmake DESTDIR= depend
/bin/sh: # DO NOT DELETE: nice dependency list follows: not found
gmake: *** [depend] Error 1

The error seems to imply the shell is trying to execute the last line of the 
Makefile.in which is a comment!
-bash-3.2$ tail -2 Makefile.in
# DO NOT DELETE: nice dependency list follows

-bash-3.2$ tail -2 Makefile

# ---



So I’m stumped. What should I try next?




Here’s the whole dialog:

PATH=/opt/csw/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/openwin/bin:/usr/local/bin:/usr/ucb:/usr/sbin
export PATH

LDFLAGS=-L/opt/csw/lib -R/opt/csw/lib -L/opt/csw/lib/openssl 
-R/opt/csw/lib/openssl -I/opt/csw/include -I/opt/csw/include/openssl
export LDFLAGS

CFLAGS=-g -I/opt/csw/include -lcrypto -lssl -L/opt/csw/lib -R/opt/csw/lib
export CFLAGS

./configure \
  --sbindir=/usr/local/bin \
  --sysconfdir=/etc/bacula \
  --with-postgresql=/opt/csw \
  --enable-smartalloc \
  --with-pid-dir=/var/bacula/working \
  --with-subsys-dir=/var/bacula/subsys \
  --with-working-dir=/var/bacula/working \
  --with-dir-user=bacula \
  --with-dir-group=backup \
  --with-sd-user=bacula \
  --with-sd-group=backup \
  --with-fd-user=root \
  --with-fd-group=backup \
  --with-dump-email=gar...@ucsc.edu \
  --with-job-email=gar...@ucsc.edu \
  --with-smtp-host=smtp.ucsc.edu \
  --with-openssl=/opt/csw \
  --disable-ipv6 --disable-batch-insert

checking for true... /usr/bin/true
checking for false... /usr/bin/false
configuring for Bacula 7.0.4 (04 June 2014)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking whether gcc needs -traditional... no
checking for g++... /usr/local/bin/g++
checking for a BSD-compatible install... /opt/csw/bin/ginstall -c
checking for mv... /usr/bin/mv
checking for rm... /usr/bin/rm
checking for cp... /usr/bin/cp
checking for sed... /usr/bin/sed
checking for