Subject: | Problems trying to compile for Windows |
Date: | Wed, 12 Mar 2014 19:15:38 -0400 |
To: | bug-Math-Pari [...] rt.cpan.org |
From: | Matthew.Persico [...] lazard.com |
This is not much of a bug report, but has anyone seen this error trying to
compile on Windows before I start going down the rabbit hole trying to
figure it out?
Here's the compile error:
cl -c -I ../pari-2.1.7/src -I ../pari-2.1.7/src/headers -I
../pari-2.1.7/src/graph -I . -nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -DWIN32
-D_CONSOLE -DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE
-D_CRT_NONSTDC_NO_DEPRECATE -DPERL_TEXTMODE_SCRIPTS
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERLDLL -O1 -MD
-Zi -DNDEBUG -DVERSION=\"\" -DXS_VERSION=\"\" -Derr=pari_err
-DDYNAMIC_PLOTTING -Fohighlvl.obj ../pari-2.1.7/src/gp/highlvl.c
highlvl.c
C:\Program Files (x86)\Windows Kits\8.0\include\um\winuser.h(11304) :
error C2146: syntax error : missing ')' before identifier 'gpsi'
C:\Program Files (x86)\Windows Kits\8.0\include\um\winuser.h(11304) :
error C2061: syntax error : identifier 'gpsi'
C:\Program Files (x86)\Windows Kits\8.0\include\um\winuser.h(11304) :
error C2059: syntax error : ';'
C:\Program Files (x86)\Windows Kits\8.0\include\um\winuser.h(11304) :
error C2059: syntax error : ','
C:\Program Files (x86)\Windows Kits\8.0\include\um\winuser.h(11305) :
error C2059: syntax error : ')'
C:\Program Files (x86)\Windows Kits\8.0\include\um\winuser.h(11313) :
error C2146: syntax error : missing ')' before identifier 'gpsi'
C:\Program Files (x86)\Windows Kits\8.0\include\um\winuser.h(11313) :
error C2061: syntax error : identifier 'gpsi'
C:\Program Files (x86)\Windows Kits\8.0\include\um\winuser.h(11313) :
error C2059: syntax error : ';'
C:\Program Files (x86)\Windows Kits\8.0\include\um\winuser.h(11313) :
error C2059: syntax error : ')'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 11.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
----------------------------------------------------------------
The snippet of header that is a problem (which I don't understand because
there is no gpsi anywhere):
typedef struct tagSCROLLINFO
{
UINT cbSize;
UINT fMask;
int nMin;
int nMax;
UINT nPage;
int nPos;
int nTrackPos;
} SCROLLINFO, FAR *LPSCROLLINFO;
typedef SCROLLINFO CONST FAR *LPCSCROLLINFO;
WINUSERAPI
int
WINAPI
SetScrollInfo(
_In_ HWND hwnd,
_In_ int nBar,
_In_ LPCSCROLLINFO lpsi, // <=11304
_In_ BOOL redraw);// <=11305
WINUSERAPI
BOOL
WINAPI
GetScrollInfo(
_In_ HWND hwnd,
_In_ int nBar,
_Inout_ LPSCROLLINFO lpsi); // <= 11313
-----------------------------------------------------------------------------------------------------
Here's the Perl info:
E:\perlbuild\tools>perl -V
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
Platform:
osname=MSWin32, osvers=6.1, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -DWIN32
-D_CONSOLE -DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE
-D_CRT_NONSTDC_NO_DEPRECATE -DPERL_TEXTMODE_SCRIPTS
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO',
optimize='-O1 -MD -Zi -DNDEBUG',
cppflags='-DWIN32'
ccversion='17.00.50727.1', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf
-libpath:"e:\perl-5.18.2_20140218\lib\MSWin32-x86-multi-thread\CORE"
-machine:x86 "/manifestdependency:type='Win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
processorArchitectur
e='*' publicKeyToken='6595b64144ccf1df' language='*'"'
libpth="c:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib"
libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib
odbccp32.lib comctl32.lib msvcrt.lib
perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib
uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib
comctl32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl518.lib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug
-opt:ref,icf
-libpath:"e:\perl-5.18.2_20140218\lib\MSWin32-x86-multi-thread\CORE"
-machine:x86 "/manifestdependency:type='Win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processor
Architecture='*' publicKeyToken='6595b64144ccf1df' language='*'"'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PERL_PRESERVE_IVUV
PERL_SAWAMPERSAND
USE_ITHREADS USE_LARGE_FILES USE_LOCALE
USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
Built under MSWin32
Compiled at Feb 18 2014 15:26:52
@INC:
e:/perl-5.18.2_20140218/site/lib/MSWin32-x86-multi-thread
e:/perl-5.18.2_20140218/site/lib
e:/perl-5.18.2_20140218/lib/MSWin32-x86-multi-thread
e:/perl-5.18.2_20140218/lib
.
----------------------------------------------------------------------------------
And the compiler info:
E:\perlbuild\tools>cl
Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
And the windows info
E:\perlbuild\tools>ver
Microsoft Windows [Version 6.1.7601] (Windows 2008 R2 Sp1)
--
Matthew O. Persico
Lazard
30 Rockefeller Plaza
New York, NY 10112
212 632 6136
Message body is not shown because it is too large.