perl call fortran

---559023410-33463914-1304285714=:25754
Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-ID: <Pine.SOC.4.63.1105012235301.25754 [at] unix0.york.ac.uk>


Hello,

Is perl able to load a fortran subroutine ?

I have no problem to make a c code callable by gcc (xs)
I can call a fortran routine from a c program.
But perl fails to load a so library linked with a piece of fortran.

The error is:
cannot restore segment prot after reloc: Permission denied at
/usr/lib/perl5/DynaLoader.pm line 200.


Is there any solution ?
Linker options ?

Thank

--
---
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D
Patrick DUPR=C3=89 | |
Department of Chemistry | | Phone: (44)-(0)-1904-434384
The University of York | | Fax: (44)-(0)-1904-432516
Heslington | |
York YO10 5DD United Kingdom | | email: patrick.dupre [at] york.ac.uk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D

---559023410-33463914-1304285714=:25754
Content-Type: text/plain; charset=us-ascii

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/

---559023410-33463914-1304285714=:25754--
Patrick Dupre [ So, 01 Mai 2011 23:36 ] [ ID #2059025 ]

Re: perl call fortran

--001485e5258840598104a23fc845
Content-Type: text/plain; charset=ISO-8859-1

On Sun, May 1, 2011 at 14:36, Patrick Dupre <patrick.dupre [at] york.ac.uk>wrote:

>
> Hello,
>
> Is perl able to load a fortran subroutine ?
>
> I have no problem to make a c code callable by gcc (xs)
> I can call a fortran routine from a c program.
> But perl fails to load a so library linked with a piece of fortran.
>
> The error is:
> cannot restore segment prot after reloc: Permission denied at
> /usr/lib/perl5/DynaLoader.pm line 200.
>
>
> Is there any solution ?
> Linker options ?
>
>
I don't know if this supports Fortran, but the "Inline" module from CPAN
works great with C and with Tcl. Maybe it work with Fortran :out of the
box"; maybe it can work with some "tweaking".

HTH,
Ken Wolcott

--001485e5258840598104a23fc845--
Kenneth Wolcott [ Mo, 02 Mai 2011 02:05 ] [ ID #2059027 ]

Re: perl call fortran

---559023410-1932422408-1304297425=:25754
Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Sun, 1 May 2011, Kenneth Wolcott wrote:

> On Sun, May 1, 2011 at 14:36, Patrick Dupre <patrick.dupre [at] york.ac.uk>wro=
te:
>
>>
>> Hello,
>>
>> Is perl able to load a fortran subroutine ?
>>
>> I have no problem to make a c code callable by gcc (xs)
>> I can call a fortran routine from a c program.
>> But perl fails to load a so library linked with a piece of fortran.
>>
>> The error is:
>> cannot restore segment prot after reloc: Permission denied at
>> /usr/lib/perl5/DynaLoader.pm line 200.
>>
>>
>> Is there any solution ?
>> Linker options ?
>>
>>
> I don't know if this supports Fortran, but the "Inline" module from CPAN
> works great with C and with Tcl. Maybe it work with Fortran :out of the
> box"; maybe it can work with some "tweaking".
>
OK, do yo be worry. I found the problem. it is due to SELinux.
I have to find a chcon -t texrel_shlib_t
every time that I reisntall the library.
I need to find another option because I do not know how to tell
the the Makefile.PL howto execute the
chcon -t texrel_shlib_t
Maybe there is an option !

--
---
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D
Patrick DUPR=C3=89 | |
Department of Chemistry | | Phone: (44)-(0)-1904-434384
The University of York | | Fax: (44)-(0)-1904-432516
Heslington | |
York YO10 5DD United Kingdom | | email: patrick.dupre [at] york.ac.uk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D

---559023410-1932422408-1304297425=:25754
Content-Type: text/plain; charset=us-ascii

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/

---559023410-1932422408-1304297425=:25754--
Patrick Dupre [ Mo, 02 Mai 2011 02:50 ] [ ID #2059031 ]
Perl » gmane.comp.lang.perl.beginners » perl call fortran

Vorheriges Thema: Password reset for unix
Nächstes Thema: How to Generate An Expression to A LOL?