www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Building DMD on Linux with Windows Domain Logins

reply Kai Meyer <kai unixlords.com> writes:
Funny thing happened today. I tried building DMD from source, and got this:

dmd: libelf.c:171: void OmToHeader(Header*, ObjModule*): Assertion `len 
<= 6' failed.

Digging around, and it appears that my user ID can only be 6 characters 
long. Doh! I happen to be on a RHEL 6 workstation that can authenticate 
users via a Windows Domain Controller (using samba + winbind). My 
smb.conf looks has these two lines:

    idmap uid = 16777216-33554431
    idmap gid = 16777216-33554431

Which is to say "If a uid or gid appears on the system, use winbind to 
resolve to a name".

On my machine, my user looks like this:
[kai.meyer kai-rhel6 BUILD]$ id
uid=16777216(kai.meyer) gid=16777221(domain users) 
groups=16777221(domain 
users),16777223(SENSORED),16777224(SENSORED),16777225(SENSORED),16777226(SENSORED)

That's right. My UID is 8 characters long.

Are we interested in accommodating UID and GID's that are this big?

-Kai Meyer
May 23 2011
parent reply KennyTM~ <kennytm gmail.com> writes:
On May 24, 11 06:37, Kai Meyer wrote:
 Funny thing happened today. I tried building DMD from source, and got this:

 dmd: libelf.c:171: void OmToHeader(Header*, ObjModule*): Assertion `len
 <= 6' failed.

 Digging around, and it appears that my user ID can only be 6 characters
 long. Doh! I happen to be on a RHEL 6 workstation that can authenticate
 users via a Windows Domain Controller (using samba + winbind). My
 smb.conf looks has these two lines:

 idmap uid = 16777216-33554431
 idmap gid = 16777216-33554431

 Which is to say "If a uid or gid appears on the system, use winbind to
 resolve to a name".

 On my machine, my user looks like this:
 [kai.meyer kai-rhel6 BUILD]$ id
 uid=16777216(kai.meyer) gid=16777221(domain users)
 groups=16777221(domain
 users),16777223(SENSORED),16777224(SENSORED),16777225(SENSORED),16777226(SENSORED)


 That's right. My UID is 8 characters long.

 Are we interested in accommodating UID and GID's that are this big?

 -Kai Meyer

An old bug (e.g. http://www.mail-archive.com/dmd-internals puremagic.com/msg00402.html). The 'uid' > 6 digit problem has been worked-around, but the 'gid' hasn't.
May 23 2011
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 5/23/2011 4:10 PM, KennyTM~ wrote:
 On May 24, 11 06:37, Kai Meyer wrote:
 Funny thing happened today. I tried building DMD from source, and got this:

 dmd: libelf.c:171: void OmToHeader(Header*, ObjModule*): Assertion `len
 <= 6' failed.

 Digging around, and it appears that my user ID can only be 6 characters
 long. Doh! I happen to be on a RHEL 6 workstation that can authenticate
 users via a Windows Domain Controller (using samba + winbind). My
 smb.conf looks has these two lines:

 idmap uid = 16777216-33554431
 idmap gid = 16777216-33554431

 Which is to say "If a uid or gid appears on the system, use winbind to
 resolve to a name".

 On my machine, my user looks like this:
 [kai.meyer kai-rhel6 BUILD]$ id
 uid=16777216(kai.meyer) gid=16777221(domain users)
 groups=16777221(domain
 users),16777223(SENSORED),16777224(SENSORED),16777225(SENSORED),16777226(SENSORED)



 That's right. My UID is 8 characters long.

 Are we interested in accommodating UID and GID's that are this big?

 -Kai Meyer

An old bug (e.g. http://www.mail-archive.com/dmd-internals puremagic.com/msg00402.html). The 'uid' > 6 digit problem has been worked-around, but the 'gid' hasn't.

Post to bugzilla!
May 23 2011
parent reply KennyTM~ <kennytm gmail.com> writes:
On May 24, 11 12:55, Walter Bright wrote:
 On 5/23/2011 4:10 PM, KennyTM~ wrote:
 On May 24, 11 06:37, Kai Meyer wrote:
 Funny thing happened today. I tried building DMD from source, and got
 this:

 dmd: libelf.c:171: void OmToHeader(Header*, ObjModule*): Assertion `len
 <= 6' failed.

 Digging around, and it appears that my user ID can only be 6 characters
 long. Doh! I happen to be on a RHEL 6 workstation that can authenticate
 users via a Windows Domain Controller (using samba + winbind). My
 smb.conf looks has these two lines:

 idmap uid = 16777216-33554431
 idmap gid = 16777216-33554431

 Which is to say "If a uid or gid appears on the system, use winbind to
 resolve to a name".

 On my machine, my user looks like this:
 [kai.meyer kai-rhel6 BUILD]$ id
 uid=16777216(kai.meyer) gid=16777221(domain users)
 groups=16777221(domain
 users),16777223(SENSORED),16777224(SENSORED),16777225(SENSORED),16777226(SENSORED)




 That's right. My UID is 8 characters long.

 Are we interested in accommodating UID and GID's that are this big?

 -Kai Meyer

An old bug (e.g. http://www.mail-archive.com/dmd-internals puremagic.com/msg00402.html). The 'uid' > 6 digit problem has been worked-around, but the 'gid' hasn't.

Post to bugzilla!

http://d.puremagic.com/issues/show_bug.cgi?id=6050
May 23 2011
parent Kai Meyer <kai unixlords.com> writes:
On 05/24/2011 12:34 AM, KennyTM~ wrote:
 On May 24, 11 12:55, Walter Bright wrote:
 On 5/23/2011 4:10 PM, KennyTM~ wrote:
 On May 24, 11 06:37, Kai Meyer wrote:
 Funny thing happened today. I tried building DMD from source, and got
 this:

 dmd: libelf.c:171: void OmToHeader(Header*, ObjModule*): Assertion `len
 <= 6' failed.

 Digging around, and it appears that my user ID can only be 6 characters
 long. Doh! I happen to be on a RHEL 6 workstation that can authenticate
 users via a Windows Domain Controller (using samba + winbind). My
 smb.conf looks has these two lines:

 idmap uid = 16777216-33554431
 idmap gid = 16777216-33554431

 Which is to say "If a uid or gid appears on the system, use winbind to
 resolve to a name".

 On my machine, my user looks like this:
 [kai.meyer kai-rhel6 BUILD]$ id
 uid=16777216(kai.meyer) gid=16777221(domain users)
 groups=16777221(domain
 users),16777223(SENSORED),16777224(SENSORED),16777225(SENSORED),16777226(SENSORED)





 That's right. My UID is 8 characters long.

 Are we interested in accommodating UID and GID's that are this big?

 -Kai Meyer

An old bug (e.g. http://www.mail-archive.com/dmd-internals puremagic.com/msg00402.html). The 'uid' > 6 digit problem has been worked-around, but the 'gid' hasn't.

Post to bugzilla!

http://d.puremagic.com/issues/show_bug.cgi?id=6050

On the bright side, the rpm builds on RHEL6 with no problems if I build it with a UID/GID of 500 :) -Kai Meyer
May 24 2011