GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem compiling fortran90 source on itanium ...
Operating System - HP-UX
1852158
Members
7501
Online
104064
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2004 03:02 AM
08-30-2004 03:02 AM
On the Pa-Risc machines the source is compiled well, but on the itanium machine the source is compiled with error !
[iff4:]/root# f90 header.f
header.f
program HEADER
33 Lines Compiled
ld: Unsatisfied symbol "gethostname_" in file header.o
1 errors.
I don´t know why the system call is not working on the itanium machines ?
Regards,
Re
[iff4:]/root# f90 header.f
header.f
program HEADER
33 Lines Compiled
ld: Unsatisfied symbol "gethostname_" in file header.o
1 errors.
I don´t know why the system call is not working on the itanium machines ?
Regards,
Re
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2004 05:46 AM
08-30-2004 05:46 AM
Solution
gethostname() is actually a C routine in
libc. You have to follow the rules for
C<->Fortran linking. Specifically, Fortran
compilers often add underscores to routine
names. You can tell f90 to not add the
underscore by using the +noppu flag.
The reason the behavior is different is
that on PA-RISC 32-bit the default is
"f90 +noppu", while on PA-RISC 64-bit
and on Itanium the default is "f90 +ppu".
In Fortran you should probably use HOSTNM()
anyway. HOSTNM() is a native Fortran routine. (However it's in libU77, so
use "f90 +U77" to access it.)
libc. You have to follow the rules for
C<->Fortran linking. Specifically, Fortran
compilers often add underscores to routine
names. You can tell f90 to not add the
underscore by using the +noppu flag.
The reason the behavior is different is
that on PA-RISC 32-bit the default is
"f90 +noppu", while on PA-RISC 64-bit
and on Itanium the default is "f90 +ppu".
In Fortran you should probably use HOSTNM()
anyway. HOSTNM() is a native Fortran routine. (However it's in libU77, so
use "f90 +U77" to access it.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2004 05:53 AM
08-30-2004 05:53 AM
Re: Problem compiling fortran90 source on itanium machine
Hi Rene,
try to use +noppu option to the f90 compiler on the Itanium machine.
Regards,
Zygmunt
try to use +noppu option to the f90 compiler on the Itanium machine.
Regards,
Zygmunt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2004 06:22 PM
08-30-2004 06:22 PM
Re: Problem compiling fortran90 source on itanium machine
That´s it !
Thanks for your professional help !
Regards,
Re
Thanks for your professional help !
Regards,
Re
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP