Bug 204984 - net/samba42: UTMP is enabled by default port option, but disabled by samba build tool (waf)
Summary: net/samba42: UTMP is enabled by default port option, but disabled by samba bu...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Timur I. Bakeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-03 00:48 UTC by SASAKI Katuhiro
Modified: 2018-07-31 03:26 UTC (History)
2 users (show)

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


Attachments
log file of "make configure" for net/samba42 (670.09 KB, text/plain)
2015-12-03 00:48 UTC, SASAKI Katuhiro
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description SASAKI Katuhiro 2015-12-03 00:48:56 UTC
Created attachment 163792 [details]
log file of "make configure" for net/samba42

waf seems to fail with checking FreeBSD utmpx as below.
---
|% sudo make configure
|===>  License GPLv3 accepted by the user
|===>  Found saved configuration for samba41-4.1.21
|===>   samba41-4.1.21 depends on file: /usr/local/sbin/pkg - found
|...
|Checking for header utmpx.h                              : 09:14:07 runner cc -pipe -fno-omit-frame-pointer -DLIBICONV_PLUG -fno-color-diagnostics -g -fstack-protector -DLDAP_DEPRECATED -fno-strict-aliasing -MD -DLIBICONV_PLUG -I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../test.c -c -o default/test_1.o
|yes
|...
|Checking size of ((struct utmp |*)NULL)->ut_line                                                 : 09:14:43 |runner cc -pipe -fno-omit-frame-pointer -DLIBICONV_PLUG -fno-color-diagnostics -g -fstack-protector -DLDAP_DEPRECATED -fno-strict-aliasing -MD -DLIBICONV_PLUG -Idefault -I.. -Idefault -I.. -I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../test.c -c -o default/test_1.o
|not found
|--with-utmp but utmp support not sufficient
|...
---
| % cat /portbuild/usr/ports/net/samba42/work/samba-4.2.5/bina/config.log
|...
|Checking for getutmpx
|==>
|...
|[1/1] Compiling test.c
|../test.c:968:59: error: no member named 'ut_syslen' in 'struct utmpx'
| int main(void) { struct utmpx s; void *_x; _x=(void *)&s.ut_syslen; return 0; }
|                                                        ~ ^
|1 error generated.
|...
Comment 1 Walter Schwarzenfeld 2018-03-14 00:32:17 UTC
net/samba42|net/samba44|2017-06-07|Has expired: not supported upstream https://wiki.samba.org/index.php/Samba_Release_Planning
Comment 2 Timur I. Bakeyev freebsd_committer freebsd_triage 2018-03-14 00:42:28 UTC
Please, don't close Samba tickets referring timeline. That has no use in regards the errors themselves.
Comment 3 Timur I. Bakeyev freebsd_committer freebsd_triage 2018-07-31 03:26:39 UTC
Ok, at least for Samba 4.8 this is fixed in the port. Need to make the fix ready for upstream.

There isn't much use from that functionality yet anyhow, as w/who filter out records that don't have real /dev/tty associated with the entry. last and getent work though.