Opened 18 years ago
Last modified 18 years ago
#1061 closed defect (fixed)
gdal FTBFS on mipsel due to bad endianness check
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | cees@… |
Description
From http://bugs.debian.org/351372 gdal 1.3.1 fails to build from source on mipsel (the little endian mips architecture) due to a bad endianness check. make[3]: Entering directory `/build/buildd/gdal-1.3.1/frmts/pcraster' /bin/sh ../../libtool --mode=compile gcc -c -I../../port -I../../gcore -I../../alg -I../../ogr -I../../ogr/ogrsf_frmts -I../../port -DUSE_IN_GDAL -Ilibcsf -Wall -O2 libcsf/_getcell.c -o ../o/_getcell.o gcc -c -I../../port -I../../gcore -I../../alg -I../../ogr -I../../ogr/ogrsf_frmts -I../../port -DUSE_IN_GDAL -Ilibcsf -Wall -O2 libcsf/_getcell.c -fPIC -DPIC -o ../o/.libs/_getcell.o In file included from libcsf/csf.h:9, from libcsf/_getcell.c:4: libcsf/csftypes.h:353:4: error: #error CPU_BIG_ENDIAN and CPU_LITTLE_ENDIAN are both defined make[3]: *** [../o/_getcell.o] Error 1 make[3]: Leaving directory `/build/buildd/gdal-1.3.1/frmts/pcraster' I think this is caused by these lines: 118: #ifdef mips 119: /* works on the SGI machines */ 120: # define CPU_BIG_ENDIAN 121: #endif I think the proper way to fix this would be to include endian.h and use __BYTE_ORDER from that. Full build logs here: http://buildd.debian.org/fetch.php?&pkg=gdal&ver=1.3.1-2&arch=mipsel&stamp=1138103949&file=log&as=raw http://buildd.debian.org/fetch.php?&pkg=gdal&ver=1.3.1-3&arch=mipsel&stamp=1138807257&file=log&as=raw
Attachments (1)
Change History (4)
comment:2 by , 18 years ago
removed mips setting and excluded setting endian from cpl_port from those probed in the file. CVS version is now correct
comment:3 by , 18 years ago
Excellent. Any chance you could mail the exact patch to 351372@bugs.debian.org? I can't seem to find a webcvs for gdal to extract the patch.
Note:
See TracTickets
for help on using tickets.