Bug#742148: shapelib: FTBFS on powerpc (Both BIG_ENDIAN and LITTLE_ENDIAN defined!

Cyril Brulebois kibi at debian.org
Wed Mar 26 09:53:17 UTC 2014


Control: tag -1 patch

Julien Cristau <jcristau at debian.org> (2014-03-19):
> Source: shapelib
> Version: 1.3.0-2
> Severity: serious
> Justification: fails to build from source (but built successfully in the past)
> 
> Hi,
> 
> your package no longer builds on powerpc:
> > cc -g -I.. -I/sbuild-nonexistent/bld/include -DPROJ4 -D_LITTLE_ENDIAN -DDEBUG -DDEBUG2  shpdxf.c ../shpopen.o ../dbfopen.o ../safileio.o  -o shpdxf
> > In file included from /usr/include/endian.h:36:0,
> >                  from /usr/include/powerpc-linux-gnu/bits/waitstatus.h:64,
> >                  from /usr/include/stdlib.h:42,
> >                  from shpdxf.c:40:
> > /usr/include/powerpc-linux-gnu/bits/endian.h:26:4: error: #error Both BIG_ENDIAN and LITTLE_ENDIAN defined!
> >  #  error Both BIG_ENDIAN and LITTLE_ENDIAN defined!
> >     ^
> > make[2]: *** [shpdxf] Error 1
> 
> See
> https://buildd.debian.org/status/fetch.php?pkg=shapelib&arch=powerpc&ver=1.3.0-2&stamp=1395181820
> 
> Cheers,
> Julien

Here's a patch; confirmed by first reproducing the FTBFS on partch, and
then seeing it go away once it's applied.

Mraw,
KiBi.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shapelib+742148.diff
Type: text/x-diff
Size: 2643 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20140326/d608b1ce/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20140326/d608b1ce/attachment.sig>


More information about the Pkg-grass-devel mailing list