>>>>> On Mon, 10 Sep 2007 20:48:56 -0400, Ivan Adzhubey said:
> 
> Hi,
> 
> I am trying to build static bacula 2.2.3 client on Mac OS X 10.3 (Apple XCode 
> Tools 1.5 with November 2004 gcc update installed) for distributing among 
> older Macs still in use here. I am having the following errors from ld while 
> executing make command (see below). As far as I know crt0.o is a very old 
> (pre-glibc) and deprecated way of linking statically. Why bacula build is 
> attempting to explicitly link with crt0.o? There is no such problems under OS 
> X 10.4.x with the latest XCode Tools 2.4.1 installed but this version is only 
> available for OS X 10.4.

The requirement for the crt0.o comes from g++, so there isn't much that can be
done about it.

Moreover, I don't think any version of Mac OS X / XCode supports static
binaries (only static libraries).  Did you configure it differently on 10.4?

__Martin


> 
> Thanks,
> Ivan
> 
> 
> Excerpt from make log:
> 
> ==>Entering directory /Users/ivan/bacula-2.2.3/src/filed
> Compiling filed.c
> Compiling authenticate.c
> Compiling acl.c
> Compiling backup.c
> Compiling estimate.c
> Compiling filed_conf.c
> Compiling heartbeat.c
> Compiling job.c
> Compiling pythonfd.c
> Compiling restore.c
> Compiling status.c
> Compiling verify.c
> Compiling verify_vol.c
> Linking bacula-fd ...
> /usr/bin/g++   -L../lib -L../findlib -o bacula-fd filed.o authenticate.o 
> acl.o 
> backup.o estimate.o filed_conf.o heartbeat.o job.o pythonfd.o restore.o 
> status.o verify.o verify_vol.o \
>    -lz             -lfind -lbac -lm  -lpthread  \
>      
> /usr/bin/g++   -static -L../lib -L../findlib -o static-bacula-fd filed.o 
> authenticate.o acl.o backup.o estimate.o filed_conf.o heartbeat.o job.o 
> pythonfd.o restore.o status.o verify.o verify_vol.o \
>     -lz            -lfind -lbac -lm  -lpthread  \
>       
> ld: can't locate file for: -lcrt0.o
> make[1]: *** [static-bacula-fd] Error 1
> 
> 
>   ====== Error in /Users/ivan/bacula-2.2.3/src/filed ======
> 
> 
> ==>Entering directory /Users/ivan/bacula-2.2.3/src/console
> Compiling console.c
> console.c:737: warning: `bool bisatty(int)' defined but not used
> Compiling console_conf.c
> Compiling authenticate.c
> /usr/bin/g++   -L../lib -L../cats -o bconsole console.o console_conf.o 
> authenticate.o  \
>          -lbac -lm -lpthread   \
>       
> /usr/bin/g++ -static   -L../lib -L../cats -o static-bconsole console.o 
> console_conf.o authenticate.o  \
>          -lbac -lm -lpthread   \
>       
> ld: can't locate file for: -lcrt0.o
> make[1]: *** [static-bconsole] Error 1
> 
> 
>   ====== Error in /Users/ivan/bacula-2.2.3/src/console ======
> 
> 
> The information transmitted in this electronic communication is intended only 
> for the person or entity to whom it is addressed and may contain confidential 
> and/or privileged material. Any review, retransmission, dissemination or 
> other use of or taking of any action in reliance upon this information by 
> persons or entities other than the intended recipient is prohibited. If you 
> received this information in error, please contact the Compliance HelpLine at 
> 800-856-1983 and properly dispose of this information.
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bacula-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to