<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Syntax checking using gcc in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644055#M102341</link>
    <description>Check this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://lists.samba.org/archive/samba-technical/2002-September/024194.html" target="_blank"&gt;http://lists.samba.org/archive/samba-technical/2002-September/024194.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;May be a problem with make. &lt;BR /&gt;&lt;BR /&gt;Another way is,&lt;BR /&gt;&lt;BR /&gt;Remote -Werror from,&lt;BR /&gt;&lt;BR /&gt;/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 -&lt;BR /&gt;Werror batchEnquiry.c -o /dev/null&lt;BR /&gt;&lt;BR /&gt;May be it will work.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;</description>
    <pubDate>Fri, 07 Oct 2005 05:02:38 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2005-10-07T05:02:38Z</dc:date>
    <item>
      <title>Syntax checking using gcc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644049#M102335</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am using Itanium 11.23 ia64 which install gcc 4.0.2 and ANSI C.&lt;BR /&gt;&lt;BR /&gt;In our makefile, we use the gcc to check our program syntax and then using ansi c to compile our programs.&lt;BR /&gt;&lt;BR /&gt;But the following messages prompted when we build our programs. Does anyone know the meaning of it ?&lt;BR /&gt;&lt;BR /&gt;/usr/local/lib/gcc/ia64-hp-hpux11.23/4.0.2/include/stdio.h:699: error: conflicting types for 'snprintf'&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patrick</description>
      <pubDate>Fri, 07 Oct 2005 03:50:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644049#M102335</guid>
      <dc:creator>Patrick Chim</dc:creator>
      <dc:date>2005-10-07T03:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax checking using gcc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644050#M102336</link>
      <description>Do you have __STDC__ defined in your make file?</description>
      <pubDate>Fri, 07 Oct 2005 04:37:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644050#M102336</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-10-07T04:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax checking using gcc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644051#M102337</link>
      <description>Can you post your makefile? What is execution result for makefile.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://lists.gnu.org/archive/html/help-cfengine/2004-06/msg00121.html" target="_blank"&gt;http://lists.gnu.org/archive/html/help-cfengine/2004-06/msg00121.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Are you giving reference to library as -l&lt;LIBRARY&gt; then give direct link to that. May be work.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/LIBRARY&gt;</description>
      <pubDate>Fri, 07 Oct 2005 04:38:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644051#M102337</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-07T04:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax checking using gcc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644052#M102338</link>
      <description>Where do you get this error ? Can you post exact details ? &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Fri, 07 Oct 2005 04:46:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644052#M102338</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-10-07T04:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax checking using gcc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644053#M102339</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Below are all the error messages,&lt;BR /&gt;&lt;BR /&gt;mkmf: creating ./Makefile from /opt/cis/scripts/makefile.main&lt;BR /&gt;mkmf: "/usr/include/arpa/inet.h", line 71: can't find "../h/stdsyms.h"&lt;BR /&gt;mkmf: recursive include nesting of "/usr/include/sys/types.h" in "/usr/include/machine/sys/_types.h"&lt;BR /&gt;mkmf: recursive include nesting of "/usr/include/machine/sys/_types.h" in "/usr/include/.unsupp/sys/_types.h"&lt;BR /&gt;mkmf: recursive include nesting of "/usr/include/sys/uio.h" in "/usr/include/sys/file.h"&lt;BR /&gt;mkmf: recursive include nesting of "/usr/include/netinet/in.h" in "/usr/include/netinet/in6.h"&lt;BR /&gt;/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 -&lt;BR /&gt;Werror batchEnquiry.c -o /dev/null&lt;BR /&gt;In file included from batchEnquiry.c:199:&lt;BR /&gt;/usr/local/lib/gcc/ia64-hp-hpux11.23/4.0.2/include/stdio.h:699: error: conflicting types for 'snprintf'&lt;BR /&gt;*** Error code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;make: stopped in /home/cisprod/tt/cis/main/batchEnquiry&lt;BR /&gt;ERROR - could not compile ./batchEnquiry&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patrick</description>
      <pubDate>Fri, 07 Oct 2005 04:55:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644053#M102339</guid>
      <dc:creator>Patrick Chim</dc:creator>
      <dc:date>2005-10-07T04:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax checking using gcc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644054#M102340</link>
      <description>1) Are you using "make" ?If yes, try to compile with gmake. &lt;BR /&gt;&lt;BR /&gt;2) &lt;A href="http://lists.gnu.org/archive/html/bug-cfengine/2003-04/msg00033.html" target="_blank"&gt;http://lists.gnu.org/archive/html/bug-cfengine/2003-04/msg00033.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;May be little tweak in the code could help &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Fri, 07 Oct 2005 04:59:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644054#M102340</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-10-07T04:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax checking using gcc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644055#M102341</link>
      <description>Check this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://lists.samba.org/archive/samba-technical/2002-September/024194.html" target="_blank"&gt;http://lists.samba.org/archive/samba-technical/2002-September/024194.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;May be a problem with make. &lt;BR /&gt;&lt;BR /&gt;Another way is,&lt;BR /&gt;&lt;BR /&gt;Remote -Werror from,&lt;BR /&gt;&lt;BR /&gt;/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 -&lt;BR /&gt;Werror batchEnquiry.c -o /dev/null&lt;BR /&gt;&lt;BR /&gt;May be it will work.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Oct 2005 05:02:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644055#M102341</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-07T05:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax checking using gcc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644056#M102342</link>
      <description>Well, I believe that GCC is trying to tell you that snprintf does not have the return type that GCC thinks it should have.  I tried to reproduce this locally but could not.  If GCC were seeing two conflicting declarations for snprintf, it should give the location of each.  Since it doesn't I think that GCC is saying that the definition it does see is not what it expects based on an internal table of known functions that it has.  Can you look at /usr/local/lib/gcc/ia64-hp-hpux11.23/4.0.2/include/stdio.h and find the declaration of snprintf and tell us what it is?  It should be declared an int function.  It might also be useful to look at /usr/include/stdio.h and find the declaration of snprintf there and see if it is different.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Mon, 10 Oct 2005 10:08:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644056#M102342</guid>
      <dc:creator>Steve Ellcey</dc:creator>
      <dc:date>2005-10-10T10:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax checking using gcc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644057#M102343</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;After changing our coding, we have solved the problem.&lt;BR /&gt;&lt;BR /&gt;In some of our .h file, we add the following lines,&lt;BR /&gt;&lt;BR /&gt;#ifndef __ia64&lt;BR /&gt;:&lt;BR /&gt;:&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;Thanks a lot !&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patrick</description>
      <pubDate>Tue, 11 Oct 2005 19:36:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/syntax-checking-using-gcc/m-p/3644057#M102343</guid>
      <dc:creator>Patrick Chim</dc:creator>
      <dc:date>2005-10-11T19:36:19Z</dc:date>
    </item>
  </channel>
</rss>

