pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

navit: Add notes about undefined __BYTE_ORDER and __*_ENDIAN in the TODO



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Fri May 25 20:27:49 2018 +0200
Changeset:	7ba7802db6d87013da4c2d0f273e14e65890e857

Modified Files:
	navit/TODO

Log Message:
navit: Add notes about undefined __BYTE_ORDER and __*_ENDIAN in the TODO

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7ba7802db6d87013da4c2d0f273e14e65890e857

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 navit/TODO | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diffs:
diff --git a/navit/TODO b/navit/TODO
index 20871705d2..7d1c446d3e 100644
--- a/navit/TODO
+++ b/navit/TODO
@@ -2,3 +2,16 @@
 2. Solve NetBSD porting problem (runtime issues).
 3. Find and set default options for the package.
 4. Create additional package options.
+
+On NetBSD-current the build fails due undefined __BYTE_ORDER and
+__*_ENDIAN, e.g.:
+
+> .../navit-0.5.1/navit/map/binfile/binfile.c:1737:5: warning: "__BYTE_ORDER" is not defined [-Wundef]
+>  #if __BYTE_ORDER == __BIG_ENDIAN
+>      ^~~~~~~~~~~~
+> .../navit-0.5.1/navit/map/binfile/binfile.c:1737:21: warning: "__BIG_ENDIAN" is not defined [-Wundef]
+>  #if __BYTE_ORDER == __BIG_ENDIAN
+>                      ^~~~~~~~~~~~
+
+Adding `CFLAGS.NetBSD+= -DUSE_SYS_ENDIAN_H' seems to workaround
+that but it also sounds pretty kludgy!


Home | Main Index | Thread Index | Old Index