mkdtemp only on Solaris 10 Sparc

Jan Holzhueter jh at opencsw.org
Thu Mar 24 15:02:05 CET 2016


Hi,

Am 24.03.16 um 14:36 schrieb Dagobert Michelsen:
> Hi folks,
> 
> I just a funny thing: the new libc-function mkdtemp() is only available on Solaris 10 Sparc,
> although the release between Sparc and i386 and identical:
> 
>> dam at unstable10s [unstable10s]:/home/dam > more /etc/release
>>                    Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
>>   Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
>>                             Assembled 23 August 2011
>> dam at unstable10s [unstable10s]:/home/dam > nm -D /usr/lib/libc.so | grep mkdtemp
>> [2326]  |    364852|       168|FUNC |GLOB |0    |9      |mkdtemp
>> dam at unstable10s [unstable10s]:/home/dam > pvs -d /usr/lib/libc.so
>>         libc.so.1;
>>         SUNW_1.23;
>>         SUNW_1.22.7;
>>         SUNW_1.22.6;
>>         SUNW_1.22.5;
>>         SUNW_1.22.4;
>>         SUNW_1.22.3;
>>         SUNW_1.22.2;
>>         SUNW_1.22.1;
>>         SUNW_1.22;
>>         SUNW_1.21.3;
>>         SUNW_1.21.2;
>>         SUNW_1.21.1;
>>         SUNW_1.21;
>>         SUNW_1.20.4;
>>         SUNW_1.20.1;
>>         SUNW_1.20;
>>         SUNW_1.19;
>>         SUNW_1.18.1;
>>         SUNW_1.18;
>>         SUNW_1.17;
>>         SUNW_1.16;
>>         SUNW_1.15;
>>         SUNW_1.14;
>>         SUNW_1.13;
>>         SUNW_1.12;
>>         SUNW_1.11;
>>         SUNW_1.10;
>>         SUNW_1.9;
>>         SUNW_1.8;
>>         SUNW_1.7;
>>         SUNW_1.6;
>>         SUNW_1.5;
>>         SUNW_1.4;
>>         SUNW_1.3;
>>         SUNW_1.2;
>>         SUNW_1.1;
>>         SUNW_0.9;
>>         SUNW_0.8;
>>         SUNW_0.7;
>>         SISCD_2.3;
>>         SYSVABI_1.3;
>>         SUNWprivate_1.1;
> 
> 
> 
>> dam at unstable10x [global]:/home/dam > more /etc/release
>>                     Oracle Solaris 10 8/11 s10x_u10wos_17b X86
>>   Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
>>                             Assembled 23 August 2011
>> dam at unstable10x [global]:/home/dam > nm -D /usr/lib/libc.so | grep mkdtemp
>> [1]    20154 done       nm -D /usr/lib/libc.so |
>>        20155 exit 1     grep mkdtemp
>> dam at unstable10x [global]:/home/dam > pvs -d /usr/lib/libc.so
>>         libc.so.1;
>>         SUNW_1.23;
>>         SUNW_1.22.7;
>>         SUNW_1.22.6;
>>         SUNW_1.22.5;
>>         SUNW_1.22.4;
>>         SUNW_1.22.3;
>>         SUNW_1.22.2;
>>         SUNW_1.22.1;
>>         SUNW_1.22;
>>         SUNW_1.21.3;
>>         SUNW_1.21.2;
>>         SUNW_1.21.1;
>>         SUNW_1.21;
>>         SUNW_1.20.4;
>>         SUNW_1.20.1;
>>         SUNW_1.20;
>>         SUNW_1.19;
>>         SUNW_1.18.1;
>>         SUNW_1.18;
>>         SUNW_1.17;
>>         SUNW_1.16;
>>         SUNW_1.15;
>>         SUNW_1.14;
>>         SUNW_1.13;
>>         SUNW_1.12;
>>         SUNW_1.11;
>>         SUNW_1.10;
>>         SUNW_1.9;
>>         SUNW_1.8;
>>         SUNW_1.7;
>>         SUNW_1.6;
>>         SUNW_1.5;
>>         SUNW_1.4;
>>         SUNW_1.3;
>>         SUNW_1.2;
>>         SUNW_1.1;
>>         SUNW_0.9;
>>         SUNW_0.8;
>>         SUNW_0.7;
>>         SYSVABI_1.3;
>>         SUNWprivate_1.1;
> 
> 
> Any idea on why this is?



first of all ignore /etc/release. (you should know that :) )
only kernel is what counts.

jh at login [login]:/home/jh > ssh unstable10s uname -a
SunOS unstable10s 5.10 Generic_150400-17 sun4v sparc
SUNW,SPARC-Enterprise-T5220
jh at login [login]:/home/jh > ssh unstable10x uname -a
SunOS unstable10x 5.10 Generic_147441-19 i86pc i386 i86pc


second:

h at login [login]:/home/jh > ssh unstable10s "pvs -s /usr/lib/libc.so |head"
        libc.so.1:
                _PROCEDURE_LINKAGE_TABLE_;
                _GLOBAL_OFFSET_TABLE_;
                _DYNAMIC;
                _end;
                _etext;
                _edata;
        SUNW_1.23:
                mkdtemp;
        SUNW_1.22.7:
jh at login [login]:/home/jh > ssh unstable10x "pvs -s /usr/lib/libc.so |head"
        libc.so.1:
                _edata;
                _PROCEDURE_LINKAGE_TABLE_;
                _etext;
                _GLOBAL_OFFSET_TABLE_;
                _end;
                _DYNAMIC;
        SUNW_1.23:
        SUNW_1.22.7:
                asprintf;


they backported mkdtemp to Solaris 10 Update 11. I think maybe even
somtime via a patch.
And also put in in 1.23 which I still think will mess things up
sometime. Anyway avoid mkdtemp.
Our default map files should to that.

Greetings
Jan






More information about the maintainers mailing list