Build Problems on MacOS Sierra

Building on MacOS Sierra has a few problems (the downloadable binary image works, this only applies to building your own from source).

Time to debug is limited, these are placeholders:

  1. ranlib no symbol warning
--- 1.564/src/Makefile	2016-09-30 11:31:53 -04:00
+++ edited/src/Makefile	2017-09-18 15:52:42 -04:00
@@ -279,7 +279,7 @@
 CPPFLAGS= -Ilibc $(TOMCRYPT_CPPFLAGS) $(TOMMATH_CPPFLAGS) \
 	$(PCRE_CPPFLAGS) $(LZ4_CPPFLAGS) $(ZLIB_CPPFLAGS)
 # Override this if you don't have it.
-RANLIB	= ranlib
+RANLIB	= ranlib -no_warning_for_no_symbols
 
 # list of C sources in bk
 SRCS	= bk.c $(OBJ:.o=.c)
  1. Latest gperf (3.1) has some incompatible prototypes, requiring this:
--- 1.157/src/cmd.pl	2016-09-29 11:55:27 -04:00
+++ edited/src/cmd.pl	2017-09-18 15:57:08 -04:00
@@ -63,7 +63,7 @@
 	u8	remote:1;	/* always allowed as a remote command */
 } CMD;
 
-CMD	*cmd_lookup(const char *str, unsigned int len);
+CMD	*cmd_lookup(const char *str, register size_t len);
 
 END
 
===== slib.c 1.1082 vs edited =====
--- 1.1082/src/slib.c	2017-09-13 14:21:04 -04:00
+++ edited/src/slib.c	2017-09-18 15:55:57 -04:00
@@ -14921,7 +14921,7 @@
  * Makefile).
  */
 extern	struct kwval *kw2val_lookup(register const char *str,
-    register unsigned int len);
+    register size_t len);
 #include "kw2val_lookup.c"
 
 #define	notKeyword -1
  1. tcltk build has many warnings, some of them may actually be bad – net result is that some bk gui commands blow chunks (citool fails, difftool works)

Points 1 and 2 still stand but point 3 seems to have resolved itself magically and I have a working self-built image again.

:confused: