Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285076 - app-text/xpdf-3.02-r3: emerging fails on x86-solaris due to missing endian.h
Summary: app-text/xpdf-3.02-r3: emerging fails on x86-solaris due to missing endian.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Solaris
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-15 11:08 UTC by Marius Konitzer
Modified: 2009-10-26 16:15 UTC (History)
1 user (show)

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 Marius Konitzer 2009-09-15 11:08:40 UTC
app-text/xpdf-3.02-r3 fails to build on Solaris 10 (x86) due to missing endian.h header file:

[...]
g++ -O2 -pipe -DSYSTEM_XPDFRC="\"/opt/gentoo.x86/etc/xpdfrc\"" -Wno-write-strings -I/opt/gentoo.x86/usr/include/poppler -I/opt/gentoo.x86/usr/include/poppler/goo -I/opt/gentoo.x86/usr/include/poppler/splash -DHAVE_DIRENT_H  -c -o PDFCore.o PDFCore.cc
PDFCore.cc:19:21: error: endian.h: No such file or directory
[...]

AFAIK endian.h is available only on Linux (and IRIX?) platforms, so most Gentoo/Alt people should be affected.

The error is caused by 05_all_xpdf-poppler-search-non-ascii.patch, which is applied before compilation. Disabling this patch makes xpdf compile neatly.

I don't even see the purpose of this patch. It applies UCS-4LE or UCS-4BE code conversion depending on the machine's byte order. Why? Any ideas?

Reproducible: Always

Steps to Reproduce:
1. emerge '=app-text/xpdf-3.02-r3'
Comment 1 Fabian Groffen gentoo-dev 2009-09-15 11:13:39 UTC
same on Darwin.

Maybe printing herd knows why, it could be related to >=poppler-0.11.3 compatability given the ChangeLog.
Comment 2 Fabian Groffen gentoo-dev 2009-10-26 16:15:06 UTC
I fixed this issue few weeks ago.  It is related to the xpdf patchset introducing an <endian.h> include which is all but portable beyond linux.

http://overlays.gentoo.org/proj/alt/changeset/52095