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.
Original:
DIRS= smap smapd netacl plug-gw ftp-gw tn-gw rlogin-gw http-gw
x-gw
Change to:
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: moser@ifor.math.ethz.ch (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: <4rrhvj$6fr@bagan.srce.hr>
* Message-ID: <4rvjs2$6oh@elna.ethz.ch>
*
* Most systems don't have this (yet)
*/
char *strdup(str)
char *str;
{
char *p;
extern char *malloc();
extern char *strcpy();
if ((p = malloc(strlen(str)+1)) == NULL)
return((char *) NULL);
(void) strcpy(p, str);
return(p);
}
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
indicated
That should be all it takes. One final note: there is unsupported software
in the tools directory. Of the admin, client, and
server
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.