Bug 220594

Summary: sysutils/bareos-client: linker failure on 12-CURRENT
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed Feedback Timeout    
Severity: Affects Many People CC: w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (acm)
Version: Latest   
Hardware: Any   
OS: Any   

Description O. Hartmann 2017-07-10 08:48:56 UTC
Building/updating sysutils/bareos-client on FreeBSD 12.0-CURRENT #2 r320866: Mon Jul 10 08:36:49 CEST 2017 amd64 (ld is ld.bfd!), results in the following error:

[...]
Linking bareos-fd ...
/usr/ports/sysutils/bareos-client/work/bareos-Release-16.2.6/libtool --silent --tag=CXX --mode=link /usr/bin/c++  -L/usr/local/lib -L/usr/local/lib -fstack-protector -L../lib -L../findlib -o bareos-fd accurate.o accurate_htable.o accurate_lmdb.o authenticate.o backup.o compression.o crypto.o dir_cmd.o estimate.o fd_plugins.o filed_conf.o filed.o fileset.o heartbeat.o restore.o sd_cmds.o socket_server.o status.o verify_vol.o verify.o  -lbareosfind -lbareoscfg -lbareos -lm -L../lmdb -lbareoslmdb  -lz -llzo2     -lpthread  -lintl   -lwrap /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib -lssl -lcrypto  -L/usr/local/lib -ljansson
backup.o: In function `save_file(JCR*, FF_PKT*, bool)':
backup.c:(.text+0xffd): undefined reference to `bopen(BFILE*, char const*, int, unsigned short, unsigned long)'
crypto.o: In function `verify_signature(JCR*, r_ctx&)':
crypto.c:(.text+0x4af): undefined reference to `find_one_file(JCR*, FF_PKT*, int (*)(JCR*, FF_PKT*, bool), char*, unsigned long, bool)'
fd_plugins.o: In function `plugin_save(JCR*, FF_PKT*, bool)':
fd_plugins.c:(.text+0x14d9): undefined reference to `lookup_hardlink(JCR*, FF_PKT*, unsigned long, unsigned long)'
fd_plugins.c:(.text+0x1556): undefined reference to `new_hardlink(JCR*, FF_PKT*, char*, unsigned long, unsigned long)'
fd_plugins.o: In function `plugin_create_file(JCR*, ATTR*, BFILE*, int)':
fd_plugins.c:(.text+0x2919): undefined reference to `bopen(BFILE*, char const*, int, unsigned short, unsigned long)'
verify.o: In function `digest_file(JCR*, FF_PKT*, Digest*)':
verify.c:(.text+0xb5e): undefined reference to `bopen(BFILE*, char const*, int, unsigned short, unsigned long)'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** [bareos-fd] Error code 1

make[3]: stopped in /usr/ports/sysutils/bareos-client/work/bareos-Release-16.2.6/src/filed
1 error

make[3]: stopped in /usr/ports/sysutils/bareos-client/work/bareos-Release-16.2.6/src/filed
Comment 1 O. Hartmann 2017-07-28 06:23:49 UTC
*** Bug 219590 has been marked as a duplicate of this bug. ***
Comment 2 Walter Schwarzenfeld 2018-03-15 10:48:26 UTC
We have version 17.2.5. Still the problem?