Subject: | maybe a bug of par |
Date: | Sun, 13 Jun 2010 19:37:47 +0800 |
To: | "bug-par" <bug-par [...] rt.cpan.org> |
From: | "杨庆庆" <yangqingqing [...] fudan.edu.cn> |
bug-par,您好!
Today I tried to install par::packer module, and my system is windows xp. And I followed these instructions:
perl makefile.pl
nmake
then there comes errors as follows:
mktmpdir.c(179) : warning C4013: 'strcasecmp' undefined; assuming extern returnng int
main.c(115) : error C2143: syntax error : missing ';' before 'type'
main.c(116) : error C2065: 'argno' : undeclared identifier
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\
MAKE.EXE"' : return code '0x2'
Stop.
Then I got to known that 'strcasecmp' is not a function for windows, but for linux. And in myldr/mktmpdir.c file are the lines:
#ifdef WIN32
#define STREQ(a,b) (strcasecmp(a,b) == 0)
#else
#define STREQ(a,b) (strcmp(a,b) == 0)
#endif
So I want to ask if this is a bug or something else?
And another bug is in myldr/main.c, at line 115. The statement " int argno = 0;" should be put at the beginning of the main function.
致
礼!
杨庆庆
yangqingqing@fudan.edu.cn
2010-06-13