Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • On Strawberry Perl, make fails with the above error from rinjdael.h (line 34). Conflicts with MINGW basetsd.h (line 56).
    • I found the libjpeg and X86Free had similar woes because someone else was defining these types globally. I think MinGW does this in basetsd.h, but in the CVS repository it's in the Attic, so I'm not sure what's going on there. CVS comments are to explain why you did something, people!

      I've uploaded 0.06_03, which first checks for previous definitions before trying to do the typedef. I have to assume, however, that the previous definitions are right unless I want to undef them. For the moment, I'll trust the previous definitions.
      • 0.06_03 still wouldn't build for me. I did some quick hacking to rijndael.h to work around the definitions in a different way and got it to build:

        /* If sys/types doesn't work, *and* something else hasn't defined these,
        * lets do it ourselves.
        * MinGW defines these in win32api/include/basetsd.h, so avoid a conflict

        #ifdef __MINGW_H
        typedef unsigned int UINT32;
        typedef unsigned long UINT32;

        typedef unsigned char UINT8;

        I have no idea if this works elsewhere or screws anything else up, but "w

        • Well, drats. What the heck is MinGW doing? If I don't do anything when it's already defined it fails too. Odd. Maybe I'm doing something wrong.

          I've tried the _MINGW_H trick in 0.06_04, but that seems like the wrong solution, even if it works. That's probably just me, though. I haven't found any programmer's guide to what we should do for this, and the most I found in the Perl sources was in POSIX.xs.