broken strndup on AIX 5.1

Doug VanLeuven roamdad at sonic.net
Sun Aug 22 17:04:56 GMT 2004


Let's see:
broken AIX 4.3.3 strnlen as noted at gnu.org web based documentation of 
autoconf in section "5.5.1 Portability of C Functions"
Better?
Please try the patch on an AIX system to see the break.  I can duplicte 
the broken strnlen behavior easy enough, but not the broken strndup.  
However, recompiling and using the builtin functions results in AIX 
passing the smbtorture tests out of the box.

Simo Sorce wrote:

>So strndup and strnlen are broken in AIX 5.5.1 ?
>
>On Sun, 2004-08-22 at 15:51, Doug VanLeuven wrote:
>  
>
>>Also, AIX 5.1 still has a broken strnlen as noted at gnu.org under 
>>autoconf 5.5.1 Portability of C Functons.
>>I need some help with configure.in.
>>
>>Doug VanLeuven wrote:
>>
>>    
>>
>>>Hi,
>>>AIX 5.1.0.50
>>>samba 3_0 svn 1824
>>>strndup in libc.a
>>>
>>>I could pass all the smbtorture tests except MANGLE.
>>>This patch on an AIX illustrates the problem if smb.conf uses hash2 
>>>method and allows MANGLE to succeed.
>>>Neither are the build_farm AIX systems passing this test.
>>>
>>>Would someone point me towards the proper way to solve this in 
>>>configure?  Try and test for broken strndup behavior or just use the 
>>>builtin for AIX 5L?
>>>      
>>>


More information about the samba-technical mailing list