4 messages in com.perforce.jammingCompiling JAM utilities using gcc on ...| From | Sent On | Attachments |
|---|---|---|
| Cath...@toucan.ie | 12 May 1999 06:20 | |
| Dona...@mindspring.com | 12 May 1999 06:41 | |
| Cath...@toucan.ie | 12 May 1999 07:26 | |
| Davi...@intellect.com.au | 12 May 1999 18:00 | .zip |
| Subject: | Compiling JAM utilities using gcc on NT4.0![]() |
|---|---|
| From: | Cath...@toucan.ie (Cath...@toucan.ie) |
| Date: | 05/12/1999 07:26:31 AM |
| List: | com.perforce.jamming |
Hi Donald, thanks for the prompt reply. I really appreciate it.
I have upgraded to B20 of Cygnus' tool. I can get around the P_NOWAIT problem by using -DP_NOWAIT=_P_NOWAIT in the Makefile. In order to build I opened a bash shell given by Cygwin batch file. Then I simply run make and the output from the compiler is after the Makefile below.
Here is a copy of the makefile I am using:
----------------------------------------------- # Makefile for jam
CC = gcc TARGET = -o jam0 CFLAGS = -DNT -DP_NOWAIT=_P_NOWAIT
# Special flavors - uncomment appropriate lines
# NCR seems to have a broken readdir() -- use gnu #CC = gcc
# AIX needs -lbsd, and has no identifying cpp symbol # Use _AIX41 if you're not on 3.2 anymore. #LINKLIBS = -lbsd #CFLAGS = -D_AIX #CFLAGS = -D_AIX41
# NT (with Microsoft compiler) # Use FATFS if building on a DOS FAT file system #Lib = $(MSVCNT)/lib #Include = $(MSVCNT)/include #CC = cl /nologo #CFLAGS = -I $(Include) -DNT #TARGET = /Fejam0 #LINKLIBS = $(Lib)/oldnames.lib $(Lib)/kernel32.lib $(Lib)/libc.lib
# BeOS - Metroworks CodeWarrior #CC = mwcc #Include = /NewDisk/develop/headers/posix #CFLAGS = -I $(Include)
SOURCES = \ command.c compile.c execunix.c execvms.c expand.c \ filent.c fileos2.c fileunix.c filevms.c glob.c hash.c \ headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c \ newstr.c option.c parse.c pathunix.c pathvms.c regexp.c \ rules.c scan.c search.c timestamp.c variable.c
all: jam0 jam0
jam0: $(CC) $(TARGET) $(CFLAGS) $(SOURCES) $(LINKLIBS)
-------------------------------------------------------
Here is the output from the compiler.
------------------------------------------------------- bash-2.02$ make gcc -o jam0 -DNT -DP_NOWAIT=_P_NOWAIT command.c compile.c execunix.c execvms.c e xpand.c filent.c fileos2.c fileunix.c filevms.c glob.c hash.c headers.c jam.c ja mbase.c jamgram.c lists.c make.c make1.c newstr.c option.c parse.c pathunix.c pa thvms.c regexp.c rules.c scan.c search.c timestamp.c variable.c execunix.c: In function `execcmd': execunix.c:236: warning: passing arg 3 of `spawnvp' from incompatible pointer ty pe filent.c: In function `file_dirscan': filent.c:55: storage size of `finfo' isn't known jam.c: In function `main': jam.c:250: `environ' undeclared (first use in this function) jam.c:250: (Each undeclared identifier is reported only once jam.c:250: for each function it appears in.) make: *** [jam0] Error 1 bash-2.02$
-------------------------------------------------------
Thanks again, Cathal. ====================================================== Cathal Curtis, email cat...@toucan.ie Toucan Technology Ltd, Tel: +353 91 519917 IDA Business Park, Fax: +353 91 519901 Dangan, Galway, Ireland. ======================================================





.zip