Bug 5595 - Samba v3.2.0 (client/smbspool.c) fails to compile under AIX v6.1 with XLC v9.0.0.4 compiler
Samba v3.2.0 (client/smbspool.c) fails to compile under AIX v6.1 with XLC v9....
Status: RESOLVED WORKSFORME
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.30
PPC AIX
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-07 16:38 UTC by Frank Kraemer
Modified: 2011-11-23 22:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Kraemer 2008-07-07 16:38:55 UTC
I'm trying to compile/install a test version of Samba v3.2.0  on the latest AIX v6.1 release using the XLC v9 compiler. I disabled optimization and also used other compiler profiles like gxlc (which tries mimics gcc)

thanks for your help -frank-

IBM XL C Enterprise Edition for AIX, Version 9.0.0.4 --- client/smbspool.c 07/07/08 23:27:34

330 |         static const NTSTATUS auth_errors[] =
      331 |         {
      332 |                 NT_STATUS_ACCESS_DENIED, NT_STATUS_ACCESS_VIOLATION,
      332 +                 ((NTSTATUS) { 0xC0000000 | 0x0022 }), ((NTSTATUS) { 0xC0000000 | 0x0005 }),
"client/smbspool.c", line 332.17: 1506-221 (S) Initializer must be a valid constant expression.
"client/smbspool.c", line 332.42: 1506-221 (S) Initializer must be a valid constant expression.
      333 |                 NT_STATUS_SHARING_VIOLATION, NT_STATUS_PRIVILEGE_NOT_HELD,
      333 +                 ((NTSTATUS) { 0xC0000000 | 0x0043 }), ((NTSTATUS) { 0xC0000000 | 0x0061 }),
"client/smbspool.c", line 333.17: 1506-221 (S) Initializer must be a valid constant expression.
"client/smbspool.c", line 333.46: 1506-221 (S) Initializer must be a valid constant expression.
      334 |                 NT_STATUS_INVALID_ACCOUNT_NAME, NT_STATUS_NO_SUCH_USER,
      334 +                 ((NTSTATUS) { 0xC0000000 | 0x0062 }), ((NTSTATUS) { 0xC0000000 | 0x0064 }),
"client/smbspool.c", line 334.17: 1506-221 (S) Initializer must be a valid constant expression.
"client/smbspool.c", line 334.49: 1506-221 (S) Initializer must be a valid constant expression.
      335 |                 NT_STATUS_WRONG_PASSWORD, NT_STATUS_LOGON_FAILURE,
      335 +                 ((NTSTATUS) { 0xC0000000 | 0x006a }), ((NTSTATUS) { 0xC0000000 | 0x006d }),
"client/smbspool.c", line 335.17: 1506-221 (S) Initializer must be a valid constant expression.
"client/smbspool.c", line 335.43: 1506-221 (S) Initializer must be a valid constant expression.
      336 |                 NT_STATUS_ACCOUNT_RESTRICTION, NT_STATUS_INVALID_LOGON_HOURS,
      336 +                 ((NTSTATUS) { 0xC0000000 | 0x006e }), ((NTSTATUS) { 0xC0000000 | 0x006f }),
"client/smbspool.c", line 336.17: 1506-221 (S) Initializer must be a valid constant expression.
"client/smbspool.c", line 336.48: 1506-221 (S) Initializer must be a valid constant expression.
      337 |                 NT_STATUS_PASSWORD_EXPIRED, NT_STATUS_ACCOUNT_DISABLED
      337 +                 ((NTSTATUS) { 0xC0000000 | 0x0071 }), ((NTSTATUS) { 0xC0000000 | 0x0072 })
"client/smbspool.c", line 337.17: 1506-221 (S) Initializer must be a valid constant expression.
"client/smbspool.c", line 337.45: 1506-221 (S) Initializer must be a valid constant expression.
      338 |         };
Comment 1 Björn Jacke 2011-11-23 22:32:55 UTC
haven't seen this compile error in any AIX build over the last years. Please reopen if you stull see this with the latest 3.6 release.