I've previously documented the process "Building Enigmail for SeaMonkey in Ubuntu 8.10" and the problems which I had to solve to get a working system.
I then went on to build an AMD64 build of the Enigmail plugin as I'm using the AMD64 install of Ubuntu 8.10. And, of course, I started off by following my earlier recipe to build the i686 32-bit version.
This went well, until I installed Enigmail, where I encountered an error that indicated the enigmime modules was unavailable.
After a little digging around I noted that the enigmime module, which is built as a shared library (libenigmime.so) in Linux is found in a directory named "platform/Linux_x86_64-gcc/components" whereas in the 32-bit build it is located in the "platform/Linux_x86-gcc3/components" directory. I also noted an error in the install.log - ** platform dependent directory does not exist: -214 - which indicated that something was broken.
I found that it is the genxpi script (found in the root of the enigmail package) which is responsible for generating the install.js script which is used to install the components from the engmail.xpi into SeaMonkey.
I added the line
const ABI_PLATFORM_LINUX64="Linux_x86_64-gcc3"
immediately after the definition of ABI_PLATFORM_LINUX
A little further down in the script I added :
addDirectory("", "platform/"+ABI_PLATFORM_LINUX64+"/components", fComponents, "");
immediately after addDirectory("", "platform/"+ABI_PLATFORM_LINUX+"/components", fComponents, "");
I then re-made the enigmail package, re-installed and all was well in the Enigmail world!
You can download my updated genxpi script. and the Enigmail xpi