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" \
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
make.exe[1]: Leaving directory `J:/devel/unzip610b'
make: *** [gcc] Error 2
The INSTALL file specifically states that for OS/2, makefile.os2 should
remain in the os2 directory and be called with -f as I have above.
I've actually had some recent successes in building things with gcc
4.4.6, so I think that my build system is relatively intact.
I understand (I think) that the "expected declaration" errors shown are
displayed as a result of -Wall, but looking at ctype.h, I don't
understand what's so different about those two particular lines than the
rest:
[32] __BEGIN_DECLS
[33] int isalnum(int);
[34] int isalpha(int);
[35] int iscntrl(int);
[36] int isdigit(int);
[37] int isgraph(int);
[38] int islower(int);
[39] int isprint(int);
[40] int ispunct(int);
[41] int isspace(int);
[42] int isupper(int);
[43] int isxdigit(int);
[44] int toupper(int);
[45] int tolower(int);
So, what's it complaining about? Am I missing a locale specifier somewhere?
TIA
--
Lewis
-------------------------------------------------------------
Lewis G Rosenthal, CNA, CLP, CLE, CWTS
Rosenthal & Rosenthal, LLC
www.2rosenthals.com
Need a managed Wi-Fi hotspot?
www.hautspot.com
visit my IT blog
www.2rosenthals.net/wordpress
-------------------------------------------------------------
--- news://
freenews.netfront.net/ - complaints:
ne...@netfront.net ---