>>>>> On Fri, 12 Jul 2019 11:54:49 +0200, Andrea Brancatelli via Bacula-users >>>>> said: > > Hello, > > I was trying to upgrade our Bacula 9.4.2 to 9.4.3 on FreeBSD. > > I have to compile it from ports and not use binaries as the official PKG > uses pgsql while we're using mysql. > > Anyhow, halfway through the compilation I get this error: > > Linking bacula-dir ... > /usr/ports/sysutils/bacula9-server/work/bacula-9.4.3/libtool --silent > --tag=CXX --mode=link /usr/bin/c++ -L/usr/local/lib -L/usr/local/lib > -fstack-protector-strong -L../lib -L../cats -L../findlib -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 -lz -lbacfind > -lbacsql -lbaccats -lbaccfg -lbac -lm -lpthread -lintl -lwrap > /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib -lssl -lcrypto > /usr/bin/ld: error: undefined symbol: BDB::bdb_get_client_pool(JCR*, > alist*) > >>> referenced by ua_prune.c > >>> ua_prune.o:(prunecmd(UAContext*, char const*)) > c++: error: linker command failed with exit code 1 (use -v to see > invocation) > *** [bacula-dir] Error code 1 > > I suppose this is related to > https://fossies.org/diffs/bacula/9.4.2_vs_9.4.3/src/cats/sql_get.c-diff.html > which looks like a new function... ? > > Any idea about what could be causing the error?
Try uninstalling the 9.4.2 pkgs first -- the ports build links with the wrong Bacula libraries if you have another version installed. __Martin _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users