Date: Mon, 26 Nov 2001 22:13:05 -0600 From: "Eric Rahmig" <erahmig@minn.net> To: freebsd-questions@freebsd.org Subject: Re: gv port builds but fails - needing libpng.so.4 (?) Message-ID: <3C02BE71.26378.46004AC@localhost> In-Reply-To: <Pine.LNX.4.33.0111251130400.13547-100000@phoenix.ea4els.ampr.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Simon, I haven't seen any replies to your email so I'll give you my input in the hopes it may be helpful. I recently experienced a similar problem. I no longer remember the exact order of events leading up to the problem. I do remember that one of the things I did was to install the gv port. The message I was getting was: /usr/libexec/ld-elf.so.1: Shared object "libpng.so.5" not found I double checked /usr/local/lib and, sure enough, libpng.so.5 was there. The problem seemed to be limited to printing postscript (via gs and magicfilter in my case). Text printed just fine. It turns out that somehow the permissions on the /var/run directory had been changed from 755 to 750. Since gs runs as daemon:daemon when invoked from an lpd input filter the dynamic loader was unable to read the "hints" files in /var/run and so printed the "libpng.so.5 not found" message. I figured this out by modifying the lpd input filter. Instead of having it invoke gs directly I had it call a shell script. The script used the truss command to run gs and print all the system calls it made. By scanning this output I was able to see a "permission denied" error when trying to read the "hints" files in /var/run. Once I did chmod 755 /var/run postscript printing started working again. Hope this helps, Eric On 25 Nov 2001, at 11:41, Simon J Mudd wrote: > Hello, > > I'm running 4.4-STABLE and am having problems with the gv port not > working. I've just deleted the port and reinstalled it, and am now > running gv-3.5.8. > > make install works. > > However when trying to view a postscript file I get the following error > message from the gv X binary: > > GhostScript Messages > > /usr/libexec/ld-elf.so.1: Shared object "libpng.so.4" not found > > Error: Postscript interpreter failed in main window. > > I note that I have the port png-1.2.0 (Library for manipulating PNG > images) installed and the ports packing list shows that it provides > /usr/local/lib/libpng.so.5, not ".4". > > As I don't have a /usr/local/lib/libpng.so.4 library I am unsure why gv > has tried to link against this version, as consequently doesn't work, when > if it linked against libpng.so.5 everything would be working fine. > > I also note that ldd /usr/X11R6/bin/gv doesn't depend on the library > directly, so perhaps the problem is that one of the libraries that it > links against in turns requires libpng.so.4 > > [sjmudd@unicorn postfix-temp]$ ldd /usr/X11R6/bin/gv > /usr/X11R6/bin/gv: > libm.so.2 => /usr/lib/libm.so.2 (0x2809d000) > libXaw3d.so.7 => /usr/X11R6/lib/libXaw3d.so.7 (0x280b9000) > libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x2810c000) > libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x28121000) > libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x2816b000) > libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x28174000) > libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x2818a000) > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x28198000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x281a6000) > libc.so.4 => /usr/lib/libc.so.4 (0x28280000) > libXThrStub.so.6 => /usr/X11R6/lib/libXThrStub.so.6 (0x28319000) > > How can I tell which library is out of date (if this is the case) and > rebuild it accordingly? > > Is this something I should reports to freebsd-ports or am I doing > something wrong somewhere? > > Thanks for any pointers. > > Regards, > > Simon > -- > Simon J Mudd, Tel: +34-91-408 4878, Mobile: +34-605-085 219 > Madrid, Spain. email: sjmudd@pobox.com, Postfix RPM Packager > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -----------------+--------------------------------------------------------- Eric Rahmig | "It is absurd for the Evolutionist to complain that it erahmig@minn.net | is unthinkable for an admittedly unthinkable God to | make everything out of nothing, and then pretend that | it is more thinkable that nothing should turn itself | into anything." -- G.K. Chesterton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C02BE71.26378.46004AC>