Bug 207595 - ! sysutils/bareos-client (bareos-client-15.2.2) (linker error)
Summary: ! sysutils/bareos-client (bareos-client-15.2.2) (linker error)
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Jose Alonso Cardenas Marquez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-29 15:19 UTC by Thomas Schweikle
Modified: 2018-03-03 13:15 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (acm)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schweikle 2016-02-29 15:19:08 UTC
FreeBSD fbsd10-64.bfs.de 10.3-BETA3 FreeBSD 10.3-BETA3 #12 r296183: Mon Feb 29 11:42:33 CET 2016     root@fbsd10-64.bfs.de:/usr/obj/usr/src/sys/FBSD10  amd64

Linker error linking bareos-client:

# cd /usr/ports/sysutils/bareos-client
# make clean
# make build
[...]
c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
Linking bareos-fd ...
/usr/ports/sysutils/bareos-client/work/bareos-fb775025d54ef77abb4d67cc5aa9ecb90bca4839/libtool --silent --tag=CXX --mode=link /usr/bin/c++  -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    -lz -llzo2     -lbareosfind -lbareoscfg -lbareos -lm -lpthread  -lintl   -lwrap /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib -lssl -lcrypto  -L/usr/local/lib -ljansson
filed_conf.o: In function `print_config_schema_json(POOL_MEM&)':
filed_conf.c:(.text+0xf95): undefined reference to `json_items(RES_ITEM*)'
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-fb775025d54ef77abb4d67cc5aa9ecb90bca4839/src/filed
1 error

make[3]: stopped in /usr/ports/sysutils/bareos-client/work/bareos-fb775025d54ef77abb4d67cc5aa9ecb90bca4839/src/filed
  ====== Error in /usr/ports/sysutils/bareos-client/work/bareos-fb775025d54ef77abb4d67cc5aa9ecb90bca4839/src/filed ======
*** [all] Error code 1

make[2]: stopped in /usr/ports/sysutils/bareos-client/work/bareos-fb775025d54ef77abb4d67cc5aa9ecb90bca4839
1 error

make[2]: stopped in /usr/ports/sysutils/bareos-client/work/bareos-fb775025d54ef77abb4d67cc5aa9ecb90bca4839
===> 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 /usr/ports/sysutils/bareos-client
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/bareos-client

Same for FreeBSD 9.x, 10.x, CURRENT
Comment 1 w.schwarzenfeld 2016-02-29 17:07:15 UTC
Compiles fine on 10.2-RELEASE amd64.
Comment 2 w.schwarzenfeld 2016-02-29 17:55:00 UTC
Also try it with 9.3-RELEASE amd64 , compiles without problems.
Comment 3 Thomas Schweikle 2016-03-16 09:19:24 UTC
does not on FreeBSD fbsd10-64 10.3-PRERELEASE FreeBSD 10.3-PRERELEASE #13 r296919: Wed Mar 16 00:52:18 CET 2016     root@fbsd10-64:/usr/obj/usr/src/sys/FBSD10  amd64
Comment 4 Thomas Schweikle 2016-03-16 10:08:19 UTC
Doesn't compile on FreeBSD fbsd9-64 9.3-STABLE FreeBSD 9.3-STABLE #7 r294905: Wed Jan 27 13:14:29 CET 2016     root@fbsd9-64:/usr/obj/usr/src/sys/FBSD9  amd64

/usr/ports/sysutils/bareos-client/work/bareos-fb775025d54ef77abb4d67cc5aa9ecb90bca4839/libtool --silent --tag=CXX --mode=link /usr/bin/c++  -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    -lz -llzo2     -lbareosfind -lbareoscfg -lbareos -lm -lpthread  -lintl   -lwrap /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib -lssl -lcrypto  -L/usr/local/lib -ljansson
filed_conf.o: In function `print_config_schema_json(POOL_MEM&)':
filed_conf.c:(.text+0x806): undefined reference to `json_items(RES_ITEM*)'
*** [bareos-fd] Error code 1
1 error
  ====== Error in /usr/ports/sysutils/bareos-client/work/bareos-fb775025d54ef77abb4d67cc5aa9ecb90bca4839/src/filed ======
*** [all] Error code 1
1 error
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/sysutils/bareos-client.
*** [build] Error code 1

Stop in /usr/ports/sysutils/bareos-client.


Comments #1,#2 tell it compiles. I'd say it does not. Looks a lot like commenters #1,#2 do not compile on a clean system. Looks a lot like they have dependencies installed not pulled in by sysutils/bareos-clients automatically running "make build".
Comment 5 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2016-05-05 17:28:14 UTC
I tried it on poudriere (10.3-RELEASE amd64) and it compiles without problems. do you have some entries into /etc/make.conf?
Comment 6 tschweikle 2016-05-10 09:34:46 UTC
# PKGNG
WITH_PKGNG="YES"
WITHOUT_X11=yes

# INDEX
INDEX_JOBS!= echo "`/sbin/sysctl -n kern.smp.cpus` + 1" | /usr/bin/bc

# Tests
WITH_TESTS=yes

# Default-Versions
DEFAULT_VERSIONS+=perl5=5.22
Comment 7 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2017-04-21 18:02:18 UTC
Please, test new version of bareos and tell me if you have the same problem there
Comment 8 Walter Schwarzenfeld freebsd_triage 2018-02-07 23:30:39 UTC
We have DISTVERSION=    16.2.7. Is this still relevant?