Bacula-users

Re: [Bacula-users] undefined symbol in libbacsql.so

2010-01-07 17:28:15
Subject: Re: [Bacula-users] undefined symbol in libbacsql.so
From: Brent Kearney <brentk AT birs DOT ca>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 7 Jan 2010 15:24:00 -0700
I hate to reply to my own thread, but just for the record:

I think the problem is that the new CSW MySQL binary was not linked to the 
pthread library.  I compiled the client MySQL from source and linked to it 
instead, and that worked.

mysql-5.1.42]$ ./configure --prefix=/opt/mysql32 --with-pthread --without-server

 B


On 2010-01-06, at 17:56 , Brent Kearney wrote:

> 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 AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 


------------------------------------------------------------------------------
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>