Re: [Dbbalancer-users] Re: Building static binary
Status: Alpha
Brought to you by:
xperience
From: Andrew M. <an...@ca...> - 2001-11-03 22:11:01
|
On Sun, 2001-11-04 at 08:37, Daniel Varela Santoalla wrote: > That's curious. > > The missing symbols are from librt. My dynamic binary links to it, as libACE > does. But my static builds doesn't seem to need it, even being those symbols > undefined in my libACE.a. I suppose that the ACE functionality that needs > librt isn't being used, but your compiler complains anyway. > > I suppose that a good solution is to add -lrt to the static build line. It > doesn't hurt my build, anyway. I've added it to next version. That did the trick - thanks. I still get one warning: c++ -g -O2 -D_REENTRANT -pthread -static -o dbbalancerd.static DBBalancer.o DBBalancerDaemon.o config/DBBalancerTxtConfig.o postgres/DBPostgresPooledConnection.o postgres/DBPostgresWriterConnection.o postgres/DBPostgresBackend.o postgres/DBPostgresFrontend.o conn_pool/DBPool.o conn_pool/DBPoolContainer.o conn_pool/DBPooledConnection.o thread_pool/DBThreadPool.o thread_pool/DBThreadCtlMO.o method_objects/DBDoConnectionMO.o method_objects/DBManagementMO.o -lACE -lrt -ldl /usr/lib/libACE.a(OS.o): In function `ACE_OS::thr_create(void *(*)(void *), void *, long, unsigned long *, unsigned long *, long, void *, unsigned int, ACE_Thread_Adapter *)': OS.o(.text+0xe91): the use of `pthread_attr_setstackaddr' is deprecated, use `pthread_attr_setstack' At least now I have a static binary I can put onto some of our servers and try this out in the real world... Cheers, Andrew. -- -------------------------------------------------------------------- Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St, Wellington WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St DDI: +64(4)916-7201 MOB: +64(21)635-694 OFFICE: +64(4)499-2267 |