Date: Fri, 09 Oct 2015 18:19:53 -0500 From: Larry Rosenman <ler@lerctr.org> To: Freebsd ports <freebsd-ports@freebsd.org> Subject: HELP: Bacula compile with older version installed Message-ID: <6a6589e34fa675cee98181e74325474a@thebighonker.lerctr.org>
next in thread | raw e-mail | index | archive | help
Related to BZ# 193641, the new 7.2.0 bacula port doesn't link if the 7.0.5 packages are installed. we get: ==>Entering directory /var/ports/basejail/usr/ports/sysutils/bacula-server/work/bacula-7.2.0/src/dird --- bacula-dir --- Linking bacula-dir ... /var/ports/basejail/usr/ports/sysutils/bacula-server/work/bacula-7.2.0/libtool --silent --tag=CXX --mode=link /usr/bin/c++ -L../lib -L../cats -L../findlib -L/usr/local/lib -L/usr/local/lib -fstack-protector -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 snapshot.o ua_status.o ua_tree.o ua_update.o vbackup.o verify.o -lbacfind -lbacsql -lbaccats -lbaccfg -lbac -lm -lpthread -lintl -lwrap /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib -lssl -lcrypto dird.o: In function `main': dird.c:(.text+0x2f3): undefined reference to `debug_level_tags' dird.o: In function `check_catalog(cat_op)': dird.c:(.text+0x215b): undefined reference to `set_db_engine_name(char const*)' backup.o: In function `update_bootstrap_file(JCR*)': backup.c:(.text+0x2635): undefined reference to `open_bpipe(char*, int, char const*, char**)' dir_plugins.o: In function `generate_plugin_event': dir_plugins.c:(.text+0x23): undefined reference to `b_plugin_list' dir_plugins.c:(.text+0xa7): undefined reference to `b_plugin_list' dir_plugins.c:(.text+0xe5): undefined reference to `b_plugin_list' dir_plugins.o: In function `load_dir_plugins': dir_plugins.c:(.text+0x264): undefined reference to `b_plugin_list' dir_plugins.c:(.text+0x28a): undefined reference to `b_plugin_list' dir_plugins.o:dir_plugins.c:(.text+0x30b): more undefined references to `b_plugin_list' follow fd_cmds.o: In function `restore_object_handler(void*, int, char**)': fd_cmds.c:(.text+0x1a4c): undefined reference to `BSOCK::send(int)' fd_cmds.c:(.text+0x1ac4): undefined reference to `BSOCK::send(int)' fd_cmds.o: In function `send_list_item(JCR*, char const*, char*, BSOCK*)': fd_cmds.c:(.text+0x2487): undefined reference to `BSOCK::send(int)' fd_cmds.c:(.text+0x24d4): undefined reference to `open_bpipe(char*, int, char const*, char**)' fd_cmds.c:(.text+0x25de): undefined reference to `BSOCK::send(int)' fd_cmds.c:(.text+0x2662): undefined reference to `BSOCK::send(int)' scheduler.o: In function `wait_for_next_job(char*)': scheduler.c:(.text+0x48): undefined reference to `debug_level_tags' scheduler.c:(.text+0x189): undefined reference to `debug_level_tags' scheduler.c:(.text+0x240): undefined reference to `debug_level_tags' scheduler.c:(.text+0x336): undefined reference to `debug_level_tags' scheduler.c:(.text+0x5eb): undefined reference to `debug_level_tags' scheduler.o:scheduler.c:(.text+0x81d): more undefined references to `debug_level_tags' follow ua_cmds.o: In function `wait_cmd(UAContext*, char const*)': ua_cmds.c:(.text+0x21cf): undefined reference to `job_status_to_str(int, int)' ua_dotcmds.o: In function `tagscmd(UAContext*, char const*)': ua_dotcmds.c:(.text+0x3472): undefined reference to `debug_get_tag(unsigned int, char const**)' ua_dotcmds.c:(.text+0x34ab): undefined reference to `debug_get_tag(unsigned int, char const**)' ua_output.o: In function `do_messages(UAContext*, char const*)': ua_output.c:(.text+0x2546): undefined reference to `BSOCK::send(int)' ua_output.o: In function `bmsg(UAContext*, char const*, __va_list_tag*)': ua_output.c:(.text+0x277e): undefined reference to `BSOCK::send(int)' snapshot.o: In function `snapshot_catreq(JCR*, BSOCK*)': snapshot.c:(.text+0x1605): undefined reference to `debug_level_tags' snapshot.c:(.text+0x175d): undefined reference to `debug_level_tags' snapshot.c:(.text+0x191f): undefined reference to `debug_level_tags' snapshot.c:(.text+0x1a1a): undefined reference to `debug_level_tags' snapshot.o: In function `SNAPSHOT_DBR::debug(int)': snapshot.c:(.text._ZN12SNAPSHOT_DBR5debugEi[_ZN12SNAPSHOT_DBR5debugEi]+0x2b): undefined reference to `debug_level_tags' ua_status.o: In function `list_dir_status_header(UAContext*)': ua_status.c:(.text+0x4e0): undefined reference to `b_plugin_list' ua_status.c:(.text+0x529): undefined reference to `b_plugin_list' ua_status.c:(.text+0x580): undefined reference to `b_plugin_list' /var/ports/basejail/usr/ports/sysutils/bacula-server/work/bacula-7.2.0/src/cats/.libs/libbacsql.so: undefined reference to `htable::init(void*, void*, int)' c++: error: linker command failed with exit code 1 (use -v to see invocation) *** [bacula-dir] Error code 1 make[3]: stopped in /var/ports/basejail/usr/ports/sysutils/bacula-server/work/bacula-7.2.0/src/dird 1 error make[3]: stopped in /var/ports/basejail/usr/ports/sysutils/bacula-server/work/bacula-7.2.0/src/dird ====== Error in /var/ports/basejail/usr/ports/sysutils/bacula-server/work/bacula-7.2.0/src/dird ====== *** [all] Error code 1 make[2]: stopped in /var/ports/basejail/usr/ports/sysutils/bacula-server/work/bacula-7.2.0 1 error make[2]: stopped in /var/ports/basejail/usr/ports/sysutils/bacula-server/work/bacula-7.2.0 ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /basejail/usr/ports/sysutils/bacula-server *** Error code 1 Stop. make: stopped in /basejail/usr/ports/sysutils/bacula-server ports-play /usr/ports/sysutils/bacula-server # I moved the -L's before the ${LDFLAGS} stuff thinking that was the issue, but as you can see no luck. I have a jail setup with this config if we could get some help I'd appreciate it. -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 E-Mail: ler@lerctr.org US Mail: 7011 W Parmer Ln, Apt 1115, Austin, TX 78729-6961
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a6589e34fa675cee98181e74325474a>