Problem Installing Perl Module for Berkeley DB
565042Mar 3 2007 — edited Mar 14 2007Hi everybody, I need your help on this problem. First let me explain my system.
I have a windows XP system with ActivePerl 5.8.8 Build 819 installed. In the past, I was able to make and install Perl DBI module DBD-ODBC driver (using nmake) and it work successfully with my database.
Recently I wanted to explore Berkeley DB, so I downloaded and installed the latest version (4.5.20) successfully in the folder: C:\BerkeleyDB. I downloaded the Perl BerkeleyDB module version 0.31 and tried to follow the installation procedure. I changed 3 lines to config.in as follows:
INCLUDE = \BerkeleyDB\include
LIB = \BerkeleyDB\lib
DBNAME = -libdb45
I then executed the commands:
Perl Makefile.PL
nmake
But then receives errors as shown in the following interaction details. Kindly help me out.
Regards,
Danadam.
---interaction details----:
C:\BerkeleyDBPerlDriver>perl Makefile.PL
Set up gcc environment - 3.4.2 (mingw-special)
Parsing config.in...
Looks Good.
Note (probably harmless): No library found for -libdb45
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 BerkeleyDB
C:\BerkeleyDBPerlDriver>nmake
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
cp BerkeleyDB.pm blib\lib\BerkeleyDB.pm
AutoSplitting blib\lib\BerkeleyDB.pm (blib\lib\auto\BerkeleyDB)
cp BerkeleyDB/Hash.pm blib\lib\BerkeleyDB\Hash.pm
cp BerkeleyDB.pod blib\lib\BerkeleyDB.pod
cp BerkeleyDB/Btree.pm blib\lib\BerkeleyDB\Btree.pm
C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -noprototypes -typemap
C:\Perl\lib\ExtUtils\typemap -typemap typemap BerkeleyDB.xs > BerkeleyDB.xsc &&
C:\Perl\bin\perl.exe -MExtUtils::Command -e mv BerkeleyDB.xsc BerkeleyDB.c
gcc -c -I\BerkeleyDB\include -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -
DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPE
RL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -fno-strict-al
iasing -O2 -DVERSION=\"0.31\" -DXS_VERSION=\"0.31\" "-IC:\Perl\lib\CORE"
BerkeleyDB.c
In file included from BerkeleyDB.xs:68:
/BerkeleyDB/include/db.h:99: error: conflicting types for 'ssize_t'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/types.h:104: err
or: previous declaration of 'ssize_t' was here
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.
C:\BerkeleyDBPerlDriver>