Path: csiph.com!usenet.pasdenom.info!gegeweb.org!news.glorb.com!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail Date: Sat, 01 Jun 2013 12:07:57 -0700 From: Dave Yeo User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:10.0.12) Gecko/20130212 Firefox/10.0.12 SeaMonkey/2.7.2 MIME-Version: 1.0 Newsgroups: comp.os.os2.programmer.porting Subject: Re: Problems building unzip 6.10b References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 54 Message-ID: <51aa4696$0$58731$c3e8da3$c8b7d2e6@news.astraweb.com> Organization: Unlimited download news at news.astraweb.com NNTP-Posting-Host: d91e69bb.news.astraweb.com X-Trace: DXC=nH59JD:9m\ZJRMXARXfhdBV\ Xref: csiph.com comp.os.os2.programmer.porting:220 Lewis Rosenthal wrote: > Hi, guys... > > Prompted by Dave's mention in eCS-Technical (see > http://tech.groups.yahoo.com/group/eCS-Technical/message/17592 et seq) > and by http://mantis.smedley.id.au/view.php?id=549 , I decided to try to > give building the latest Unzip a shot... > > I'm not making much headway. If I set aside all of the options I'd like > to add, and from bash, just run: > > [Apollo|J:/devel/unzip610b]make -f os2/makefile.os2 gcc > make -f os2/makefile.os2 all \ > CC="gcc -Zomf -O -I." \ > CFLAGS="-Wall -DOS2 -DASM_CRC " \ > NFLAGS="" \ > DLLFLAG="" \ > AS="gcc -Zomf" \ > ASFLAGS="-Di386" \ > LDFLAGS="-o ./" \ > LDFLAGS2="-Zsmall-conv -Zstack 320 -Zsys -s" \ This stack declaration is way to small and possibly what is causing the crash. The default of 1MB is probably sufficient. Actually just comment out the whole line as the rest is for EMX except -s, you can strip it with lxlite later. > OUT="-o" \ > OBJ=".obj" \ > CRCA_O="crc_gcc.obj" \ > DEF="os2/unzip.def" > make.exe[1]: Entering directory `J:/devel/unzip610b' > gcc -Zomf -O -I. -c -Wall -DOS2 -DASM_CRC unzip.c > In file included from unzpriv.h:637, > from unzip.h:734, > from unzip.c:69: > /@unixroot/usr/include/ctype.h:42: error: expected declaration > specifiers or '.. > .' before '(' token > /@unixroot/usr/include/ctype.h:45: error: expected declaration > specifiers or '.. > .' before '(' token > make.exe[1]: *** [unzip.obj] Error 1 [...] > > So, what's it complaining about? Am I missing a locale specifier somewhere? It's probably a totally unrelated error. Try commenting out the #include line to see if you get a more meaningful error or add -E to the CFLAGS to get the preprocessor output and examine unzip.o (or unzip.obj) Dave