I am trying to compile bacula on mac os x leopard and I am getting following
errors.
/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_classic: can't locate file for: -lcrt0.o
collect2: ld returned 1 exit status
make[1]: *** [static-bacula-fd] Error 1
====== Error in /Users/shahhe/Downloads/bacula-2.4.3/src/filed ======
==>Entering directory /Users/shahhe/Downloads/bacula-2.4.3/src/console
Compiling console.c
console.c: In function ʽint get_cmd(FILE*, const char*, BSOCK*, int)ʼ:
console.c:718: error: ʽrl_catch_signalsʼ was not declared in this scope
make[1]: *** [console.o] Error 1
====== Error in /Users/shahhe/Downloads/bacula-2.4.3/src/console ======
/usr/bin/g++ -static -L../lib -L../cats -L../findlib -o static-bacula-dir
dird.o admin.o authenticate.o autoprune.o backup.o bsr.o catreq.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 verify.o \
-lsql -lbac -lfind -lm -L/usr/lib -lsqlite3 -lpthread \
ld_classic: can't locate file for: -lcrt0.o
collect2: ld returned 1 exit status
make[1]: *** [static-bacula-dir] Error 1
====== Error in /Users/shahhe/Downloads/bacula-2.4.3/src/dird ======
/usr/bin/g++ -static -L../lib -o static-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 -lz \
-lbac -lm -lpthread \
ld_classic: can't locate file for: -lcrt0.o
collect2: ld returned 1 exit status
make[1]: *** [static-bacula-sd] Error 1
====== Error in /Users/shahhe/Downloads/bacula-2.4.3/src/stored ======
Here is the gcc version:
$ gcc --version
powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Full output is attached to the e-mail.
I am trying to compile it static because I want to copy fd to other macs that
does not have xcode installed, I am not sure if dynamic version will work.
Hemant Shah
E-mail: hjrrs AT yahoo DOT com
bacula_compile.txt
Description: Text document
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|