Paul,

Paul Pietromonaco wrote:
Hi everyone,

I've been working on the port of Mozilla 1.3 to PlayStation 2 Linux. The port has come along quite nicely, but I think I'm having problems compiling NSS.

I posted a question about this on the netscape.public.mozilla.unix forum, and the suggestion was that I should contact this forum. So, here I am! :)

I think the main issue is the MIPS processor that the PlayStation 2 uses is not recognized by security/coreconf/Linux.mk. The official designation of the processor is a mipsEEel - mips Emotion Engine little endian. However, it should be fairly compatible with MIPS little endian code.

When I set ac_add_options --enable-crypto in my mozconfig file, I get the following output:

gcc -o Linux2.2_x86_glibc_PTH_OPT.OBJ/mpi_x86.o -O2 -fPIC -DLINUX1_2 -Di386 -D_XOPEN_SOURCE -DLIN

You shouldn't be defining things like i386 since you are not targeting an i386 architecture.


There is a C implementation of the mpi library that you can use. It should be used on any platform that we haven't explicitly provided assembly code for. It will of course be a little slower than assembly, but that should get your build going. The performance difference is most visible in server applications rather than client applications, so you may be able to live with it even for the release build.

FYI, on OS/2 we didn't use the assembly code for years in the browser buil, until I found out and fixed it. See http://bugzilla.mozilla.org/show_bug.cgi?id=104740 . This bug has pointers to the files I fixed to get the assembly code linking on OS/2. Of course that was an x86 platform so the changes were minimal.


Reply via email to