Bug 226386

Summary: sysutils/bareos-client: Compiler error: variable has incomplete type 'union semun'
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed Overcome By Events    
Severity: Affects Many People CC: w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (acm)
Version: Latest   
Hardware: Any   
OS: Any   

Description O. Hartmann 2018-03-06 05:34:07 UTC
On a recent CURRENT poudriere system, the port sysutils/bareos-client fails to build with the error shown below.

The environment of the building host is:

Makefile ident:      $FreeBSD: head/sysutils/bareos-client/Makefile 445197 2017-07-07 02:19:21Z acm $
Poudriere version: 3.2.4
Host OSVERSION: 1200060
Jail OSVERSION: 1200060
Job Id: 01


The box itself hosting poudriere is running CURRENT of the same version/revision as the jail performing the task.

[...]
Making libbareosfind.la ...
/wrkdirs/usr/ports/sysutils/bareos-client/work/bareos-Release-16.2.7/libtool --silent --tag=CXX --mode=link /usr/bin/c++   -L/usr/local/lib -L/usr/local/lib -fstack-protector -L../lib -o libbareosfind.la acl.lo attribs.lo bfile.lo create_file.lo drivetype.lo enable_priv.lo find_one.lo find.lo fstype.lo hardlink.lo match.lo mkpath.lo savecwd.lo shadowing.lo xattr.lo -export-dynamic -rpath /usr/local/lib -release 16.2.7    -lbareos
--- all ---
==== Make of findlib is good ====
==>Entering directory /wrkdirs/usr/ports/sysutils/bareos-client/work/bareos-Release-16.2.7/src/lmdb
--- mdb.lo ---
--- midl.lo ---
Compiling mdb.c
Compiling midl.c
--- mdb.lo ---
mdb.c:4832:14: error: variable has incomplete type 'union semun'
        union semun semu;
                    ^
mdb.c:4832:8: note: forward declaration of 'union semun'
        union semun semu;
              ^
1 error generated.
*** [mdb.lo] Error code 1

make[2]: stopped in /wrkdirs/usr/ports/sysutils/bareos-client/work/bareos-Release-16.2.7/src/lmdb
1 error

make[2]: stopped in /wrkdirs/usr/ports/sysutils/bareos-client/work/bareos-Release-16.2.7/src/lmdb
  ====== Error in /wrkdirs/usr/ports/sysutils/bareos-client/work/bareos-Release-16.2.7/src/lmdb ======
Comment 1 Walter Schwarzenfeld 2018-03-06 08:01:33 UTC
Needed update:
https://github.com/bareos/bareos
Comment 2 Walter Schwarzenfeld 2018-06-18 22:58:11 UTC
*** Bug 227253 has been marked as a duplicate of this bug. ***
Comment 3 Walter Schwarzenfeld 2018-06-18 23:05:17 UTC
We have version 17.2.5_1. Does the problem still exist?
Comment 4 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2018-11-20 17:45:12 UTC
17.x compiles fine on 12-RC1