DBD::Informix Win32 Build problem

From: Nikolay Ananiev (hallmall_at_3dzone-bg.com)
Date: 06/26/04


To: dbi-users@perl.org
Date: Sat, 26 Jun 2004 12:09:21 +0300

OS: Win 2000 Advanced Server
Perl: ActivePerl 5.8.3
DBI 1.42
DBD::Informix 2003.04
IDS 9.30
Client SDK 2.81
Compiler: Visual Studio .NET

Makefile is generated with no problems but when I run nmake i get this:

        INFORMIXC='E:\Sites\Perl\bin\perl.exe esqlld'
ESQLLD='link -dll -nologo
-nodefaultlib -debug -opt:ref,icf -libpath:"E:\Sites\Perl\lib\CORE" -machi
ne:x
86' -out:blib\arch\auto\DBD\Informix\Informix.dll -dll -nologo -nodefaultli
b -d
ebug -opt:ref,icf -libpath:"E:\Sites\Perl\lib\CORE" -machine:x86
Informix.obj
dbdimp.obj dbdattr.obj sqltoken.obj sqltype.obj ixblob.obj decsci.obj
odbctype.o
bj link.obj esqlcver.obj esqlc_v6.obj
/LIBPATH:E:\Sites\Servers\Informix\Client-
SDK/lib /LIBPATH:E:\Sites\Servers\Informix\Client-SDK/lib/esql
"E:\Site
s\Servers\Informix\Client-SDK\\lib\isqlt09a.lib"
"E:\Sites\Servers\Informix\Clie
nt-SDK\\lib\igl4n304.lib"
"E:\Sites\Servers\Informix\Client-SDK\\lib\iglxn304.li
b" "E:\Sites\Servers\Informix\Client-SDK\\lib\igo4n304.lib" netapi32.lib
wsock32
.lib user32.lib winmm.lib E:\Sites\Perl\lib\CORE\perl58.lib oldnames.lib
kernel
32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib
ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib
ver
sion.lib odbc32.lib odbccp32.lib msvcrt.lib -def:Informix.def
'INFORMIXC' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'INFORMIXC='E:\Sites\Perl\bin\perl.exe' : return
code
 '0x1'
Stop.

I read that INFORMIXC is an environment variable but it is set like this is
bash script.
My solution was to edit Makefile and change line 16 from
LD => q[INFORMIXC= to LD => q[set INFORMIXC=

and line 42 from LD = INFORMIXC= to LD = set INFORMIXC=

then it builds fine. I don't know where to edit Makefile.pl to generate the
right Makefile.



Relevant Pages

  • Re: Makefile and VStudio
    ... First, Visual Studio uses a different flavor of make, called nmake. ... good reference here: ... I attempted to create a makefile for my projects a few years ... I just wanted to build everything from a command line, ...
    (microsoft.public.vstudio.general)
  • Re: gcc compiler flags on solaris
    ... also compile using Visual Studio and Borland ... we also use HP aCC (a formerly leading edge C++ compiler that ... is there an easy way to get a UNIX Makefile running with Visual Studio? ...
    (comp.unix.solaris)
  • Re: gcc compiler flags on solaris
    ... also compile using Visual Studio and Borland ... is there an easy way to get a UNIX Makefile running with Visual Studio? ...
    (comp.unix.solaris)
  • Re: Command line compiler
    ... Makefiles--people would come to me to get their makefile problems fixed...) ... Visual Studio .NET 2003\Vc7\bin ... When I ran the cl command from the command ... I've read that there's a command line VC++ compiler called cl.exe, ...
    (microsoft.public.vc.mfc)
  • Re: Makefile and VStudio
    ... > First, Visual Studio uses a different flavor of make, called nmake. ... I started with Project | Export Makefile ... ... I think I need to update the compiler to 7.1... ... another headache which I cannot find anywhere.. ...
    (microsoft.public.vstudio.general)