error: redefinition of typedef...


Yukkie poo.

If you want to persevere ... try commenting out those definitions in db.h. If, perchance, win32.h and sys/types.h have already defined those typedefs in a suitable way, then removing those definitions from db.h would work. If they've been defined in such a way that's not compatible with the db.h definitions, then you're probably sunk.(If, having made those amendments to db.h, you then get other *similar* errors, it's probably time to give up.)

At some stage you'll need to make the library files accessible, too. But see how far you get with the above suggestions, first ... if you think it's worth the effort :-)

Btw, libraries built using cygwin will *not* work with strawberry perl unless you build the library on cygwin as a *cross-compilation*. I've had good success cross-compiling libraries (that do work with strawberry) with cygwin by adding
--host=i686-pc-mingw32 --build=i686-pc-cygwin CC='gcc -mno-cygwin ' host_alias=i686-pc-mingw32
arguments to ./configure - though I'm told that not all of those arguments are needed. (As I said, when I tried to cross-compile db, I still got the error relating to socklen_t. But that error does not arise when building for cygwin itself.)

Cheers,
Rob

In reply to Re^10: Disappointed with latest Strawberry Perl by syphilis
in thread Disappointed with latest Strawberry Perl by syphilis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.