Stories
Slash Boxes
Comments
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

use Perl Log In

Log In

[ Create a new account ]

Tuesday October 16, 2007
12:21 PM

Crypt::Rijndael now works on Solaris

[ #34695 ]

It's looks like I've solved the Crypt::Rijndael problems thanks to a patch from djberg96. It looks like some systems had an integer overflow problem with:

0xff << 24

So djberg96 changed that to use an unsigned int by attaching the U to the end of the number. I think I used to know that.

0xffU << 24

Additionally, I cast some return values from the XS stuff to (UINT *) to ensure that everything treated them as unsigned ints.

I hadn't been able to play with Solaris since Sourceforge's compile farm went away, but after elwarren suggested finding a QEMU image of Solaris and a bit of googling on that, I remembered that somewhere on my bookshelf I had Solaris 10 media from their initial offer when they made it open source. It was still shrink-wrapped even. It took me a day to install that because I actually did it three times before I realized that even though I installed the 32-bit version, Solaris was assuming it was 64-bit at boot time, causing panics. I have to fiddle with the VMware image by editing a file in the Mac OS X package (control click on the package, choose "Show Package Contents"). I found the .vmx file and added:

monitor_control.disable_longmode = 1

After that I had a bootable and fully useable Solaris 10. I spent half a day installing almost everything from Sunfreeware.com while I added a minicpan.

Two days after I started, I was able to fetch Crypt-Rijndael-1.04_03, run a clean make with no warnings, and then run the tests with the latest RT test cases passing.

Now I have a decent Solaris 10 virtual machine on which I can test things. It's on an external disk, so I can bring it to conferences to share with anyone who wants it. Anyone got anything good to trade? :)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • On the way to getting VMS running I installed NetBSD/vax under simh-vax - which runs fine on Mac OS via MacPorts. I haven't managed to get simh to bridge to the Mac's network yet.

    I also have Parallels images for XP ( * 3 ), OpenSolaris, FreeBSD, Fiesty and OLPC on my MPB. It's pretty neat - you can basically carry around a whole smoke farm in your backpack :)
    • Oh and I've just built RPCemu under Mac OS so once I grab the ROMs out of my old RiscPC I should be about to run RISC OS Perl too.
      • Does this mean you could run HP-UX? That's another area I'd like to test this module. :)
        • Yeah, I guess so :) I don't *have* HP-UX.
          • You can sign up for the HP test drive program and test it out there.

            www.testdrive.hp.com

            Includes HP-UX, OpenVMS, Tru64, FreeBSD, and various Linux flavors.

            • Yeah, I have a Testdrive account but it doesn't seem to be working at the moment. I'm waiting for word from HP support. But I quite like the idea of being able to carry a little VAX around locally :)
            • Excellent, I have a test drive account now and I've tested the module under the below situation (and it passes all of the tests :). Notice the build of Perl from ActiveState:

              $ uname -a
              HP-UX td194 B.11.31 U ia64 3426292962 unlimited-user license
              $ perl -v
               
              This is perl, v5.8.8 built for IA64.ARCHREV_0-thread-multi
              (with 33 registered patches, see perl -V for more detail)
               
              Copyright 1987-2006, Larry Wall
               
              Binary build 817.1 [268662] provided by ActiveState http://www.activestate.com/
               
              $