Crypt::Rijndael now works on Solaris/x86

brian_d_foy on 2007-10-17T18:01:00

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 for x86. 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 (although not with suncc or anything SPARC). 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? :)


NetBSD/vax ?

AndyArmstrong on 2007-10-17T20:09:26

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 :)

Re:NetBSD/vax ?

AndyArmstrong on 2007-10-17T20:29:35

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.

Re:NetBSD/vax ?

brian_d_foy on 2007-10-17T20:55:13

Does this mean you could run HP-UX? That's another area I'd like to test this module. :)

Re:NetBSD/vax ?

AndyArmstrong on 2007-10-17T21:10:53

Yeah, I guess so :)

I don't *have* HP-UX.

Re:NetBSD/vax ?

djberg96 on 2007-10-17T21:18:54

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.

Re:NetBSD/vax ?

AndyArmstrong on 2007-10-17T21:37:56

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 :)

Re:NetBSD/vax ?

brian_d_foy on 2007-10-17T22:54:28

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/
 
$ cc -V
cc: HP C/aC++ B3910B A.06.14 [Feb 22 2007]