Source: djview4 Version: 4.6-2 Severity: wishlist Tags: patch User: [email protected] Usertags: sh4 X-Debbugs-CC: [email protected]
Hi, djview4 FTBFS on SH4. Because djview4 does not support Renesas SH. http://buildd.debian-ports.org/fetch.php?pkg=djview4&arch=sh4&ver=4.6-2&stamp=1297618434&file=log&as=raw ----- cd nsdejavu && make make[2]: Entering directory `/build/buildd-djview4_4.6-2-sh4-XvjQFi/djview4-4.6/nsdejavu' /bin/bash ../libtool --tag=disable-static --mode=compile gcc -DNDEBUG -Wall -O2 -I. -I./npsdk -I.. -c nsdejavu.c -o nsdejavu.lo libtool: compile: gcc -DNDEBUG -Wall -O2 -I. -I./npsdk -I.. -c nsdejavu.c -fPIC -DPIC -o .libs/nsdejavu.o In file included from ./npsdk/prtypes.h:58, from ./npsdk/npapi.h:50, from nsdejavu.c:124: ./npsdk/prcpucfg.h:650:2: error: #error "Unknown CPU architecture" In file included from ./npsdk/npapi.h:50, from nsdejavu.c:124: ./npsdk/prtypes.h:301:2: error: #error No suitable type for PRInt8/PRUint8 ./npsdk/prtypes.h:326:2: error: #error No suitable type for PRInt16/PRUint16 ./npsdk/prtypes.h:358:2: error: #error No suitable type for PRInt32/PRUint32 ./npsdk/prtypes.h:421:2: error: #error 'sizeof(int)' not sufficient for platform use ----- This is the same as the bug #550172 that djvulibre which you maintain had. I attached the patch which revised this problem. Could you check and apply this? Best regards, Nobuhiro
diff --git a/nsdejavu/npsdk/prcpucfg.h b/nsdejavu/npsdk/prcpucfg.h index 776c21e..800f65d 100644 --- a/nsdejavu/npsdk/prcpucfg.h +++ b/nsdejavu/npsdk/prcpucfg.h @@ -645,6 +645,56 @@ #define PR_BYTES_PER_WORD_LOG2 2 #define PR_BYTES_PER_DWORD_LOG2 3 +#elif defined(__sh__) + +#ifdef __LITTLE_ENDIAN__ +#define IS_LITTLE_ENDIAN 1 +#undef IS_BIG_ENDIAN +#else +#define IS_BIG_ENDIAN 1 +#undef IS_LITTLE_ENDIAN +#endif + +#define PR_BYTES_PER_BYTE 1 +#define PR_BYTES_PER_SHORT 2 +#define PR_BYTES_PER_INT 4 +#define PR_BYTES_PER_INT64 8 +#define PR_BYTES_PER_LONG 4 +#define PR_BYTES_PER_FLOAT 4 +#define PR_BYTES_PER_DOUBLE 8 +#define PR_BYTES_PER_WORD 4 +#define PR_BYTES_PER_DWORD 8 + +#define PR_BITS_PER_BYTE 8 +#define PR_BITS_PER_SHORT 16 +#define PR_BITS_PER_INT 32 +#define PR_BITS_PER_INT64 64 +#define PR_BITS_PER_LONG 32 +#define PR_BITS_PER_FLOAT 32 +#define PR_BITS_PER_DOUBLE 64 +#define PR_BITS_PER_WORD 32 + +#define PR_BITS_PER_BYTE_LOG2 3 +#define PR_BITS_PER_SHORT_LOG2 4 +#define PR_BITS_PER_INT_LOG2 5 +#define PR_BITS_PER_INT64_LOG2 6 +#define PR_BITS_PER_LONG_LOG2 5 +#define PR_BITS_PER_FLOAT_LOG2 5 +#define PR_BITS_PER_DOUBLE_LOG2 6 +#define PR_BITS_PER_WORD_LOG2 5 + +#define PR_ALIGN_OF_SHORT 2 +#define PR_ALIGN_OF_INT 4 +#define PR_ALIGN_OF_LONG 4 +#define PR_ALIGN_OF_INT64 8 +#define PR_ALIGN_OF_FLOAT 4 +#define PR_ALIGN_OF_DOUBLE 8 +#define PR_ALIGN_OF_POINTER 4 +#define PR_ALIGN_OF_WORD 4 + +#define PR_BYTES_PER_WORD_LOG2 2 +#define PR_BYTES_PER_DWORD_LOG2 3 + #else #error "Unknown CPU architecture"

