Bug#259326: libgnomeprint: FTBFS: missing endian support for some architectures

LaMont Jones LaMont Jones <lamont@mmjgroup.com>, 259326@bugs.debian.org
Tue, 13 Jul 2004 20:05:11 -0600 (MDT)


Package: libgnomeprint
Version: 2.7.0-0
Severity: normal
Tags: experimental patch

When building on amd64, the following error occurs:
>  cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../libgnomeprint -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libart-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/freetype2 -DBINDIR=\"/usr/bin\" -DDATADIR=\"/usr/share\" -DGPA_MODULES_DIR=\"/usr/lib/libgnomeprint/2.7.0/modules\" -DGPA_DATA_DIR=\"/usr/share/libgnomeprint/2.7.0\" -DNO_MAPPERS -DNO_TYPE3 -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -g -Wall -O2 -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -c sft.c -MT sft.lo -MD -MP -MF .deps/sft.TPlo  -fPIC -DPIC -o .libs/sft.o
> In file included from sft.c:52:
> sft.h:127:2: #error "Either G_BIG_ENDIAN or G_LITTLE_ENDIAN should be defined."

A patch which solves this through the simple addition of <endian.h> can be
found at http://http.amd64.no-name-yet.com/patches/libgnomeprint.amd64.diff.

lamont

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux mix.mmjgroup.com 2.4.22-lj4 #1 SMP Tue Sep 23 22:12:51 MDT 2003 i686 unknown unknown GNU/Linux