ARSperl defines its own strcasecmp/strncasecmp functions for the windows 
platform, probably those aren't available in the Visual Studio libraries.

MinGW (and probably Cygwin) seems to have those functions, so there's a 
collision.
You'll find the function definitions in the following files:

supportrev.h: line 96
supportrev.c: line 2429

Try replacing the "#ifdef _WIN32" directive by "#if 0" or something 
similar that's always false.


Regards,
Thilo Stapff


Georg Grabler schrieb:
> Hello,
> 
> I've tried to compile ARSPerl using ActiveState's Perl port and MinGW (3.4.2).
> 
> I downloaded the ARS API from www.arswiki.org, version 6.3 and 7.0.
> 
> Well, as it is, i've problems building ARSPerl, at compilation time i
> get the following errors:
> 
> perl Makefile.PL - i get the following warnings by using the command:
> Checking if your kit is complete...
> Looks good
> Note (probably harmless): No library found for -lkernel32
> Note (probably harmless): No library found for -luser32
> Note (probably harmless): No library found for -lgdi32
> Note (probably harmless): No library found for -lwinspool
> Note (probably harmless): No library found for -lcomdlg32
> Note (probably harmless): No library found for -ladvapi32
> Note (probably harmless): No library found for -lshell32
> Note (probably harmless): No library found for -lole32
> Note (probably harmless): No library found for -loleaut32
> Note (probably harmless): No library found for -lnetapi32
> Note (probably harmless): No library found for -luuid
> Note (probably harmless): No library found for -lws2_32
> Note (probably harmless): No library found for -lmpr
> Note (probably harmless): No library found for -lwinmm
> Note (probably harmless): No library found for -lversion
> Note (probably harmless): No library found for -lodbc32
> Note (probably harmless): No library found for -lodbccp32
> Note (probably harmless): No library found for -lmsvcrt
> Writing Makefile for ARS
> 
> 
> nmake:
> Microsoft (R) Program Maintenance Utility   Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
> 
> cp ARSarerrno-h.pm blib\lib/ARSarerrno-h.pm
> cp ARSnparm.pm blib\lib/ARSnparm.pm
> cp artypes.ph blib\lib/artypes.ph
> cp _h2ph_pre.ph blib\lib/_h2ph_pre.ph
> cp ARSar-h.pm blib\lib/ARSar-h.pm
> cp ARSnterrno-h.pm blib\lib/ARSnterrno-h.pm
> cp ARSnt-h.pm blib\lib/ARSnt-h.pm
> cp ARSOOsup.pm blib\lib/ARSOOsup.pm
> cp ARSOOmsgs.pm blib\lib/ARSOOmsgs.pm
> cp ARSOOform.pm blib\lib/ARSOOform.pm
> cp ARS.pm blib\lib/ARS.pm
> AutoSplitting blib\lib/ARS.pm (blib\lib\auto\ARS)
>         C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp  -typemap 
> C:\Perl\lib\E
> xtUtils\typemap -typemap typemap  ARS.xs > ARS.xsc && C:\Perl\bin\perl.exe 
> -MExt
> Utils::Command -e mv ARS.xsc ARS.c
>         gcc -c  -Ic:\arapi/include  -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT 
> -DHA
> VE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT 
> -DPERL_
> IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE 
> -fno-strict-alias
> ing -O2    -DVERSION=\"1.84\"  -DXS_VERSION=\"1.84\"  "-IC:\Perl\lib\CORE"  
> -D_W
> IN32   -Wno-unused-variable -Wuninitialized  -DARS32  -DARS452  
> -DPERL_PATCHLEVE
> L_IS=8 -DPERL_SUBVERSION_IS=8 -DPERL_BASEREV_IS=50 ARS.c
> In file included from ARS.xs:27:
> supportrev.h:99: error: conflicting types for 'strcasecmp'
> C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/string.h:97: 
> error:
> previous definition of 'strcasecmp' was here
> supportrev.h:99: error: conflicting types for 'strcasecmp'
> C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/string.h:97: 
> error:
> previous definition of 'strcasecmp' was here
> supportrev.h:101: error: conflicting types for 'strncasecmp'
> C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/string.h:103: 
> error:
>  previous definition of 'strncasecmp' was here
> supportrev.h:101: error: conflicting types for 'strncasecmp'
> C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/string.h:103: 
> error:
>  previous definition of 'strncasecmp' was here
> NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x1'
> Stop.
> 
> 
> Does anyone have an idea about this?
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Arsperl-users mailing list
> Arsperl-users@arsperl.org
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
> 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users

Reply via email to