Bug#808990: nss FTBFS on hppa - trivial patch attached

Helge Deller deller at gmx.de
Fri Dec 25 20:33:42 UTC 2015


Package: nss
Version: 2:3.21-1
Tags: patch

nss fails to build due to a double definition of BYTE_ORDER.
The attached patch fixes it.
Can you please apply it for next upload ?
Thanks,
Helge



This is the bug:
gcc -o OBJS/db.o -c -g -O2 -Wformat -Werror=format-security -Wall -pipe -D_FORTIFY_SOURCE=2 -fPIC -DLINUX2_1  -Wall -Werror -pipe -ffunction-sections -fdata-sections -DHAVE_STRERROR -DLINUX -Dlinux -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DSTDC_HEADERS -DHAVE_STRERROR -DHAVE_SNPRINTF -DMEMMOVE -D__DBINTERFACE_PRIVATE -I/usr/include/nspr -I/<<PKGBUILDDIR>>/dist/include -I/<<PKGBUILDDIR>>/dist/public/dbm -I/<<PKGBUILDDIR>>/dist/private/dbm  db.c
In file included from db.c:50:0:
/<<PKGBUILDDIR>>/dist/public/dbm/mcom_db.h:114:0: error: "BYTE_ORDER" redefined [-Werror]
 #define BYTE_ORDER BIG_ENDIAN
 ^
In file included from /usr/include/hppa-linux-gnu/sys/types.h:216:0,
                 from db.c:42:
/usr/include/endian.h:48:0: note: this is the location of the previous definition
 # define BYTE_ORDER __BYTE_ORDER
 ^
In file included from db.c:50:0:
/<<PKGBUILDDIR>>/dist/public/dbm/mcom_db.h:115:0: error: "BIG_ENDIAN" redefined [-Werror]
 #define BIG_ENDIAN      4321
 ^
In file included from /usr/include/hppa-linux-gnu/sys/types.h:216:0,
                 from db.c:42:
/usr/include/endian.h:46:0: note: this is the location of the previous definition
 # define BIG_ENDIAN __BIG_ENDIAN
 ^
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nss.patch
Type: text/x-diff
Size: 521 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mozilla-maintainers/attachments/20151225/43e02744/attachment.patch>


More information about the pkg-mozilla-maintainers mailing list