Bug 12017 - utmp.ut_line is 64 bytes long on AIX -- samba_autoconf.py:CHECK_SIZEOF should handle it
utmp.ut_line is 64 bytes long on AIX -- samba_autoconf.py:CHECK_SIZEOF should...
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build
4.4.5
PPC AIX
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-07-11 09:54 UTC by Lorinczy Zsigmond
Modified: 2016-07-11 10:32 UTC (History)
2 users (show)

See Also:


Attachments
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

Hi,

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