Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Sep 2016 13:40:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 212853] sysutils/bacula-server: build error on FreeBSD 9.3 amd64
Message-ID:  <bug-212853-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 212853
           Summary: sysutils/bacula-server: build error on FreeBSD 9.3
                    amd64
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: dvl@FreeBSD.org
          Reporter: frank@deze.org
          Assignee: dvl@FreeBSD.org
             Flags: maintainer-feedback?(dvl@FreeBSD.org)

The port does not build on my FreeBSD 9.3 system (AMD64).

The only non-standard thing is that I use mysql for the database. Options f=
ile
contains:

# This file is auto-generated by 'make config'.
# Options for bacula-server-7.4.2
_OPTIONS_READ=3Dbacula-server-7.4.2
_FILE_COMPLETE_OPTIONS_LIST=3DENABLE_IPV6 MTX MYSQL NLS PGSQL PYTHON SQLITE3
OPTIONS_FILE_SET+=3DENABLE_IPV6
OPTIONS_FILE_UNSET+=3DMTX
OPTIONS_FILE_SET+=3DMYSQL
OPTIONS_FILE_UNSET+=3DNLS
OPTIONS_FILE_UNSET+=3DPGSQL
OPTIONS_FILE_UNSET+=3DPYTHON
OPTIONS_FILE_UNSET+=3DSQLITE3


Build output:

Configuration on Tue Sep 20 15:32:02 CEST 2016:

   Host:                     amd64-portbld-freebsd9.3 -- freebsd
9.3-RELEASE-p43
   Bacula version:           Bacula 7.4.2 (06 June 2016)
   Source code location:     .
   Install binaries:         /usr/local/sbin
   Install libraries:        /usr/local/lib
   Install config files:     /usr/local/etc/bacula
   Scripts directory:        /usr/local/share/bacula
   Archive directory:        /tmp
   Working directory:        /var/db/bacula
   PID directory:            /var/run
   Subsys directory:         /var/run/subsys
   Man directory:            /usr/local/man
   Data directory:           /usr/local/share
   Plugin directory:         /usr/local/lib
   C Compiler:               cc 4.2.1
   C++ Compiler:             /usr/bin/c++ 4.2.1
   Compiler flags:            -O2 -pipe -fstack-protector -fno-strict-alias=
ing
-x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti
   Linker flags:               -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector
   Libraries:                -lpthread  -lintl
   Statically Linked Tools:  no
   Statically Linked FD:     no
   Statically Linked SD:     no
   Statically Linked DIR:    no
   Statically Linked CONS:   no
   Database backends:        MySQL
   Database port:
   Database name:            bacula
   Database user:            bacula
   Database SSL options:

   Job Output Email:         root@localhost
   Traceback Email:          root@localhost
   SMTP Host Address:        localhost

   Director Port:            9101
   File daemon Port:         9102
   Storage daemon Port:      9103

   Director User:            bacula
   Director Group:           bacula
   Storage Daemon User:      bacula
   Storage DaemonGroup:      operator
   File Daemon User:
   File Daemon Group:

   Large file support:       yes
   Bacula conio support:     no -lreadline -lhistory -ltinfo
   readline support:         yes
   TCP Wrappers support:     yes -lwrap
   TLS support:              yes
   Encryption support:       yes
   ZLIB support:             yes
   LZO support:              yes
   enable-smartalloc:        yes
   enable-lockmgr:           no
   bat support:              no
   client-only:              no
   build-dird:               yes
   build-stored:             yes
   Plugin support:           yes
   AFS support:              no
   ACL support:              yes
   XATTR support:            yes
   systemd support:          no
   Batch insert enabled:     MySQL


=3D=3D=3D>  Building for bacula-server-7.4.2
=3D=3D>Entering directory /usr/ports/sysutils/bacula-server/work/bacula-7.4=
.2/src
=3D=3D>Entering directory
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/scripts
=3D=3D>Entering directory
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/src/lib
Compiling attr.c
Compiling base64.c
Compiling berrno.c
Compiling bsys.c
Compiling binflate.c
Compiling bget_msg.c
Compiling crc32.c
Compiling bnet.c
Compiling bnet_server.c
Compiling bsock.c
Compiling bpipe.c
Compiling bsnprintf.c
Compiling btime.c
Compiling cram-md5.c
Compiling crypto.c
Compiling daemon.c
Compiling edit.c
Compiling fnmatch.c
Compiling guid_to_name.c
Compiling hmac.c
Compiling jcr.c
Compiling lex.c
Compiling alist.c
Compiling dlist.c
Compiling md5.c
Compiling message.c
Compiling mem_pool.c
Compiling openssl.c
Compiling plugins.c
Compiling priv.c
Compiling queue.c
Compiling bregex.c
Compiling runscript.c
Compiling rwlock.c
Compiling scan.c
Compiling sellist.c
Compiling serial.c
Compiling sha1.c
Compiling signal.c
Compiling smartall.c
Compiling rblist.c
Compiling tls.c
Compiling tree.c
Compiling util.c
Compiling var.c
Compiling watchdog.c
Compiling workq.c
Compiling btimers.c
Compiling address_conf.c
Compiling breg.c
Compiling htable.c
Compiling lockmgr.c
Compiling devlock.c
Compiling ini.c
Compiling parse_conf.c
Compiling res.c
Making libbac.la ...
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/libtool --silent --tag=
=3DCXX
--mode=3Dlink /usr/bin/c++   -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector -o libbac.la attr.lo base64.lo berrno.lo bsys.lo binflate=
.lo
bget_msg.lo crc32.lo bnet.lo bnet_server.lo bsock.lo bpipe.lo bsnprintf.lo
btime.lo cram-md5.lo crypto.lo daemon.lo edit.lo fnmatch.lo guid_to_name.lo
hmac.lo jcr.lo lex.lo alist.lo dlist.lo md5.lo message.lo mem_pool.lo
openssl.lo plugins.lo priv.lo queue.lo bregex.lo runscript.lo rwlock.lo sca=
n.lo
sellist.lo serial.lo sha1.lo signal.lo smartall.lo rblist.lo tls.lo tree.lo
util.lo var.lo watchdog.lo workq.lo btimers.lo address_conf.lo breg.lo
htable.lo lockmgr.lo devlock.lo -export-dynamic -rpath /usr/local/lib -rele=
ase
7.4.2 -lwrap  -lz -lssl -lcrypto -lpthread  -lintl
Making libbaccfg.la ...
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/libtool --silent --tag=
=3DCXX
--mode=3Dlink /usr/bin/c++   -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector -o libbaccfg.la ini.lo parse_conf.lo res.lo -export-dynam=
ic
-rpath /usr/local/lib -release 7.4.2 -lssl -lcrypto -lpthread  -lintl
=3D=3D=3D=3D Make of lib is good =3D=3D=3D=3D
=3D=3D>Entering directory
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/src/findlib
Compiling find.c
Compiling match.c
Compiling find_one.c
Compiling attribs.c
Compiling create_file.c
Compiling bfile.c
Compiling drivetype.c
Compiling enable_priv.c
Compiling fstype.c
Compiling mkpath.c
Compiling savecwd.c
Compiling win32filter.c
Making libbacfind.la ...
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/libtool --silent --tag=
=3DCXX
--mode=3Dlink /usr/bin/c++   -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector -o libbacfind.la find.lo match.lo find_one.lo attribs.lo
create_file.lo bfile.lo drivetype.lo enable_priv.lo fstype.lo mkpath.lo
savecwd.lo win32filter.lo -export-dynamic -rpath /usr/local/lib -release 7.=
4.2
=3D=3D=3D=3D Make of findlib is good =3D=3D=3D=3D

=3D=3D>Entering directory
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/src/plugins/fd
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/libtool --silent --tag=
=3DCXX
--mode=3Dcompile /usr/bin/c++   -I/usr/include/readline -I/usr/local/includ=
e -x
c++ -fno-strict-aliasing -fno-exceptions -fno-rtti -O2 -pipe -fstack-protec=
tor
-fno-strict-aliasing -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti
-I../.. -I../../filed -c bpipe-fd.c
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/libtool --silent --tag=
=3DCXX
--mode=3Dcompile /usr/bin/c++   -I/usr/include/readline -I/usr/local/includ=
e -x
c++ -fno-strict-aliasing -fno-exceptions -fno-rtti -O2 -pipe -fstack-protec=
tor
-fno-strict-aliasing -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti
-I../.. -I../../filed -c test-plugin-fd.c
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/libtool --silent --tag=
=3DCXX
--mode=3Dcompile /usr/bin/c++   -I/usr/include/readline -I/usr/local/includ=
e -x
c++ -fno-strict-aliasing -fno-exceptions -fno-rtti -O2 -pipe -fstack-protec=
tor
-fno-strict-aliasing -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti
-I../.. -I../../filed -c test-deltaseq-fd.c
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/libtool --silent --tag=
=3DCXX
--mode=3Dlink /usr/bin/c++ -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector -shared bpipe-fd.lo -o bpipe-fd.la -rpath /usr/local/lib
-module -export-dynamic -avoid-version
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/libtool --silent --tag=
=3DCXX
--mode=3Dlink /usr/bin/c++ -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector -shared test-plugin-fd.lo -o test-plugin-fd.la -rpath
/usr/local/lib -module -export-dynamic -avoid-version
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/libtool --silent --tag=
=3DCXX
--mode=3Dlink /usr/bin/c++ -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector -shared test-deltaseq-fd.lo -o test-deltaseq-fd.la -rpath
/usr/local/lib -module -export-dynamic -avoid-version
=3D=3D>Entering directory
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/src/cats
Compiling bvfs.c
Compiling cats.c
Compiling sql.c
Compiling sql_cmds.c
Compiling sql_create.c
Compiling sql_delete.c
Compiling sql_find.c
Compiling sql_get.c
Compiling sql_list.c
Compiling sql_update.c
Compiling cats_null.c
Compiling mysql.c
Making libbacsql.la ...
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/libtool --silent --tag=
=3DCXX
--mode=3Dlink /usr/bin/c++   -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector -o libbacsql.la bvfs.lo cats.lo sql.lo sql_cmds.lo
sql_create.lo sql_delete.lo sql_find.lo sql_get.lo sql_list.lo sql_update.lo
-export-dynamic -rpath /usr/local/lib -release 7.4.2
Making libbaccats.la ...
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/libtool --silent --tag=
=3DCXX
--mode=3Dlink /usr/bin/c++   -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector -o libbaccats.la cats_null.lo -export-dynamic -rpath
/usr/local/lib -release 7.4.2
Making libbaccats-mysql.la ...
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/libtool --silent --tag=
=3DCXX
--mode=3Dlink /usr/bin/c++   -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector -o libbaccats-mysql.la mysql.lo -export-dynamic -rpath
/usr/local/lib -release 7.4.2  -soname libbaccats-7.4.2.so
-L/usr/local/lib/mysql  -lmysqlclient  -pthread -lm
=3D=3D=3D=3D Make of sqllibs is good =3D=3D=3D=3D
=3D=3D>Entering directory
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/src/dird
Compiling dird.c
Compiling admin.c
Compiling authenticate.c
Compiling autoprune.c
Compiling backup.c
Compiling bsr.c
Compiling catreq.c
Compiling dir_plugins.c
Compiling dird_conf.c
Compiling expand.c
Compiling fd_cmds.c
Compiling getmsg.c
Compiling inc_conf.c
Compiling job.c
Compiling jobq.c
Compiling mac.c
Compiling mac_sql.c
Compiling mountreq.c
Compiling msgchan.c
Compiling next_vol.c
Compiling newvol.c
Compiling recycle.c
Compiling restore.c
Compiling run_conf.c
Compiling scheduler.c
Compiling ua_acl.c
Compiling ua_cmds.c
Compiling ua_dotcmds.c
Compiling ua_query.c
Compiling ua_input.c
Compiling ua_label.c
Compiling ua_output.c
Compiling ua_prune.c
Compiling ua_purge.c
Compiling ua_restore.c
Compiling ua_run.c
ua_run.c: In function 'bool display_job_parameters(UAContext*, JCR*, JOB*,
const char*, char*, const char*, char*)':
ua_run.c:1656: warning: deprecated conversion from string constant to 'char=
*'
ua_run.c:1658: warning: deprecated conversion from string constant to 'char=
*'
Compiling ua_select.c
Compiling ua_server.c
Compiling snapshot.c
Compiling ua_status.c
Compiling ua_tree.c
Compiling ua_update.c
ua_update.c: In function 'void update_vol_recyclepool(UAContext*, char*,
MEDIA_DBR*)':
ua_update.c:365: warning: deprecated conversion from string constant to 'ch=
ar*'
Compiling vbackup.c
Compiling verify.c
Linking bacula-dir ...
/usr/ports/sysutils/bacula-server/work/bacula-7.4.2/libtool --silent --tag=
=3DCXX
--mode=3Dlink /usr/bin/c++  -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-fstack-protector -L../lib -L../cats -L../findlib -o bacula-dir dird.o admi=
n.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 mountre=
q.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 snapsho=
t.o
ua_status.o ua_tree.o ua_update.o vbackup.o verify.o -lz  -lbacfind -lbacsql
-lbaccats -lbaccfg -lbac -lm   -lpthread  -lintl  -lwrap  -lssl -lcrypto
dird.o: In function `check_catalog(cat_op)':
dird.c:(.text+0x2ec): undefined reference to `db_init_database(JCR*, char
const*, char const*, char const*, char const*, char const*, int, char const=
*,
char const*, char const*, char const*, char const*, char const*, bool, bool=
)'
fd_cmds.o: In function `get_level_since_time(JCR*, char*, int)':
fd_cmds.c:(.text+0xa53): undefined reference to
`BDB::bdb_find_last_job_end_time(JCR*, JOB_DBR*, char**, char*)'
job.o: In function `resume_job(JCR*, JOB_DBR*)':
job.c:(.text+0x3e5e): undefined reference to `db_init_database(JCR*, char
const*, char const*, char const*, char const*, char const*, int, char const=
*,
char const*, char const*, char const*, char const*, char const*, bool, bool=
)'
job.o: In function `setup_job(JCR*)':
job.c:(.text+0x4486): undefined reference to `db_init_database(JCR*, char
const*, char const*, char const*, char const*, char const*, int, char const=
*,
char const*, char const*, char const*, char const*, char const*, bool, bool=
)'
ua_cmds.o: In function `open_db(UAContext*)':
ua_cmds.c:(.text+0x1a5): undefined reference to `db_init_database(JCR*, char
const*, char const*, char const*, char const*, char const*, int, char const=
*,
char const*, char const*, char const*, char const*, char const*, bool, bool=
)'
ua_output.o: In function `complete_jcr_for_job(JCR*, JOB*, POOL*)':
ua_output.c:(.text+0x627): undefined reference to `db_init_database(JCR*, c=
har
const*, char const*, char const*, char const*, char const*, int, char const=
*,
char const*, char const*, char const*, char const*, char const*, bool, bool=
)'
*** [bacula-dir] Error code 1
1 error
  =3D=3D=3D=3D=3D=3D Error in /usr/ports/sysutils/bacula-server/work/bacula=
-7.4.2/src/dird
=3D=3D=3D=3D=3D=3D
*** [all] Error code 1
1 error
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure =
to
the maintainer.
*** [do-build] Error code 1

--=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-212853-13>