<div dir="ltr"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Eric Bélanger</b> <span dir="ltr"><<a href="mailto:snowmaniscool@gmail.com">snowmaniscool@gmail.com</a>></span><br>
Date: Sat, May 11, 2013 at 7:05 PM<br>Subject: Re: [racket] Racket 5.3.4 doesn't build aginst libpng 1.6<br>To: Matthew Flatt <<a href="mailto:mflatt@cs.utah.edu">mflatt@cs.utah.edu</a>><br><br><br><div dir="ltr">
<br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Sat, May 11, 2013 at 11:32 AM, Matthew Flatt <span dir="ltr"><<a href="mailto:mflatt@cs.utah.edu" target="_blank">mflatt@cs.utah.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The `racket/gui' library looks for "libpng15", "libpng12", and just<br>
"libpng", in that order.<br>
<br>
So, maybe it should also look for "libpng16", which I'm guessing is<br>
the name of the libpng 1.6.2 library?<br>
<br>
You can try adjusting<br>
<br>
collects/racket/draw/unsafe/png.rkt<br>
<br>
to see if it works with "libpng16", or you could link "libpng.so" in<br>
the Racket "lib" directory to libpng16.so".<br>
<div><div><br></div></div></blockquote><div><br></div></div><div>I already tried patching png.rkt but it didn't work:<br><br></div><div>--- collects/racket/draw/unsafe/png.rkt.orig 2013-05-10 06:14:53.974556522 -0400<br>
+++ collects/racket/draw/unsafe/png.rkt 2013-05-10 06:15:32.214215573 -0400<br>@@ -10,9 +10,9 @@<br> [(unix)<br> ;; Most Linux distros supply "libpng12", while other Unix<br> ;; variants often have just "libpng", etc.<br>
- (ffi-lib "libpng15" '("15" "")<br>+ (ffi-lib "libpng16" '("16" "")<br> #:fail (lambda ()<br>- (ffi-lib "libpng12" '("0" "")<br>
+ (ffi-lib "libpng16" '("0" "")<br> #:fail (lambda ()<br> (ffi-lib "libpng")))))]<br> [(macosx) (ffi-lib "libpng15.15.dylib")]<br>
<br></div><div>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.<br>
</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>
At Fri, 10 May 2013 18:23:01 -0400, Eric Bélanger wrote:<br>
> I'm trying to build racket 5.3.4 but I'm getting many similar errors:<br>
> png_structp->C: argument is not non-null `png_structp' pointer<br>
> argument: #f<br>
><br>
> I found out that this only happens with libpng 1.6.2. It builds fine if I<br>
> use libpng 1.5.15.<br>
><br>
> Does anyone have a fix?<br>
><br>
> Thanks.<br>
</div></div>> ____________________<br>
> Racket Users list:<br>
> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</blockquote></div></div><br></div></div>
</div><br></div>