Hello,

I'm having difficulty compiling Bacula 3.0.3 on Solaris 10 x86.  The build 
fails at the same spot whether I'm using gcc or Sun Studio's compiler.  I'm 
linking against the 32-bit binary build of MySQL5 from OpenCSW.  My build 
environment is:

LDFLAGS=-L/opt/sunstudio12.1/lib -L/opt/csw/mysql5/lib/mysql
CPPFLAGS=-I/opt/sunstudio12.1/include
LD_LIBRARY_PATH=/opt/csw/mysql5/lib/mysql
LIBS=-lmysqlclient
CXX=/bin/CC
CC=/bin/cc

./configure --prefix=/opt/bacula --with-openssl=/opt/csw 
--with-mysql=/opt/csw/mysql5  --without-x

Everything compiles fine up to here:

make[1]: Entering directory `/opt/system/software/src/bacula-3.0.3/src/dird'
...
Linking bacula-dir ...
/opt/system/software/src/bacula-3.0.3/libtool --silent --tag=CXX --mode=link 
/bin/CC  -L/opt/sunstudio12.1/lib -L/opt/csw/mysql5/lib/mysql -L../lib 
-L../cats -L../findlib -o bacula-dir dird.o admin.o authenticate.o autoprune.o 
backup.o bsr.o catreq.o dir_plugins.o dird_conf.o expand.o fd_cmds.o getmsg.o 
inc_conf.o job.o jobq.o migrate.o mountreq.o msgchan.o next_vol.o newvol.o 
pythondir.o recycle.o restore.o run_conf.o scheduler.o ua_acl.o ua_cmds.o 
ua_dotcmds.o ua_query.o ua_input.o ua_label.o ua_output.o ua_prune.o ua_purge.o 
ua_restore.o ua_run.o ua_select.o ua_server.o ua_status.o ua_tree.o ua_update.o 
vbackup.o verify.o \
              -lbacfind -lbacsql -lbacpy -lbaccfg -lbac -lm    -lpthread 
-lresolv -lnsl -lsocket -lxnet -lmysqlclient -lintl -lresolv \
                -L/opt/csw/lib -lssl -lcrypto
Undefined                       first referenced
 symbol                             in file
my_thread_end                       
/opt/system/software/src/bacula-3.0.3/src/cats/.libs/libbacsql.so
ld: fatal: Symbol referencing errors. No output written to .libs/bacula-dir
make[1]: *** [bacula-dir] Error 1
make[1]: Leaving directory `/opt/system/software/src/bacula-3.0.3/src/dird'


  ====== Error in /opt/system/software/src/bacula-3.0.3/src/dird ======

As I mentioned, changing CC and CXX to gcc doesn't seem to make a difference -- 
it results in an undefined symbol, "my _thread_end" error when linking 
bacula-dir.

Any suggestions?

Thanks,
Brent



------------------------------------------------------------------------------
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to