Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Problems with the installation of DB_File in WindowsXP

by ayanbiz (Initiate)
on Nov 18, 2011 at 11:09 UTC ( #938785=perlquestion: print w/ replies, xml ) Need Help??
ayanbiz has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install the DB_File in windows xp.I installed Berkeley DB.Then I also modified the config.in file,when I run perl MakeFile.pl i get this....
Set up gcc environment - 3.4.5 (mingw-vista special r3) Parsing config.in... Looks Good. Writing Makefile for DB_File Writing MYMETA.yml
but when I use dmake some error occurs.
Skip blib\lib\DB_File.pm (unchanged) C:/Perl/site/bin/gcc.exe -c -IC:\Berkeley1\include -DNDEBUG -DWIN +32 -D_CONSOLE -DNO_STRICT -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE + -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_USE_32BI +T_TIME_T -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields -O2 + -DVERSION=\"1.824\" -DXS_VERSION=\"1.824\" "-IC:\Perl\lib\COR +E" -D_NOT_CORE -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t version +.c In file included from version.c:30: C:/Berkeley1/include/db.h:143: error: conflicting types for 'ssize_t' C:/Perl/site/lib/auto/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../i +nclude/sys/types.h:104: error: previous declaration of 'ssize_t' was +here dmake.exe: Error code 129, while making 'version.o'
what shall I do?

Comment on Problems with the installation of DB_File in WindowsXP
Select or Download Code
Re: Problems with the installation of DB_File in WindowsXP
by Anonymous Monk on Nov 18, 2011 at 11:55 UTC

    Fix it?

    Use a newer version?

      How do I fix it?Why is it saying "previous declaration of'size_t' was found"?

        How do I fix it?Why is it saying "previous declaration of'size_t' was found"?

        :) Its perl monks, and you don't even say what version of libdb you're using

        I do fine with anything 4 and up

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://938785]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2014-10-25 10:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls