[pcre-dev] [Bug 1278] pcre 8.31 fails to link with Sun Studi…

Page principale
Supprimer ce message
Auteur: Dennis Clarke
Date:  
À: pcre-dev
Sujet: [pcre-dev] [Bug 1278] pcre 8.31 fails to link with Sun Studio 12 on Solaris 10 Update 10
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1278




--- Comment #2 from Dennis Clarke <dclarke@???> 2012-08-12 09:49:38 ---

A small annoying downside of the linkage issues here is that we get a resultant
RUNPATH that is quite ugly in libpcrecpp.so.0.0.0 :

$ elfdump -d lib/libpcrecpp.so.0.0.0

Dynamic Section:  .dynamic
     index  tag                value
       [0]  NEEDED            0x2cd1              libpcre.so.1
       [1]  NEEDED            0x2c65              libc.so.1
       [2]  NEEDED            0x2c88              libCstd.so.1
       [3]  NEEDED            0x2cbb              libCrun.so.1
       [4]  INIT              0x11938             
       [5]  FINI              0x11a48             
       [6]  SONAME            0x2cde              libpcrecpp.so.0
       [7]  RUNPATH           0x2cee             
/usr/local/lib:/usr/local/lib/$ISALIST:/usr/local/lib:/opt/SUNWspro/lib/rw7/v9:/opt/SUNWspro/lib/sparcvis2/64:/opt/SUNWspro/lib/v9:/usr/ccs/lib/sparcv9:/lib/sparcv9:/usr/lib/sparcv9
       [8]  RPATH             0x2cee             
/usr/local/lib:/usr/local/lib/$ISALIST:/usr/local/lib:/opt/SUNWspro/lib/rw7/v9:/opt/SUNWspro/lib/sparcvis2/64:/opt/SUNWspro/lib/v9:/usr/ccs/lib/sparcv9:/lib/sparcv9:/usr/lib/sparcv9
       [9]  HASH              0x368               
      [10]  STRTAB            0x2100              
      [11]  STRSZ             0x2fa4              
      [12]  SYMTAB            0xae0               
      [13]  SYMENT            0x18                
      [14]  CHECKSUM          0xecef              
      [15]  VERNEED           0x50a8              
      [16]  VERNEEDNUM        0x3                 
      [17]  RELACOUNT         0x25                
      [18]  PLTRELSZ          0xba0               
      [19]  PLTREL            0x7                 
      [20]  JMPREL            0x5888              
      [21]  RELA              0x5330              
      [22]  RELASZ            0x10f8              
      [23]  RELAENT           0x18                
      [24]  FLAGS             0                   0
      [25]  FLAGS_1           0                   0
      [26]  SUNW_STRPAD       0x200               
      [27]  SUNW_LDMACH       0x2b                EM_SPARCV9
      [28]  PLTGOT            0x112a00            
   [29-39]  NULL              0                   



Thta isn't really required at all :

$ ldd lib/libpcrecpp.so.0.0.0
        libpcre.so.1 =>  /usr/local/lib/libpcre.so.1
        libc.so.1 =>     /lib/sparcv9/libc.so.1
        libCstd.so.1 =>  /usr/lib/sparcv9/libCstd.so.1
        libCrun.so.1 =>  /usr/lib/sparcv9/libCrun.so.1
        libm.so.2 =>     /lib/64/libm.so.2
        /platform/SUNW,T5240/lib/sparcv9/libc_psr.so.1



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email