Bug 12017 - utmp.ut_line is 64 bytes long on AIX -- samba_autoconf.py:CHECK_SIZEOF should handle it
Summary: utmp.ut_line is 64 bytes long on AIX -- samba_autoconf.py:CHECK_SIZEOF should...
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.4.5
Hardware: PPC AIX
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
Depends on:
Reported: 2016-07-11 09:54 UTC by Lorinczy Zsigmond
Modified: 2019-01-03 15:04 UTC (History)
2 users (show)

See Also:

patch to buildtools/wafsamba/samba_autoconf.py (116 bytes, patch)
2016-07-11 09:54 UTC, Lorinczy Zsigmond
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lorinczy Zsigmond 2016-07-11 09:54:05 UTC
Created attachment 12268 [details]
patch to buildtools/wafsamba/samba_autoconf.py


I have just compiled samba-4.4.5 on an AIX 6.1 computer and found that it has a problem detecting the size of 'utmp.ut_line' (struct 'utmp' is defined in header '/usr/include/utmp.h').

This field is 32 bytes long in linux, but 64 bytes long in AIX.

A generic rutin called 'CHECK_SIZEOF' (in 'buildtools/wafsamba/samba_autoconf.py') is called to find out this size; the problem is it has a fixed list of possible values: 1, 2, 4, 8, 16, 32

So I'd like to ask you to add value 64 to this list, according to the attached patch.

Yours: Lorinczy Zsigmond
Comment 1 Björn Jacke 2019-01-03 15:04:26 UTC
fixed in master with f353c930969f08a5aabe6a7c409f98dbcf90fe9e