Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 586336

Summary: media-libs/libgphoto2-2.5.10 fails to build with >=media-libs/libjpeg-turbo-1.5.0
Product: Gentoo Linux Reporter: Ulenrich <ulenrich>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: alexander, derk.tebokkel, graphics+disabled, hyedad, kripton, michal.petrucha
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 585782    

Description Ulenrich 2016-06-18 21:58:16 UTC
trying to compile with to stabilized libjpeg-turbo-1.5:
In file included from /tmp/portage/media-libs/libgphoto2-2.5.10/work/libgphoto2-2.5.10/camlibs/ax203/ax203.c:38:0:
/tmp/portage/media-libs/libgphoto2-2.5.10/work/libgphoto2-2.5.10/camlibs/ax203/jpeg_memsrcdest.h:4:1: error: conflicting types for ‘jpeg_mem_src’
 jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer,
 ^
In file included from /tmp/portage/media-libs/libgphoto2-2.5.10/work/libgphoto2-2.5.10/camlibs/ax203/jpeg_memsrcdest.h:1:0,
                 from /tmp/portage/media-libs/libgphoto2-2.5.10/work/libgphoto2-2.5.10/camlibs/ax203/ax203.c:38:
/usr/include/jpeglib.h:923:14: note: previous declaration of ‘jpeg_mem_src’ was here
 EXTERN(void) jpeg_mem_src (j_decompress_ptr cinfo,
----
But there might already be a patch ready at:

https://github.com/gphoto/libgphoto2/commit/0df14db3eda1b780a27b1c54bc8f251d15afebbc
Comment 1 Alexander Tsoy 2016-06-29 11:17:14 UTC
(In reply to Ulenrich from comment #0)
> But there might already be a patch ready at:
> 
> https://github.com/gphoto/libgphoto2/commit/
> 0df14db3eda1b780a27b1c54bc8f251d15afebbc

Confirming that this patch fixes build.
Comment 2 Derk W te Bokkel 2016-07-05 13:29:47 UTC
any idea why this has not been fixed though libjpeg-turbo-1.5.0 is being stableized .. can't rebuild this lib now ...
Comment 3 Ulenrich 2016-07-11 10:06:22 UTC
@Derk
there are two ways for you to fix your issue:
- apply the patch, or
- disable ax203 in CAMERAS: -ax203
Comment 4 Pacho Ramos gentoo-dev 2016-07-30 20:19:11 UTC
[master fb8208b] media-libs/libgphoto2: Fix build with latest jpeg-turbo (#586336 by Ulenrich)
 2 files changed, 98 insertions(+)
 create mode 100644 media-libs/libgphoto2/files/libgphoto2-2.5.10-jpeg.patch
Comment 5 Pacho Ramos gentoo-dev 2016-07-30 20:19:52 UTC
(In reply to Derk W te Bokkel from comment #2)
> any idea why this has not been fixed though libjpeg-turbo-1.5.0 is being
> stableized .. can't rebuild this lib now ...

Because we are too few developers needing to handle lots of packages/bugs... if you want to become a dev... please let me know (via mail it will be better)