Bacula-users

[Bacula-users] Compiling on Solaris 10 - storage daemon build dying

2009-01-02 14:03:01
Subject: [Bacula-users] Compiling on Solaris 10 - storage daemon build dying
From: Jeff MacDonald <oss AT bignose DOT ca>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 2 Jan 2009 14:24:36 -0400
Hi,

I'm compiling on Solaris 10, consistantly the build fails on the  
storage daemon.

Here is my configure line:

#!/bin/sh

./configure \
     --prefix=/opt/bacula \
     --sbindir=/opt/bacula/bin \
     --sysconfdir=/opt/bacula/etc \
     --with-pid-dir=/opt/bacula/bin/working \
     --with-subsys-dir=/opt/bacula/bin/working \
     --enable-smartalloc \
     --enable-batch-insert \
     --enable-static-tools \
     --without-mysql \
     --without-sqlite \
     --with-openssl \
     --with-readline \
     --with-postgresql=/usr/postgres/8.3 \
     --with-working-dir=/opt/bacula/bin/working \
     --with-dump-email=bignose AT gmail DOT com \
     --with-job-email=bignose AT gmail DOT com \
     --with-smtp-host=localhost

exit 0

And here are the errors I get from my "make"

===== snip  =======
/usr/sfw/bin/g++   -L../lib -o bacula-sd stored.o ansi_label.o   
autochanger.o acquire.o append.o  askdir.o authenticate.o  block.o  
butil.o dev.o  device.o dircmd.o dvd.o ebcdic.o fd_cmds.o job.o   
label.o lock.o mac.o match_bsr.o mount.o parse_bsr.o  pythonsd.o  
read.o read_record.o record.o  reserve.o scan.o  spool.o status.o  
stored_conf.o wait.o -lsec -lz \
   -lbac -lm   -lpthread -lresolv -lnsl -lsocket -lxnet  -lintl - 
lresolv  \
    -lssl -lcrypto
Compiling bls.c
Compiling
ld: fatal: library -lpthread: not found
ld: fatal: library -lresolv: not found
ld: fatal: library -lnsl: not found
ld: fatal: library -lsocket: not found
ld: fatal: library -lxnet: not found
ld: fatal: library -lintl: not found
ld: fatal: library -lresolv: not found
ld: fatal: library -lssl: not found
ld: fatal: library -lcrypto: not found
ld: fatal: library -lm: not found
ld: fatal: library -lc: not found
ld: fatal: File processing errors. No output written to bls
collect2: ld returned 1 exit status
*** Error code 1
The following command caused the error:
/usr/sfw/bin/g++ -static  -L../lib -L../findlib -o bls bls.o block.o  
butil.o device.o dev.o label.o match_bsr.o  ansi_label.o dvd.o  
ebcdic.o lock.o  autochanger.o acquire.o mount.o parse_bsr.o  
record.o        read_record.o reserve.o scan.o stored_conf.o spool.o  
wait.o  -lfind \
  -lbac -lm -lpthread -lresolv -lnsl -lsocket -lxnet  -lintl -lresolv   
-lssl -lcrypto
make: Fatal error: Command failed for target `bls'
Current working directory /home/bacula/bacula-2.4.3/src/stored
======= snip ========


The thing is, all of these libraries exist in /lib and /usr/lib and  
the headers are in /usr/include

crle says /lib and /usr/lib are valid directories..

Can someone give me some direction please... I'm kinda lost with this  
stuff.

Thanks

Jeff

------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users