- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Syntax checking using gcc
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
Community
Resources
Forums
Blogs
- 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
10-06-2005 08:50 PM
10-06-2005 08:50 PM
Syntax checking using gcc
I am using Itanium 11.23 ia64 which install gcc 4.0.2 and ANSI C.
In our makefile, we use the gcc to check our program syntax and then using ansi c to compile our programs.
But the following messages prompted when we build our programs. Does anyone know the meaning of it ?
/usr/local/lib/gcc/ia64-hp-hpux11.23/4.0.2/include/stdio.h:699: error: conflicting types for 'snprintf'
Regards,
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 09:37 PM
10-06-2005 09:37 PM
Re: Syntax checking using gcc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 09:38 PM
10-06-2005 09:38 PM
Re: Syntax checking using gcc
http://lists.gnu.org/archive/html/help-cfengine/2004-06/msg00121.html
Are you giving reference to library as -l
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 09:46 PM
10-06-2005 09:46 PM
Re: Syntax checking using gcc
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 09:55 PM
10-06-2005 09:55 PM
Re: Syntax checking using gcc
Below are all the error messages,
mkmf: creating ./Makefile from /opt/cis/scripts/makefile.main
mkmf: "/usr/include/arpa/inet.h", line 71: can't find "../h/stdsyms.h"
mkmf: recursive include nesting of "/usr/include/sys/types.h" in "/usr/include/machine/sys/_types.h"
mkmf: recursive include nesting of "/usr/include/machine/sys/_types.h" in "/usr/include/.unsupp/sys/_types.h"
mkmf: recursive include nesting of "/usr/include/sys/uio.h" in "/usr/include/sys/file.h"
mkmf: recursive include nesting of "/usr/include/netinet/in.h" in "/usr/include/netinet/in6.h"
/usr/local/bin/gcc -DDOTC_SRC -I/informix/incl -I/informix/incl/esql -I/opt/cis/prod/src -I. -I. -S -O2 -Wall -Wno-unknown-pragmas -
Werror batchEnquiry.c -o /dev/null
In file included from batchEnquiry.c:199:
/usr/local/lib/gcc/ia64-hp-hpux11.23/4.0.2/include/stdio.h:699: error: conflicting types for 'snprintf'
*** Error code 1
Stop.
make: stopped in /home/cisprod/tt/cis/main/batchEnquiry
ERROR - could not compile ./batchEnquiry
Regards,
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 09:59 PM
10-06-2005 09:59 PM
Re: Syntax checking using gcc
2) http://lists.gnu.org/archive/html/bug-cfengine/2003-04/msg00033.html
May be little tweak in the code could help
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 10:02 PM
10-06-2005 10:02 PM
Re: Syntax checking using gcc
http://lists.samba.org/archive/samba-technical/2002-September/024194.html
May be a problem with make.
Another way is,
Remote -Werror from,
/usr/local/bin/gcc -DDOTC_SRC -I/informix/incl -I/informix/incl/esql -I/opt/cis/prod/src -I. -I. -S -O2 -Wall -Wno-unknown-pragmas -
Werror batchEnquiry.c -o /dev/null
May be it will work.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2005 03:08 AM
10-10-2005 03:08 AM
Re: Syntax checking using gcc
The reason this is an error, of course, is your use of -Werror which turns warnings into errors. But I assume you want this flag because you are specifically using GCC for error checking your code.
Also, was this version of GCC downloaded from somewhere or did you build it yourself? Knowning where it came from might help figure out what is going on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2005 12:36 PM
10-11-2005 12:36 PM
Re: Syntax checking using gcc
After changing our coding, we have solved the problem.
In some of our .h file, we add the following lines,
#ifndef __ia64
:
:
#endif
Thanks a lot !
Regards,
Patrick