Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jan 2022 13:24:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 261226] sysutils/bareos-server: compiler error: undefined reference to json_object
Message-ID:  <bug-261226-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261226

            Bug ID: 261226
           Summary: sysutils/bareos-server: compiler error: undefined
                    reference to json_object
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: acm@FreeBSD.org
          Reporter: ohartmann@walstatt.org
             Flags: maintainer-feedback?(acm@FreeBSD.org)
          Assignee: acm@FreeBSD.org

On FreeBSD 13/STABLE jail performing poudriere job, the port
sysutils/bareos-server fails to compile due to a linker error, see below.

Evironment:

=3D>> Building sysutils/bareos-server
build started at Sat Jan 15 11:42:23 UTC 2022
port directory: /usr/ports/sysutils/bareos-server
package name: bareos-server-20.0.3
building for: FreeBSD hostname.gder 13.0-STABLE FreeBSD 13.0-STABLE 1300523
amd64
maintained by: acm@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root  wheel  6710 Nov 26 00:06
/usr/ports/sysutils/bareos-server/Makefile
Ports top last git commit: bee5c815503c
Ports top unclean checkout: no
Port dir last git commit: 04b9da414081
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.3.99.20211130
Host OSVERSION: 1400047
Jail OSVERSION: 1300523
Job Id: 01

---Begin Environment---
SHELL=3D/bin/csh
OSVERSION=3D1300523
UNAME_v=3DFreeBSD 13.0-STABLE 1300523
UNAME_r=3D13.0-STABLE
BLOCKSIZE=3DK
MAIL=3D/var/mail/root
MM_CHARSET=3DUTF-8
LANG=3DC.UTF-8
STATUS=3D1
HOME=3D/root
PATH=3D/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/b=
in
LOCALBASE=3D/usr/local
USER=3Droot
POUDRIERE_NAME=3Dpoudriere-git
LIBEXECPREFIX=3D/usr/local/libexec/poudriere
POUDRIERE_VERSION=3D3.3.99.20211130
MAKEOBJDIRPREFIX=3D/pool/sources/13-STABLE/obj/
MASTERMNT=3D/pool/poudriere/data/.m/13-amd64-head-default/ref
LC_COLLATE=3DC
POUDRIERE_BUILD_TYPE=3Dbulk
PACKAGE_BUILDING=3Dyes
SAVED_TERM=3Dscreen
OUTPUT_REDIRECTED_STDERR=3D4
OUTPUT_REDIRECTED=3D1
PWD=3D/pool/poudriere/data/.m/13-amd64-head-default/01/.p
OUTPUT_REDIRECTED_STDOUT=3D3
P_PORTS_FEATURES=3DFLAVORS SELECTED_OPTIONS
MASTERNAME=3D13-amd64-head-default
SCRIPTPREFIX=3D/usr/local/share/poudriere
SCRIPTNAME=3Dbulk.sh
OLDPWD=3D/pool/poudriere/data/.m/13-amd64-head-default/ref/.p/pool
POUDRIERE_PKGNAME=3Dpoudriere-git-3.3.99.20211130
SCRIPTPATH=3D/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=3D/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=3D
PKGENV=3D
FLAVOR=3D
DEPENDS_ARGS=3D
MAKE_ARGS=3D
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
=3D=3D=3D> The following configuration options are available for
bareos-server-20.0.3:
     LMDB=3Don: Enable faster accurate backup support
     MTX=3Doff: Install mtx for control of autochanger devices
     NDMP=3Doff: Enable build of NDMP support
     NLS=3Don: Native Language Support
     PYTHON=3Doff: Python bindings or support
     SCSICRYPTO=3Don: Build LTO AME crypto plugin
=3D=3D=3D=3D> Storage backends
     CEPHFS=3Doff: CEPHFS backend support
     GFAPI=3Doff: GFAPI backend support
     RADOS=3Doff: RADOS backend support
=3D=3D=3D=3D> Cryptographic library: you have to select exactly one of them
     OPENSSL=3Don: SSL/TLS support via OpenSSL
     GNUTLS=3Doff: SSL/TLS support via GnuTLS
=3D=3D=3D=3D> Database support: you have to select exactly one of them
     SQLITE3=3Doff: SQLite 3 database support
     MYSQL=3Doff: MySQL database support
     PGSQL=3Don: PostgreSQL database support
=3D=3D=3D> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
acm@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--
--without-gnutls
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
ac_cv_path_PERL=3D/usr/local/bin/perl ac_cv_path_PERL_PATH=3D/usr/local/bin=
/perl=20
PERL_USE_UNSAFE_INC=3D1 PKG_CONFIG=3Dpkgconf
XDG_DATA_HOME=3D/wrkdirs/usr/ports/sysutils/bareos-server/work=20
XDG_CONFIG_HOME=3D/wrkdirs/usr/ports/sysutils/bareos-server/work=20
XDG_CACHE_HOME=3D/wrkdirs/usr/ports/sysutils/bareos-server/work/.cache=20
HOME=3D/wrkdirs/usr/ports/sysutils/bareos-server/work TMPDIR=3D"/tmp"
PATH=3D/wrkdirs/usr/ports/sysutils/bareos-server/work/.bin:/sbin:/bin:/usr/=
sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
SHELL=3D/bin/sh CONFIG_SHELL=3D/bin/sh CMAKE_PREFIX_PATH=3D"/usr/local"
--End CONFIGURE_ENV--

[...]

FAILED: core/src/stored/bls=20
: && /usr/bin/c++ -O2 -pipe -DMDB_DSYNC=3DO_SYNC -DMDB_USE_POSIX_SEM=3D1
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing=20
-isystem /usr/local/include -Wsuggest-override -Wformat -Werror=3Dformat-se=
curity
-fdebug-prefix-map=3D/wrkdirs/usr/ports/sysutils/bareos-server/work/bareos-=
Release-20.0.3/core=3D.
-fmacro-prefix-map=3D/wrkdirs/usr/ports/sysutils/bareos-server/work/bareos-=
Release-20.0.3/core=3D.
-Wno-unknown-pragmas -Wall -Wno-deprecated-register -O2 -pipe
-DMDB_DSYNC=3DO_SYNC -DMDB_USE_POSIX_SEM=3D1 -fstack-protector-strong -isys=
tem
/usr/local/include -fno-strict-aliasing  -isystem /usr/local/include
-L/usr/local/lib -L/usr/local/lib  -L/usr/local/lib -fstack-protector-strong
core/src/stored/CMakeFiles/bls.dir/bls.cc.o -o core/src/stored/bls=20
-Wl,-rpath,/wrkdirs/usr/ports/sysutils/bareos-server/work/.build/core/src/s=
tored:
 -lintl  -lbareos  core/src/stored/libbareossd.so  -lbareosfind=20
/usr/lib/libpthread.so  -lintl && :
ld: error: core/src/stored/libbareossd.so: undefined reference to json_obje=
ct
[--no-allow-shlib-undefined]
ld: error: core/src/stored/libbareossd.so: undefined reference to json_inte=
ger
[--no-allow-shlib-undefined]
ld: error: core/src/stored/libbareossd.so: undefined reference to
json_object_set_new [--no-allow-shlib-undefined]
ld: error: core/src/stored/libbareossd.so: undefined reference to json_stri=
ng
[--no-allow-shlib-undefined]
ld: error: core/src/stored/libbareossd.so: undefined reference to json_dumps
[--no-allow-shlib-undefined]
ld: error: core/src/stored/libbareossd.so: undefined reference to json_dele=
te
[--no-allow-shlib-undefined]
c++: error: linker command failed with exit code 1 (use -v to see invocatio=
n)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261226-7788>