RE: CALL_EXT with SunOS [message #6968] |
Fri, 06 September 1996 00:00 |
mallozzi
Messages: 60 Registered: August 1994
|
Member |
|
|
Sorry, I forgot to give the fortran compile line:
f77 -c -PIC -w -e -Nl100
| I have a large IDL/FORTRAN package that I've ported to VMS Alpha,
| SGI, and Solaris. When I tried SunOS, CALL_EXTERNAL fails with the
| error
| ld.so: mmap error(22)
-bob
|
|
|
Re: CALL_EXT with SunOS [message #6971 is a reply to message #6968] |
Fri, 06 September 1996 00:00  |
Jeffrey Newmark
Messages: 8 Registered: April 1996
|
Junior Member |
|
|
mallozzi@ssl.msfc.nasa.gov wrote:
>
> Hi all,
> I have a large IDL/FORTRAN package that I've ported to VMS Alpha,
> SGI, and Solaris. When I tried SunOS, CALL_EXTERNAL fails with the
> error
>
> ld.so: mmap error(22)
>
> Does anyone know what would cause this error? The shared image linked
> with no errors or warnings. Compile line was
> cc -O -PIC -c
> and link line was
> ld -o TEST_SHARE $(OBJS) $(LIBS)
>
> Thanks,
> bob
Hi Bob,
I'm not sure about the error message but the compile and link
statements we use are:
cc -pic -fsingle -c test_share
ld -o TEST_SHARE.so -shared test_share.o -assert pure-text
$(OBJS) $(LIBS)
I think the big difference is the -shared option????
have fun,
Jeff Newmark
|
|
|