[bug-notifications] [pigz 0003879]: fails to multithread on Solaris 8

Mantis Bug Tracker noreply at opencsw.org
Fri Sep 4 14:40:06 CEST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://www.opencsw.org/bugtrack/view.php?id=3879 
====================================================================== 
Reported By:                james
Assigned To:                dam
====================================================================== 
Project:                    pigz
Issue ID:                   3879
Category:                   regular use
Reproducibility:            sometimes
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2009-09-04 12:52 CEST
Last Modified:              2009-09-04 14:40 CEST
====================================================================== 
Summary:                    fails to multithread on Solaris 8
Description: 
pigs (spelt pigz) fails to multithread on Solaris 8.

Workaround: use /usr/lib/lwp.

Suggest changing RPATH to use /usr/lib/lwp
LD_OPTIONS=-R/usr/lib/lwp


It's possible a patch will fix also, please find it, check it's still
public and put in checkinstall if you think the patch is the solution.

====================================================================== 

---------------------------------------------------------------------- 
 (0006665) dam (manager) - 2009-09-04 14:40
 http://www.opencsw.org/bugtrack/view.php?id=3879#c6665 
---------------------------------------------------------------------- 
Neither your suggested solution nor the one officially published from Sun
works:
  <http://developers.sun.com/solaris/articles/alt_thread_lib.html>

cd work/build-isa-i386/pigz-2.1.5 && /opt/studio/SOS11/SUNWspro/bin/cc
-xO3 -xarch=386 -mt -I/opt/csw/include -c yarn.c
"yarn.c", line 20: warning: macro redefined: _REENTRANT
cd work/build-isa-i386/pigz-2.1.5 && /opt/studio/SOS11/SUNWspro/bin/cc
-xO3 -xarch=386 -mt -I/opt/csw/include -c pigz.c
cd work/build-isa-i386/pigz-2.1.5 && /opt/studio/SOS11/SUNWspro/bin/cc
-xarch=386 -L/opt/csw/lib -o pigz yarn.o pigz.o -lpthread -lz
-R/usr/lib/lwp
gmake[1]: Leaving directory `/home/dam/mgar/pkg/pigz/trunk'
        [build] complete for pigz.
build8x% nslookup ns02.netofficeservices.net
*** Can't find server name for address 192.168.1.6: Non-existent
host/domain
*** Default servers are not available
build8x% 
build8x% cd work/build-isa-i386/pigz-2.1.5/
build8x% ldd pigz
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        libz.so =>       /usr/lib/libz.so
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libthread.so.1 =>        /usr/lib/libthread.so.1

build8x% dump -Lv pigz

pigz:

  **** DYNAMIC SECTION INFORMATION ****
.dynamic:
[INDEX] Tag         Value
[1]     NEEDED          libpthread.so.1
[2]     NEEDED          libz.so
[3]     NEEDED          libc.so.1
[4]     INIT            0x8059410
[5]     FINI            0x805942c
[6]     RUNPATH         /usr/lib/lwp
[7]     RPATH           /usr/lib/lwp
[8]     HASH            0x8050118
[9]     STRTAB          0x8050c40
[10]    STRSZ           0x4d6
[11]    SYMTAB          0x80504f0
[12]    SYMENT          0x10
[13]    CHECKSUM        0xbc05
[14]    VERNEED         0x8051118
[15]    VERNEEDNUM      0x2
[16]    PLTSZ           0x270
[17]    PLTREL          0x11
[18]    JMPREL          0x8051178
[19]    REL             0x8051168
[20]    RELSZ           0x280
[21]    RELENT          0x8
[22]    DEBUG           0
[23]    FEATURE_1       PARINIT 
[24]    SUNW_CAP        0x8050108
[25]    FLAGS           0
[26]    FLAGS_1         0
[27]    PLTGOT          0x8069a80

build8x% ldd /usr/lib/libpthread.so
        libthread.so.1 =>        /usr/lib/libthread.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libc.so.1 =>     /usr/lib/libc.so.1

LD_LIBRARY_PATH works but RUNPATH does not as the lib is pulled in from
libpthread.so which does not have this runpath set. Any ideas?




More information about the bug-notifications mailing list