Unix Technical Forum

FORTRAN I/O ERROR...but I ain't using it.

This is a discussion on FORTRAN I/O ERROR...but I ain't using it. within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> I have a "c" program that is throwing: FORTRAN I/O ERROR 901: NEGATIVE UNIT NUMBER SPECIFIED However, I am ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 06:02 AM
Robert Hicks
 
Posts: n/a
Default FORTRAN I/O ERROR...but I ain't using it.

I have a "c" program that is throwing:

FORTRAN I/O ERROR 901: NEGATIVE UNIT NUMBER SPECIFIED

However, I am not using FORTRAN in my application. Does libc borrow
from it somehow on the HP?

Robert

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 06:02 AM
all mail refused
 
Posts: n/a
Default Re: FORTRAN I/O ERROR...but I ain't using it.

On 2007-07-30, Robert Hicks <sigzero@gmail.com> wrote:

> I have a "c" program that is throwing:
>
> FORTRAN I/O ERROR 901: NEGATIVE UNIT NUMBER SPECIFIED
>
> However, I am not using FORTRAN in my application. Does libc borrow
> from it somehow on the HP?


Look for a negative file descriptor number e.g if open() has returned
-1 and you have used it without checking for that invalid value.

No idea why it has chosen a Fortran message.

--
Elvis Notargiacomo master AT barefaced DOT cheek
http://www.notatla.org.uk/goen/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 06:02 AM
Ulrich Windl
 
Posts: n/a
Default Re: FORTRAN I/O ERROR...but I ain't using it.

Robert Hicks <sigzero@gmail.com> writes:

> I have a "c" program that is throwing:
>
> FORTRAN I/O ERROR 901: NEGATIVE UNIT NUMBER SPECIFIED
>
> However, I am not using FORTRAN in my application. Does libc borrow
> from it somehow on the HP?


Maybe get "tusc" and trace your program to find where that message comes
from. Are you linking a FORTRAN library?

>
> Robert

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 06:02 AM
Robert Hicks
 
Posts: n/a
Default Re: FORTRAN I/O ERROR...but I ain't using it.

On Jul 31, 3:19 am, Ulrich Windl <Ulrich.Wi...@RZ.Uni-Regensburg.DE>
wrote:
> Robert Hicks <sigz...@gmail.com> writes:
> > I have a "c" program that is throwing:

>
> > FORTRAN I/O ERROR 901: NEGATIVE UNIT NUMBER SPECIFIED

>
> > However, I am not using FORTRAN in my application. Does libc borrow
> > from it somehow on the HP?

>
> Maybe get "tusc" and trace your program to find where that message comes
> from. Are you linking a FORTRAN library?
>
>
>
> > Robert


Nope, no FORTRAN at all.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 06:02 AM
Frank Slootweg
 
Posts: n/a
Default Re: FORTRAN I/O ERROR...but I ain't using it.

Robert Hicks <sigzero@gmail.com> wrote:
> On Jul 31, 3:19 am, Ulrich Windl <Ulrich.Wi...@RZ.Uni-Regensburg.DE>
> wrote:
> > Robert Hicks <sigz...@gmail.com> writes:
> > > I have a "c" program that is throwing:

> >
> > > FORTRAN I/O ERROR 901: NEGATIVE UNIT NUMBER SPECIFIED

> >
> > > However, I am not using FORTRAN in my application. Does libc borrow
> > > from it somehow on the HP?

> >
> > Maybe get "tusc" and trace your program to find where that message comes
> > from. Are you linking a FORTRAN library?
> >
> > > Robert

>
> Nope, no FORTRAN at all.


Please post the verbose output from the linker (ld(1)).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:52 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com