Subject: Re: perl?
To: None <, port-pmax@NetBSD.ORG>
From: D. Sean Davidson <>
List: port-pmax
Date: 08/14/1997 14:03:55
> Has anyone compiled perl (and got it to pass all/most of the tests)?
> Do you have the you used, if you did get it to work right?
> Tracy J. Di Marco White 

There seems to be a problem somewhere that I can't pinpoint.

The ./src/lib/libc/arch/mips/gen/modf.S code won't work when linked
with the shared library /usr/ but will with the static library
/usr/libc.a.  The following code proves this and I put in a bug report
on it:

	#include <math.h>

        	double num0, num1, num2;

        	num1 = 1.6789;
        	num2 = 1.1234;
        	printf("num1 / num2 = %f\n", (num1 / num2));
        	(void) modf((num1 / num2), &num0);
        	printf("num0 = %f\n", num0);

I have run into the same type of situation with rename which is used in
the copyfile perl test.

If you build perl with the static versions of modf.o and rename.o from
libc.a, perl5.004_02 will pass all tests.

Here is a static config that works fine.

sh Configure -des \
        -Uusedl \
        -Ud_dlopen \
        -Ud_dlerror \
        -Ddlsrc='dl_none.xs' \
        -Dso='none' \
        -Ddlext='none' \
        -Dldflags='-static' \

I've been trying to get a config that will work with the shared libraries
and replace the modf and rename functions but haven't got that to work yet.