pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/44527: libpng does not provide standard names



The following reply was made to PR pkg/44527; it has been noted by GNATS.

From: "OBATA Akio" <obache%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/44527: libpng does not provide standard names
Date: Mon, 07 Feb 2011 17:47:57 +0900

 On Mon, 07 Feb 2011 17:15:01 +0900, <multix79%yahoo.com@localhost> wrote:
 
 >> Fix:
 > Many programs (not referring to other packages of pkgsrc, but to standard 
 > source packages) will look for the headers in <libpng/png.h> and use the 
 > linker flag "-lpng" which is perfectly reasonable.
 
 I don't know such souce packages.
 But it should use libpng-config, then it should be built with `libpng-config 
--cflags` and
 linked with `libpng-config --ldflags'.
 Then in source codes, include <png.h> instead of <libpng/png.h>.
 If you want to use certain version of libpng, you should use libpng15-config 
instead.
 It's the preferred approach.
 
 > I would suggest to either remove the renaming because the library sonames 
 > already have the version, major and minor, or add symbolic links. I suppose 
 > the renaming of the object and directories was done for a kind of "slotting".
 
 Do you know what will be happened if someone is linked with libpng.so, and the 
other one
 is linked with libpng15.so, finally, those are linked with each other?
 


Home | Main Index | Thread Index | Old Index