Next you will need to edit the file Makefile.config to use gcc[see note] and you also need to add the -posix flag.
# Your C compiler (eg, "cc" or "gcc")
CC= gcc -posix
By default, FWTK tries to compile-in support for X-Windows. Unless you have a developer set of X-Windows tools, you will need to edit the Makefile document in the top level of the source code.
DIRS= smap smapd netacl plug-gw ftp-gw tn-gw rlogin-gw http-gw x-gw
DIRS= smap smapd netacl plug-gw ftp-gw tn-gw rlogin-gw http-gw
The final change is actually a little bit tricky. You have to make up for the lack of strdup and the usual trick of adding -Dstrdup=NXCopyStringBuffer to cc does not work.
You need to use this code:
* posted to comp.sys.next.programmer:
* From: email@example.com (Dominik Moser,CLV A4,2 40 19,720 49 89)
* Subject: Re: Compile problems (pgp 2.6.3i)
* Date: 10 Jul 1996 06:50:42 GMT
* Organization: Swiss Federal Institute of Technology (ETHZ)
* References: <firstname.lastname@example.org>
* Message-ID: <email@example.com>
* Most systems don't have this (yet)
extern char *malloc();
extern char *strcpy();
if ((p = malloc(strlen(str)+1)) == NULL)
return((char *) NULL);
(void) strcpy(p, str);
Finally, you need to edit http-gw/Makefile to use the strdup.o you just created.
Find the code below in the Makefile and add strdup.o where
That should be all it takes. One final note: there is unsupported software
in the tools directory. Of the admin, client, and
software, only the admin compiled cleanly. If anyone ports the client
and/or server, please let me know.
Also my thanks again to Arthur C. Kyle whose Big
Green CD Set includes an archive of Usenet postings to the comp.sys.next.*
groups, which keeps me from being a bigger pain to the NeXT programmers
out there. It is an invaluable resource... like a personal Dejanews of
the NeXT newsgroups.