discuss-gnustep
[Top][All Lists]
Advanced

[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 
<riccardo.mottola@libero.it> wrote: 
 
> 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_info_init_3()
   png_convert_to_rfc1123() which has been replaced
     with png_convert_to_rfc1123_buffer()
   png_data_freer()
   png_malloc_default()
   png_free_default()
   png_reset_zstream()

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
applications
     (i.e., defined in the private pngpriv.h header file) since
libpng-1.5.0.

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?

Sebastian


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




reply via email to

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