<?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: C compiler error in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818104#M100286</link>
    <description>The first warning is easy:&lt;BR /&gt;&lt;BR /&gt;FILE *fopen(), *fp1;&lt;BR /&gt;^&lt;BR /&gt;simply change this to:&lt;BR /&gt;FILE *fp1;&lt;BR /&gt;&lt;BR /&gt;because your unprototyped function declaration reflects a coding that is at least 15 years out of date. fopen is already declared in an included  header file so your declaration is not needed and conflicts with the prior definition.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"SAP718B.c", line 660: warning #2111-D: statement is unreachable&lt;BR /&gt;a=system("date");&lt;BR /&gt;&lt;BR /&gt;This one is more difficult but it is telling you that this statement will never be executed because, for example, it follows an unconditional return or exit or it is enclosed in a condition that is always false.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ld: Mismatched Data ABI. Expected None but found EF_IA_64_ABI64 in file /usr/lib/librfc.a[rfcilib.o]&lt;BR /&gt;Fatal error.&lt;BR /&gt;&lt;BR /&gt;This one is telling you that you have mismatched binaries between your object files and those of this library. This can be the result of not compiling all the objects under the same data model or even mismatched machine types.</description>
    <pubDate>Thu, 06 Jul 2006 10:41:17 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2006-07-06T10:41:17Z</dc:date>
    <item>
      <title>C compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818100#M100282</link>
      <description>Hi. I have this problem, we are migrating from server HP-UX form HP-UX 11.0 64bits PA-RISK to HP-UX 11.23 64bit ia64 integrity server model.&lt;BR /&gt;I have a C program and i receive this error&lt;BR /&gt;&lt;BR /&gt;/libda05/dnpl/source $cc -Ae -lm SAP718B.c -lcl -lcurses -o SAP718B&lt;BR /&gt;"SAP718B.c", line 317: warning #3197-D: the prototype declaration of&lt;BR /&gt;          "FILE *fopen(const char *, const char *)" (declared at line 285 of&lt;BR /&gt;          "/usr/include/stdio.h") is ignored after this unprototyped&lt;BR /&gt;          redeclaration&lt;BR /&gt;     FILE *fopen(), *fp1;&lt;BR /&gt;           ^&lt;BR /&gt;&lt;BR /&gt;"SAP718B.c", line 660: warning #2111-D: statement is unreachable&lt;BR /&gt;        a=system("date");&lt;BR /&gt;        ^&lt;BR /&gt;&lt;BR /&gt;ld: Unsatisfied symbol "RfcReceive" in file SAP718B.o&lt;BR /&gt;ld: Unsatisfied symbol "RfcOpen" in file SAP718B.o&lt;BR /&gt;ld: Unsatisfied symbol "RfcClose" in file SAP718B.o&lt;BR /&gt;ld: Unsatisfied symbol "RfcCall" in file SAP718B.o&lt;BR /&gt;4 errors.&lt;BR /&gt;&lt;BR /&gt;i´ve already put the libraries in the /usr/lib.&lt;BR /&gt;&lt;BR /&gt;The c programs has this line&lt;BR /&gt;RfcRc = RfcReceive hRfc,Importing,Tables,&amp;amp;RfcException);&lt;BR /&gt;&lt;BR /&gt;Please your help to solve the problem.&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jul 2006 19:12:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818100#M100282</guid>
      <dc:creator>Javier Ortiz Guajardo</dc:creator>
      <dc:date>2006-07-05T19:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818101#M100283</link>
      <description>Javier,&lt;BR /&gt;&lt;BR /&gt;Seems like you are not linking your source code to any of the SAP libraries. It is possible that your source code depends on them, more so since this error is being reported by the link-loader (ld), which resolves external dependencies.&lt;BR /&gt;&lt;BR /&gt;~hope it helps</description>
      <pubDate>Wed, 05 Jul 2006 22:27:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818101#M100283</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-07-05T22:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818102#M100284</link>
      <description>Ok i found the library but now i receive the following error&lt;BR /&gt;&lt;BR /&gt;922:/libda05/dnpl/source =&amp;gt; cc -lm SAP718B.c /usr/lib/librfc.a -lcl -lcurses &amp;gt;&lt;BR /&gt;"SAP718B.c", line 317: warning #3197-D: the prototype declaration of&lt;BR /&gt;          "FILE *fopen(const char *, const char *)" (declared at line 285 of&lt;BR /&gt;          "/usr/include/stdio.h") is ignored after this unprototyped&lt;BR /&gt;          redeclaration&lt;BR /&gt;     FILE *fopen(), *fp1;&lt;BR /&gt;           ^&lt;BR /&gt;&lt;BR /&gt;"SAP718B.c", line 660: warning #2111-D: statement is unreachable&lt;BR /&gt;        a=system("date");&lt;BR /&gt;        ^&lt;BR /&gt;&lt;BR /&gt;ld: Mismatched Data ABI. Expected None but found EF_IA_64_ABI64 in file /usr/lib/librfc.a[rfcilib.o]&lt;BR /&gt;Fatal error.&lt;BR /&gt;&lt;BR /&gt;Please your help.&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jul 2006 09:54:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818102#M100284</guid>
      <dc:creator>Javier Ortiz Guajardo</dc:creator>
      <dc:date>2006-07-06T09:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818103#M100285</link>
      <description>Javier,&lt;BR /&gt;&lt;BR /&gt;You have to compile your source in 64-bit mode by supplying the +DD64 switch at the command line i.e.&lt;BR /&gt;&lt;BR /&gt;# cc +DD64 -lm SAP718B.c ...&lt;BR /&gt;&lt;BR /&gt;~hope it helps</description>
      <pubDate>Thu, 06 Jul 2006 10:13:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818103#M100285</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-07-06T10:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818104#M100286</link>
      <description>The first warning is easy:&lt;BR /&gt;&lt;BR /&gt;FILE *fopen(), *fp1;&lt;BR /&gt;^&lt;BR /&gt;simply change this to:&lt;BR /&gt;FILE *fp1;&lt;BR /&gt;&lt;BR /&gt;because your unprototyped function declaration reflects a coding that is at least 15 years out of date. fopen is already declared in an included  header file so your declaration is not needed and conflicts with the prior definition.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"SAP718B.c", line 660: warning #2111-D: statement is unreachable&lt;BR /&gt;a=system("date");&lt;BR /&gt;&lt;BR /&gt;This one is more difficult but it is telling you that this statement will never be executed because, for example, it follows an unconditional return or exit or it is enclosed in a condition that is always false.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ld: Mismatched Data ABI. Expected None but found EF_IA_64_ABI64 in file /usr/lib/librfc.a[rfcilib.o]&lt;BR /&gt;Fatal error.&lt;BR /&gt;&lt;BR /&gt;This one is telling you that you have mismatched binaries between your object files and those of this library. This can be the result of not compiling all the objects under the same data model or even mismatched machine types.</description>
      <pubDate>Thu, 06 Jul 2006 10:41:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818104#M100286</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-06T10:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818105#M100287</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You need to have IA-64 version of the library which you are trying to link. Otherwise, you will receive mismatched ABI error. &lt;BR /&gt;&lt;BR /&gt;Prior to compile, export CFLAGS, CPPFLAGS and LDFLAGS. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Thu, 06 Jul 2006 11:50:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818105#M100287</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-07-06T11:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: ld errors on Integrity</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818106#M100288</link>
      <description>&lt;P&gt;$ cc -lm SAP718B.c /usr/lib/librfc.a -lcl -lcurses&lt;BR /&gt;ld: Mismatched Data ABI. Expected None but found EF_IA_64_ABI64 in file /usr/lib/librfc.a[rfcilib.o]&lt;BR /&gt;&lt;BR /&gt;As Arun says, you need a IPF version of librfc. These would typically be in /usr/lib/hpux32/ or /usr/lib/hpux64/.&lt;BR /&gt;&lt;BR /&gt;If you used -lrfc, the linker would find the right one.&lt;BR /&gt;&lt;BR /&gt;(Note: -lm should be after your .c or .o files.&amp;nbsp; This is why you get that mismatch, it finds the PA libm first.&lt;BR /&gt;Also -lcl should be replaced by -lunwind, unless you need some Fortran libs.)&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2011 07:42:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3818106#M100288</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-11-12T07:42:28Z</dc:date>
    </item>
  </channel>
</rss>

