From: <jlt...@ad...> - 2003-12-06 15:41:43
|
At 15:16 06/12/2003, you wrote: >On 3 Dec 2003 at 15:14, Kern Sibbald wrote: > >[snip] > >There is one compile issue (see >http://beta.freebsddiary.org/bacula/build.1.html for a better format) > >c++ -L/usr/local/lib -pthread -L../lib -L../cats -L../findlib -o >bacula-dir dird.o admin.o authenticate.o autoprune.o backup.o bs >r.o catreq.o dird_conf.o expand.o fd_cmds.o getmsg.o inc_conf.o >job.o jobq.o mountreq.o msgchan.o next_vol.o newvol.o recycle.o > restore.o run_conf.o scheduler.o sql_cmds.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 verify.o -lsql -lbac -lfind -lm -D_THREAD_SAFE -lw >rap -lxpg4 >next_vol.o: In function ind_next_volume_for_append(JCR *, MEDIA_DBR >*, int)': >next_vol.o(.text+0xbd): undefined reference to >b_find_next_volume(JCR *, s_db *, int, bool, MEDIA_DBR *)' >next_vol.o(.text+0x225): undefined reference to >b_find_next_volume(JCR *, s_db *, int, bool, MEDIA_DBR *)' >recycle.o: In function ind_recycled_volume(JCR *, bool, MEDIA_DBR >*)': >recycle.o(.text+0xcf): undefined reference to b_find_next_volume(JCR >*, s_db *, int, bool, MEDIA_DBR *)' >*** Error code 1 > > >src/cats/sql_find.c contains db_find_next_volume but I don't see why >it's not finding it. If it is gcc 2.95 or similar, try reordering the "-llib" switches... it will eventually start working. Don't ask me why.. seems to be a limitation of the toolchain. I have always been able to overcome this same problem that way. Hope that helps. Regards, J.L. |