On 11/09/13 09:43, lux-integ wrote:
> Greetings,
>
> I am trying to compile netbpm  ( I know it is not in the blfs book  ) and I
> keep running into a problem of incompatibility with my existing libpng
> (version 1.6.2 )
>
> make ends like this:-
> #--------------
>
> pnmtopng.c:2746:15: error: dereferencing pointer to incomplete type
>         info_ptr->num_text = 0;
>                 ^
> pnmtopng.c:2750:15: error: dereferencing pointer to incomplete type
>         info_ptr->valid &= ~PNG_INFO_tIME;
>                 ^
> pnmtopng.c: In function 'displayVersion':
> pnmtopng.c:2814:13: error: 'ZLIB_VERSION' undeclared (first use in this
> function)
>               ZLIB_VERSION);
>               ^
> make[2]: *** [pnmtopng.o] Error 1
> make[2]: Leaving directory
> `/home/linteg/netpbm_Aug2013_stable/converter/other'
> #-------
>
> I tried different versions of netpbm beginning with 'stable' version 10.35.89
> and ending with the august2013 (svn revision2000 I think ) all have a problem
> with libpng-1.6.2.  I tried searching for a suitable patch to no avail.  If
> anyone one list knows of a suitable patch for netpbm to compile libpng-1.6.2 I
> would  be grateful for a copy.
> ( or for that matter any other useful advice )
> many thanks in advance.

The easiest thing to try would be to install libpng-1.5.?? (the latest 
1.5 version) and build netpbm, then re-install libpng-1.6.2, without 
removing the 1.5.?? version - if you run 'ldd' on the netpbm binary you 
should see a line something like:

libpng15.so.15 => /usr/lib/libpng15.so.15 (0xb54f6000)

so it should work, even though the link for libpng.so on /usr/lib now 
points to libpng16.so

David

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to