Bug 193526 - net/samba41: compile error: error: use of undeclared identifier
Summary: net/samba41: compile error: error: use of undeclared identifier
Status: Closed Not Enough Information
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Timur I. Bakeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-10 16:12 UTC by O. Hartmann
Modified: 2015-02-24 23:51 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2014-09-10 16:12:35 UTC
On FreeBSD 11.0-CURRENT,

FreeBSD 11.0-CURRENT #3 r271366: Wed Sep 10 11:05:11 CEST 2014 amd64

port net/samba41 fails to build/install with the fowllowing error message:

../source4/torture/winbind/winbind.c:110:17: error: use of undeclared identifier 'WBC_AUTH_USER_LEVEL_PAC'
        params.level = WBC_AUTH_USER_LEVEL_PAC;
                       ^
../source4/torture/winbind/winbind.c:111:18: error: no member named 'pac' in 'union wbcAuthUserParams::<anonymous at /usr/local/include/wbclient.h:215:2>'
        params.password.pac.data = pac.data;
        ~~~~~~~~~~~~~~~ ^
../source4/torture/winbind/winbind.c:112:18: error: no member named 'pac' in 'union wbcAuthUserParams::<anonymous at /usr/local/include/wbclient.h:215:2>'
        params.password.pac.length = pac.length;
        ~~~~~~~~~~~~~~~ ^
3 errors generated.
Waf: Leaving directory `/usr/ports/net/samba41/work/samba-4.1.11/bin'
Build failed:  -> task failed (err #1): 
        {task: cc winbind.c -> winbind_1.o}
[: xTry: unexpected operator
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/net/samba41
*** Error code 1

Stop.
make: stopped in /usr/ports/net/samba41

===>>> make build failed for net/samba41
===>>> Aborting update
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2014-09-11 15:32:35 UTC
over to maintainer
Comment 2 Timur I. Bakeyev freebsd_committer freebsd_triage 2014-10-05 22:01:48 UTC
(In reply to ohartman from comment #0)
> On FreeBSD 11.0-CURRENT,
> 
> FreeBSD 11.0-CURRENT #3 r271366: Wed Sep 10 11:05:11 CEST 2014 amd64
> 
> port net/samba41 fails to build/install with the fowllowing error message:

> ../source4/torture/winbind/winbind.c:111:18: error: no member named 'pac' in
> 'union wbcAuthUserParams::<anonymous at /usr/local/include/wbclient.h:215:2>'
>         params.password.pac.data = pac.data;

Looks like you compile samba4* while older version is installed and it again prefers LOCALBASE over newer local includes.

Can you provide content of your /etc/make.conf and snippet of what flags were used to compile the port?
Comment 3 Timur I. Bakeyev freebsd_committer freebsd_triage 2015-02-24 23:51:41 UTC
No reply and a new bug opened with the same error.