Note (probably harmless): No library found for -lgmp Note (probably harmless): No library found for oldnames.lib Note (probably harmless): No library found for kernel32.lib Note (probably harmless): No library found for user32.lib Note (probably harmless): No library found for gdi32.lib Note (probably harmless): No library found for winspool.lib Note (probably harmless): No library found for comdlg32.lib Note (probably harmless): No library found for advapi32.lib Note (probably harmless): No library found for shell32.lib Note (probably harmless): No library found for ole32.lib Note (probably harmless): No library found for oleaut32.lib Note (probably harmless): No library found for netapi32.lib Note (probably harmless): No library found for uuid.lib Note (probably harmless): No library found for wsock32.lib Note (probably harmless): No library found for mpr.lib Note (probably harmless): No library found for winmm.lib Note (probably harmless): No library found for version.lib Note (probably harmless): No library found for odbc32.lib Note (probably harmless): No library found for odbccp32.lib Note (probably harmless): No library found for msvcrt.lib Writing Makefile for Math::GMP
And the following error with nmake
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
cl -c -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_ST
RICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SY
S -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1 -DVERSION=\"2.03\"
-DXS_VERSION=\"2.03\" "-IC:\Perl\lib\CORE" GMP.c
GMP.c
C:\Perl\lib\CORE\perl.h(380) : fatal error C1083: Cannot open include file: 'sys
/types.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
20040615 Edit by [Corion]: Fixed formatting, added code tags
This is a Perl XS wrapper (C code) that uses the GNU MP library. First read [Practical Guide to Compiling C-based modules under Win32] because your C compiler environment is screwed. You will know it is not FUBAR when you reduce your error messages to:
C:\Math-GMP-2.03>perl Makefile.PL Checking if your kit is complete... Looks good Note (probably harmless): No library found for '-lgmp' Writing Makefile for Math::GMP
At this stage we are missing the gmp library. This error is not harmless! GMP is not easy to compile on Win32. Go to http://www.cs.nyu.edu/exact/core/gmp/. You can get binaries for the .lib you will need here but they did not work for me. You will probably need to go the patch route, compile within VCC....
cheers
tachyon
How did you build your underlying GMP library. It looks like you have probably built/got a dynamic gmp.lib and tried to link against that. See this for an explanation of the difference between static and dynamic linking. But in essence you need to link to a static gmp.lib (which contains all the machine code) so that you can build a gmp.dll (for Perl) that can be dynamically loaded and has all the machine code (aka entry points) it needs.
If this is for Net::SSH::Perl it *may* be possible to simple s/Math::GMP/Math::BigInt/g as these modules are *almost* totally compatible.
Math::GMP was designed to be a drop-in replacement both for Math::BigInt and for regular integer arithmetic.
That may be an easier way to do it for you. If your SSH needs are modest there is plink.exe (google for Putty.exe) which gives you a command line ssh tool you might just be able to control through the shell.
cheers
tachyon
perlmonks.org content © perlmonks.org and Anonymous Monk, Nalina, PodMaster, tachyon
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03