Summary:
Following the instructions in README and, trying to compile on Mac OS 10.10.1 quickly yields:
malloc.c:15:1: error: unknown type name 'caddr_t'
I mostly run tf on GNU Linux systems but, just tried to build it on a Mac and, discovered that it doesn't compile. Thought I would report it.
Here is the requested output:
tf-50b8 root# ./configure
configure: Configuring TinyFugue version 5.0 beta 8
configure:
configure: Core dumps disabled.
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 8
checking for inline... yes
checking for library containing select... none required
checking for library containing gethostbyname... none required
checking for main in -linet... no
checking for main in -lnet... no
checking for library containing connect... none required
checking for library containing setlocale... none required
checking for libcrypto and libssl... yes
checking for ssl kerberos dependency... no
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for library containing tgetent... -ltermcap
checking for library containing sqrt... none required
checking for inflate in -lz... yes
checking for pcre_compile in -lpcre... yes
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking for memory.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking whether struct sockaddr has sa_len... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
rm: conftest.dSYM: is a directory
checking return type of signal handlers... void
checking for pid_t... yes
checking for size_t... yes
checking for time_t... yes
checking for socklen_t... rm: conftest.dSYM: is a directory
yes
checking for strftime... yes
checking for h_errno... yes
checking for strstr... yes
checking for strtol... yes
checking for bcopy... yes
checking for bzero... yes
checking for connect... yes
checking for fileno... yes
checking for getcwd... yes
checking for gethostname... yes
checking for gethostbyname... yes
checking for getipnodebyname... yes
checking for getpwnam... yes
checking for gettimeofday... yes
checking for getwd... yes
checking for hstrerror... yes
checking for index... yes
checking for inet_aton... yes
configure: WARNING: getaddrinfo() may be broken, so IPv6 support is disabled. Use --enable-getaddrinfo to override.
checking for kill... yes
checking for memcpy... yes
checking for memset... yes
checking for raise... yes
checking for setlocale... yes
checking for setrlimit... yes
checking for sigaction... yes
checking for srand... yes
checking for srandom... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcmpi... no
checking for strcspn... yes
checking for strerror... yes
checking for stricmp... no
checking for strtod... yes
checking for tzset... yes
checking for waitpid... yes
checking location of mail directory... /var/mail
configure: creating ./config.status
config.status: creating Makefile
config.status: creating unix/vars.mak
config.status: creating src/tfdefs.h
config.status: creating src/tfconfig.h
config.status: src/tfconfig.h is unchanged
config.status: executing default commands
configure:
tf-50b8 root# make
gcc -g -O2 -DDATADIR=/usr/local/share -c -o attr.o attr.c
gcc -g -O2 -DDATADIR=/usr/local/share -c -o command.o command.c
gcc -g -O2 -DDATADIR=/usr/local/share -c -o dstring.o dstring.c
gcc -g -O2 -DDATADIR=/usr/local/share -c -o expand.o expand.c
gcc -g -O2 -DDATADIR=/usr/local/share -c -o expr.o expr.c
expr.c:1229:23: warning: comparison of unsigned expression < 0 is always false
[-Wtautological-compare]
if (t == -1 || usec < 0 || usec > 999999)
~~~~ ^ ~
1 warning generated.
gcc -g -O2 -DDATADIR=/usr/local/share -c -o help.o help.c
gcc -g -O2 -DDATADIR=/usr/local/share -c -o history.o history.c
gcc -g -O2 -DDATADIR=/usr/local/share -c -o keyboard.o keyboard.c
gcc -g -O2 -DDATADIR=/usr/local/share -c -o macro.o macro.c
macro.c:235:63: warning: adding 'int' to a string does not append to the string
[-Wstring-plus-int]
startopt(CS(args), "usSp#c#b:B:E:t:w:h:a:f:P:T:FiIn#1m:q" +
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
macro.c:235:63: note: use array indexing to silence this warning
startopt(CS(args), "usSp#c#b:B:E:t:w:h:a:f:P:T:FiIn#1m:q" +
^
1 warning generated.
gcc -g -O2 -DDATADIR=/usr/local/share -c -o main.o main.c
gcc -g -O2 -DDATADIR=/usr/local/share -c -o malloc.o malloc.c
malloc.c:15:1: error: unknown type name 'caddr_t'
caddr_t mmalloc_base = NULL;
^
1 error generated.
make[1]: [malloc.o] Error 1
make: [files] Error 2
Some people seem to fix this by changing the pointer type of mmaloc_base
http://blakesmith.me/2009/10/28/tinyfugue-on-snow-leopard.html
Others fix it by adding this to malloc.c:
And it also seems like mmaloc_base is never used anywhere else, so potentially you can just remove that line referenced in the link and be done with it.