---------- Forwarded message ---------- From: Eric Bélanger <[email protected]> Date: Sat, May 11, 2013 at 7:05 PM Subject: Re: [racket] Racket 5.3.4 doesn't build aginst libpng 1.6 To: Matthew Flatt <[email protected]>
On Sat, May 11, 2013 at 11:32 AM, Matthew Flatt <[email protected]> wrote: > The `racket/gui' library looks for "libpng15", "libpng12", and just > "libpng", in that order. > > So, maybe it should also look for "libpng16", which I'm guessing is > the name of the libpng 1.6.2 library? > > You can try adjusting > > collects/racket/draw/unsafe/png.rkt > > to see if it works with "libpng16", or you could link "libpng.so" in > the Racket "lib" directory to libpng16.so". > > I already tried patching png.rkt but it didn't work: --- collects/racket/draw/unsafe/png.rkt.orig 2013-05-10 06:14:53.974556522 -0400 +++ collects/racket/draw/unsafe/png.rkt 2013-05-10 06:15:32.214215573 -0400 @@ -10,9 +10,9 @@ [(unix) ;; Most Linux distros supply "libpng12", while other Unix ;; variants often have just "libpng", etc. - (ffi-lib "libpng15" '("15" "") + (ffi-lib "libpng16" '("16" "") #:fail (lambda () - (ffi-lib "libpng12" '("0" "") + (ffi-lib "libpng16" '("0" "") #:fail (lambda () (ffi-lib "libpng")))))] [(macosx) (ffi-lib "libpng15.15.dylib")] I also have a /usr/lib/libpng.so symlinks to libpng16.so on my system that is provided by the libpng package. I have a feeling that the problem here is that racket is not compatible with an API/ABI change in libpng 1.6. > At Fri, 10 May 2013 18:23:01 -0400, Eric Bélanger wrote: > > I'm trying to build racket 5.3.4 but I'm getting many similar errors: > > png_structp->C: argument is not non-null `png_structp' pointer > > argument: #f > > > > I found out that this only happens with libpng 1.6.2. It builds fine if I > > use libpng 1.5.15. > > > > Does anyone have a fix? > > > > Thanks. > > ____________________ > > Racket Users list: > > http://lists.racket-lang.org/users >
____________________ Racket Users list: http://lists.racket-lang.org/users

