ルギア君の戯言

雑多な記事。

GhostScript

いまだに libjpeg.so.62 にリンクされているんですがそんな現象は他では起きてないですか?


何回かリビルドしてるんですが・・・

[lugia@arpa-castle ghostscript]$ rpm -qi ghostscript
Name        : ghostscript                  Relocations: (not relocatable)
Version     : 8.64                              Vendor: (none)           
Release     : 6m.mo6                        Build Date: 2009年11月12日 06時16分58秒
Install Date: 2009年11月12日 06時18分36秒      Build Host: arpa-castle.fletsphone
Group       : Applications/Publishing       Source RPM: ghostscript-8.64-6m.mo6.nosrc.rpm
Size        : 20100692                         License: GPLv2
Signature   : (none)
URL         : http://www.ghostscript.com/
Summary     : A PostScript interpreter and renderer
Description :
Ghostscript is a set of software that provides a PostScript
interpreter, a set of C procedures (the Ghostscript library, which
implements the graphics capabilities in the PostScript language) and
an interpreter for Portable Document Format (PDF) files. Ghostscript
translates PostScript code into many common, bitmapped formats, like
those understood by your printer or screen. Ghostscript is normally
used to display PostScript files and to print PostScript files to
non-PostScript printers.

If you need to display PostScript files or print them to
non-PostScript printers, you should install ghostscript. If you
install ghostscript, you also need to install the ghostscript-fonts
package.
[lugia@arpa-castle ghostscript]$ rpm -q --requires ghostscript   
/bin/sh                                                          
/sbin/ldconfig                                                   
/sbin/ldconfig                                                   
config(ghostscript) = 8.64-6m.mo6                                
ghostscript-fonts                                                
ipa-gothic-fonts                                                 
ipa-mincho-fonts                                                 
libICE.so.6                                                      
libSM.so.6                                                       
libX11.so.6                                                      
libXext.so.6                                                     
libXt.so.6                                                       
libc.so.6                                                        
libc.so.6(GLIBC_2.0)                                             
libc.so.6(GLIBC_2.1)                                             
libc.so.6(GLIBC_2.1.3)                                           
libc.so.6(GLIBC_2.2)                                             
libc.so.6(GLIBC_2.3)                                             
libcairo.so.2                                                    
libcom_err.so.2                                                  
libcrypt.so.1                                                    
libcups.so.2                                                     
libcupsimage.so.2                                                
libdl.so.2                                                       
libdl.so.2(GLIBC_2.0)                                            
libdl.so.2(GLIBC_2.1)                                            
libfontconfig.so.1
libgs.so.8
libgssapi_krb5.so.2
libjpeg.so.7
libjpeg.so.7(LIBJPEG_7.0)
libk5crypto.so.3
libkrb5.so.3
libm.so.6
libm.so.6(GLIBC_2.0)
libpaper.so.1
libpng12.so.0
libpng12.so.0(PNG12_0)
libpthread.so.0
libpthread.so.0(GLIBC_2.0)
libpthread.so.0(GLIBC_2.1)
libpthread.so.0(GLIBC_2.3.2)
libstdc++.so.6
libtiff.so.3
libz.so.1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(VersionedDependencies) <= 3.0.3-1
rtld(GNU_HASH)
urw-fonts >= 1:2.4-1m

requires のほうはちゃんと libjpeg.so.7 になってるけど、

[lugia@arpa-castle ghostscript]$ ldd /usr/bin/gs
        linux-gate.so.1 =>  (0x00c9c000)        
        /usr/lib/libltdl.so.7 (0x02033000)      
        libgs.so.8 => /usr/lib/libgs.so.8 (0x00c9d000)
        libc.so.6 => /lib/libc.so.6 (0x00759000)      
        libdl.so.2 => /lib/libdl.so.2 (0x008fa000)    
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0x006a8000)
        libcupsimage.so.2 => /usr/lib/libcupsimage.so.2 (0x00110000)
        libcups.so.2 => /usr/lib/libcups.so.2 (0x00128000)          
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0x00186000)          
        libjpeg.so.7 => /usr/lib/libjpeg.so.7 (0x05dd4000)          
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x0039d000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00305000)              
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x002d5000)      
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x002d0000)            
        libpthread.so.0 => /lib/libpthread.so.0 (0x00916000)            
        libm.so.6 => /lib/libm.so.6 (0x008cf000)                        
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x071c3000)                
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x0015e000)            
        libz.so.1 => /lib/libz.so.1 (0x00901000)                        
        libpaper.so.1 => /usr/lib/libpaper.so.1 (0x00a77000)            
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00aa2000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x001e1000)
        /lib/ld-linux.so.2 (0x00730000)
        libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0x0062b000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00210000)
        libglitz.so.1 => /usr/lib/libglitz.so.1 (0x062d4000)
        libxcb-render-util.so.0 => /usr/lib/libxcb-render-util.so.0 (0x0061d000)
        libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x00622000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00937000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00287000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00951000)
        libjpeg.so.62 => not found
        libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x07c93000)
        libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x002fa000)
        libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x00755000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x0028f000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00a93000)
        libexpat.so.1 => /lib/libexpat.so.1 (0x002a6000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00932000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00a70000)
        libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x02090000)
        libgcrypt.so.11 => /lib/libgcrypt.so.11 (0x07f4a000)
        libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x07dee000)
        libselinux.so.1 => /lib/libselinux.so.1 (0x00c69000)

こっちが libjpeg.so.62 のままになってしまっているので起動しない・・・
シンボリックリンクを張っておけば gs は動くものの他に影響がでる・・・。


なんか良く見ると libjpeg.so.7 もあるな・・・。


ちなみに

[lugia@arpa-castle ~]$ cat a.c
int main() { }
[lugia@arpa-castle ~]$ gcc a.c -ljpeg
[lugia@arpa-castle ~]$ ldd a.out
        linux-gate.so.1 =>  (0x00eed000)
        /usr/lib/libltdl.so.7 (0x02033000)
        libjpeg.so.7 => /usr/lib/libjpeg.so.7 (0x05dd4000)
        libc.so.6 => /lib/libc.so.6 (0x00759000)
        libdl.so.2 => /lib/libdl.so.2 (0x008fa000)
        /lib/ld-linux.so.2 (0x00730000)
[lugia@arpa-castle ~]$

ダイレクトでリンクした場合はちゃんと libjpeg.so.7 になるんですが・・・。