[Top][All Lists]

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

Re: png Error while linking gui

From: Sebastian Reitenbach
Subject: Re: png Error while linking gui
Date: Wed, 20 Feb 2013 19:45:25 +0100
User-agent: SOGoMail 2.0.4b

On Wednesday, February 20, 2013 18:36 CET, Riccardo Mottola <address@hidden> 
> Hi,
> I upgraded libpng on NetBSD and now I cannot link gui anymore::
> Making all for tool set_show_service...
>   Compiling file set_show_service.m ...
>   Linking tool set_show_service ...
> ../Source/./obj/libgnustep-gui.so: undefined reference to `png_sizeof'
> gmake[4]: *** [obj/set_show_service] Error 1

I guess when compiling NSBitmapImageRep+PNG.m, you got a warning about 
implicit declaration of function png_sizeof?

> I have:
> png-1.6.0nb1        Library for manipulating PNG images
> looks as if the function was removed ? is anybody using this version of 
> libpng?
OpenBSD ships 1.5.10.

The following API are now DEPRECATED:
   png_convert_to_rfc1123() which has been replaced
     with png_convert_to_rfc1123_buffer()

The following has been removed:
   png_get_io_chunk_name(), which has been replaced
     with png_get_io_chunk_type().  The new
     function returns a 32-bit integer instead of
     a string.
   The png_sizeof(), png_strlen(), png_memcpy(), png_memcmp(), and
     png_memset() macros are no longer used in the libpng sources and
     have been removed.  These had already been made invisible to
     (i.e., defined in the private pngpriv.h header file) since

The signatures of many exported functions were changed, such that
   png_structp became png_structrp or png_const_structrp
   png_infop became png_inforp or png_const_inforp
where "rp" indicates a "restricted pointer".

here I see that png_sizeof() is just a #define to sizeof()

so exchanging it with sizeof should just work?


> Riccardo
> _______________________________________________
> Discuss-gnustep mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep

reply via email to

[Prev in Thread] Current Thread [Next in Thread]