Subject: | Generated Makefile contains syntax error with missing } |
C:\martin\DBD-ODBC-1.15>perl --version
This is perl, v5.10.0 built for MSWin32-x86-multi-thread
C:\martin\DBD-ODBC-1.15>perl -MExtUtils::MakeMaker -le "print
$ExtUtils::MakeMak
er::VERSION;"
6.42
Run perl Makefile.PL for DBD::ODBC and then nmake and it fails like this:
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e cp Changes blib\l
ib\DBD\ODBC\Changes.pm
syntax error at -e line 1, next char )
Missing right curly or square bracket at -e line 1, at end of line
Execution of -e aborted due to compilation errors.
NMAKE : fatal error U1077: 'C:\strawberry\perl\bin\perl.exe' : return
code '0xff
'
Stop.
The command being executed is:
C:\strawberry\perl\bin\perl.exe -MExtUtils::Install -e "pm_to_blib({{@A
RGV}, 'blib\lib\auto', '')" -- ODBC.pm blib\lib\DBD\ODBC.pm
notice the double {{.
I believe the error is in the generated Makefile which contains these lines:
ECHO = $(ABSPERLRUN) -l -e "print qq{{@ARGV}" --
ECHO_N = $(ABSPERLRUN) -e "print qq{{@ARGV}" --
MOD_INSTALL = $(ABSPERLRUN) -MExtUtils::Install -e "install({{@ARGV},
'$(VERBINST)', 0, '$(UNINST)');" --
$(NOECHO) $(ABSPERLRUN) -MExtUtils::Install -e "pm_to_blib({{@ARGV},
'$(INST_LIB)\auto', '$(PM_FILTER)')" -- \
ODBC.pm $(INST_LIB)\DBD\ODBC.pm
Of course, this may be an issue with DBD::ODBC's Makefile.PL but if it
is I cannot see it.
Please let me know if there is anything else required.
Martin
--
Martin J. Evans
Wetherby, UK