Unix Technical Forum

where to find details about compilation error/warning

This is a discussion on where to find details about compilation error/warning within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hi On HPUX 11.11 and with cc compiler, I have added the +M compilation option. Many warnings as "ANSI ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 06:48 AM
awalter1
 
Posts: n/a
Default where to find details about compilation error/warning

Hi

On HPUX 11.11 and with cc compiler, I have added the +M compilation
option.
Many warnings as "ANSI migration warning 713" are generated on each
procedure call.
Where can I find the meaning of such message and how to solve them
Thanks in advance

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 06:48 AM
Tammy L Morford
 
Posts: n/a
Default Re: where to find details about compilation error/warning

awalter1 wrote:
: On HPUX 11.11 and with cc compiler, I have added the +M compilation option.
: Many warnings as "ANSI migration warning 713" are generated on each
: procedure call.
: Where can I find the meaning of such message and how to solve them

It should be obvious from the message:
713 Function%1$s defined in compatibility style.

This means it is using:
int foo(bar) int bar; { ... }

The correct way to do this is the C/C++/C99 way:
int foo(int bar) { ... }

Unfortunately I don't see warning 713 on:
/opt/ansic/html/guide/C/errors.html
http://docs.hp.com/en/5921/errors.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 06:48 AM
awalter1
 
Posts: n/a
Default Re: where to find details about compilation error/warning

Thanks a lot for the link that I have search for a long time and for
your explanation.

But I get also the message "cpp: "C_From_PC/HAdx_wairpor.c", line 0:
warning 2021:". (with no message text)
and how do you understand that the cpp warning are less and equal to
2018 ?
Best regards


Tammy L Morford a écrit :
> awalter1 wrote:
> : On HPUX 11.11 and with cc compiler, I have added the +M compilation option.
> : Many warnings as "ANSI migration warning 713" are generated on each
> : procedure call.
> : Where can I find the meaning of such message and how to solve them
>
> It should be obvious from the message:
> 713 Function%1$s defined in compatibility style.
>
> This means it is using:
> int foo(bar) int bar; { ... }
>
> The correct way to do this is the C/C++/C99 way:
> int foo(int bar) { ... }
>
> Unfortunately I don't see warning 713 on:
> /opt/ansic/html/guide/C/errors.html
> http://docs.hp.com/en/5921/errors.html


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 06:48 AM
awalter1
 
Posts: n/a
Default Re: where to find details about compilation error/warning

Thanks a lot for the link that I have search for a long time and for
your explanation.

But I get also the message "cpp: "C_From_PC/HAdx_wairpor.c", line 0:
warning 2021:". (with no message text)
and how do you understand that the cpp warning are less and equal to
2018 ?
Best regards


Tammy L Morford a écrit :
> awalter1 wrote:
> : On HPUX 11.11 and with cc compiler, I have added the +M compilation option.
> : Many warnings as "ANSI migration warning 713" are generated on each
> : procedure call.
> : Where can I find the meaning of such message and how to solve them
>
> It should be obvious from the message:
> 713 Function%1$s defined in compatibility style.
>
> This means it is using:
> int foo(bar) int bar; { ... }
>
> The correct way to do this is the C/C++/C99 way:
> int foo(int bar) { ... }
>
> Unfortunately I don't see warning 713 on:
> /opt/ansic/html/guide/C/errors.html
> http://docs.hp.com/en/5921/errors.html


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 06:50 AM
Dennis Handly
 
Posts: n/a
Default Re: where to find details about compilation error/warning

awalter1 wrote:
> Thanks a lot for the link that I have search for a long time and for
> your explanation.


Something is wrong with your installation. What is the value of
NLSPATH? If this is corrected you'll see the text of the messages.

> But I get also the message "cpp: "C_From_PC/HAdx_wairpor.c", line 0:
> warning 2021:". (with no message text)
> and how do you understand that the cpp warning are less and equal to
> 2018?


I believe I mentioned that before:
$ dumpmsg /usr/lib/nls/msg/C/cpp.cat | fgrep 2021
2021 warning %1$d: Possibly incorrect message catalog.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 06:50 AM
awalter1
 
Posts: n/a
Default Re: where to find details about compilation error/warning


> I believe I mentioned that before:
> $ dumpmsg /usr/lib/nls/msg/C/cpp.cat | fgrep 2021
> 2021 warning %1$d: Possibly incorrect message catalog.


Interesting command
Thanks

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 02:43 PM.


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