I’m working on creating the Bacula 7 port for FreeBSD.  I’ve run into a linking 
problem

Linking bacula-dir ...
/var/ports/root/bacula7-server/work/bacula-7.0.0/libtool --silent --tag=CXX 
--mode=link /usr/bin/c++ -L../lib -L../cats -L../findlib  -L/usr/local/lib 
-Wl,-rpath=/usr/lib:/usr/local/lib -L/usr/local/lib -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 mac.o mac_sql.o 
mountreq.o msgchan.o next_vol.o newvol.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 
-lbaccats -lbacpy -lbaccfg -lbac -lm   -lpthread  -lintl  -lwrap 
/usr/local/lib/libintl.so /usr/local/lib/libiconv.so -Wl,-rpath 
-Wl,/usr/local/lib -L/usr/lib -lssl -lcrypto 
dird.o: In function `check_catalog(cat_op)':
dird.c:(.text+0x361): undefined reference to `d_msg(char const*, int, long, 
char const*, ...)'
dird.c:(.text+0x58d): undefined reference to `d_msg(char const*, int, long, 
char const*, ...)'
dird.c:(.text+0x6af): undefined reference to `d_msg(char const*, int, long, 
char const*, ...)'
dird.o: In function `free_saved_resources(int)’:

I see d_msg is defined in baconfig.h as a macro, but I can’t see why this is 
creating a linking problem.

-- 
Dan Langille - http://langille.org

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to