Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320085 - media-libs/jpeg-8a: please install jpegint.h
Summary: media-libs/jpeg-8a: please install jpegint.h
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-17 02:18 UTC by Michael Weber (RETIRED)
Modified: 2010-05-20 13:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weber (RETIRED) gentoo-dev 2010-05-17 02:18:05 UTC
A game i try to install uses internal functions of the jpeg library.
I've removed the bundled version and tried to replace it by the system version.

code in the game:
#define JPEG_INTERNALS
#include <jpeglib.h>

code in /usr/include/jpeglib.h
#ifdef JPEG_INTERNALS
#include "jpegint.h"            /* fetch private declarations */
#include "jerror.h"             /* fetch error codes too */
#endif

jerror.h is installed, jpegint.h is not.
I see the comment in above file "... Applications using the library should not include jpegint.h ...", but would it be possible to add that anyhow? 

Technically you have to add jpegint.h to INSTINCLUDES on line 303 of the Makefile.am/in
Comment 1 Azamat H. Hackimov 2010-05-17 12:07:35 UTC
This is wrong way. Try first delete 
#define JPEG_INTERNALS 
line from game sources. This #define not should exist in external projects.
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-05-17 18:33:42 UTC
(In reply to comment #1)
> This is wrong way. Try first delete 
> #define JPEG_INTERNALS 
> line from game sources. This #define not should exist in external projects.

Thanks, i can read the comment inside the jpeg source by myself.
This 'just delete' works for urbanterror (bug 203296) and resulted in no obvious problems with the game/graphics. I have to check the server before closing this.


Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-05-20 13:34:32 UTC
I'll close it for you, then. Please reopen the bug report only when you've established there is a real bug and it's Gentoo's to fix (like a supported ebuild or related Gentoo software).