<?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: ld: Mismatched ABI (not an ELF file) for -lcli in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ld-mismatched-abi-not-an-elf-file-for-lcli/m-p/4013779#M96447</link>
    <description>Even though you have "+DA2.0W" mode for 64-bit compilation it might be better to replace it with "+DD64". See if that helps in compiling the application in 64-bit mode.</description>
    <pubDate>Tue, 05 Jun 2007 15:09:07 GMT</pubDate>
    <dc:creator>Sandman!</dc:creator>
    <dc:date>2007-06-05T15:09:07Z</dc:date>
    <item>
      <title>ld: Mismatched ABI (not an ELF file) for -lcli</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-mismatched-abi-not-an-elf-file-for-lcli/m-p/4013778#M96446</link>
      <description>We are migrating to a new version of our C compiler. When I compile the existing application, the error 'Mismatched ABI (not an ELF file) for -lcli' stops the compile. (error display is below). I am new to C and I really don't know what the -lcli is referring to.&lt;BR /&gt;&lt;BR /&gt;Can someone help?  I've also attached the makefile information (see below - Makefile.autocorr.ora8)&lt;BR /&gt;&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;error display&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;Pro*C/C++: Release 10.2.0.3.0 - Production on Tue Jun 5 15:54:04 2007&lt;BR /&gt;&lt;BR /&gt;(taxsun05:rgreen):ca10:&amp;gt; make -f Makefile.autocorr.ora8 autocorr&lt;BR /&gt;        if [ "" = "shared" ]; then \&lt;BR /&gt;        /u21/oracle/product/102030_64/bin/echodo cc    +DA2.0W +DS2.0 -DSS_64BIT_SERVER -I. -I/u21/oracle/product/102030_64/precomp/public -I\&lt;BR /&gt;        else \&lt;BR /&gt;        /u21/oracle/product/102030_64/bin/echodo cc    +DA2.0W +DS2.0 -DSS_64BIT_SERVER -I. -I/u21/oracle/product/102030_64/precomp/public -I\&lt;BR /&gt;        fi&lt;BR /&gt;cc +DA2.0W +DS2.0 -DSS_64BIT_SERVER -I. -I/u21/oracle/product/102030_64/precomp/public -I/u21/oracle/product/102030_64/rdbms/public -I/u21/ord&lt;BR /&gt;ld: Mismatched ABI (not an ELF file) for -lcli&lt;BR /&gt;Fatal error.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;Makefile.autocorr.ora8 &lt;BR /&gt;--------------------------------------------&lt;BR /&gt;.SUFFIXES : .pc  .o  .c .h&lt;BR /&gt;&lt;BR /&gt;#(DPM) SHELL=/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;include $(ORACLE_HOME)/precomp/lib/env_precomp.mk&lt;BR /&gt;&lt;BR /&gt;# Uncomment line below for AIX&lt;BR /&gt;# Added "-Ae" for HP 03.01.1999, S. Bottle&lt;BR /&gt;#MYCFLAGS = -Ae -O -DCACS_ORA -g -DDEBUG&lt;BR /&gt;MYCFLAGS = -Ae -O -DCACS_ORA&lt;BR /&gt;# Uncomment line below for SUN&lt;BR /&gt;#KSSUN MYCFLAGS = -DCACS_ORA -DCACS_SUN -D__EXTENSIONS__ #-g -DDEBUG&lt;BR /&gt;&lt;BR /&gt;PROC_INCLUDE= INCLUDE=$(PRECOMPHOME)public INCLUDE=$(RDBMSHOME)public INCLUDE=$(RDBMSHOME)demo INCLUDE=$(PLSQLHOME)public INCLUDE=$(NETWORKHOME)public&lt;BR /&gt;MYPROCFLAGS= DEFINE=CACS_ORA SQLCHECK=SEMANTICS MODE=ANSI LINES=YES CHAR_MAP=VARCHAR2 DBMS=V8 USERID=${CACS_USER}/${CACS_PASSWD} $(PROC_INCLUDE) &lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;# Makefile for Auto Correspondence (used in CACSPlus)&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;MATHLIBS = -lm&lt;BR /&gt;DRMLIB  = -L./   -lcli&lt;BR /&gt;INCLUDE_DIR=./&lt;BR /&gt;&lt;BR /&gt;DEVTTLIBS=$(TTLIBS)&lt;BR /&gt;CLIBS=$(TTLIBS_QA) $(LDBLIBS)&lt;BR /&gt;LDSTRING=&lt;BR /&gt;PRODUCT_LIBHOME=&lt;BR /&gt;NETWORKHOME=$(ORACLE_HOME)/network/&lt;BR /&gt;PLSQLHOME=$(ORACLE_HOME)/plsql/&lt;BR /&gt;I_SYM=-I&lt;BR /&gt;INCLUDE=$(I_SYM). $(I_SYM)$(PRECOMPHOME)public $(I_SYM)$(RDBMSHOME)public $(I_SYM)$(RDBMSHOME)demo $(I_SYM)$(PLSQLHOME)public $(I_SYM)$(NETWORKHOME)public&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Application specific definitions&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;OBJECTS = autocorr.o gendoc.o getdoc.o getaddr.o logmsg.o utils_corr.o dbio.o runtime.o docinfo.o drm.o guidrm.o savedoc.o crehist.o pandi.o log_err.o&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;.pc.o :&lt;BR /&gt; $(PROC) $(MYPROCFLAGS) $(PROCFLAGS) iname=$* &lt;BR /&gt; $(CC) $(MYCFLAGS) $(CFLAGS) -c  $*.c || rm -f $*.c&lt;BR /&gt; -rm -f $*.c &lt;BR /&gt;&lt;BR /&gt;.c.o :&lt;BR /&gt; $(CC) $(MYCFLAGS) $(CFLAGS)  -c  $*.c&lt;BR /&gt;&lt;BR /&gt;autocorr: $(OBJECTS) &lt;BR /&gt;# Uncomment lines below for AIX&lt;BR /&gt; if [ "$(ORA_CLIENT_LIB)" = "shared" ]; then \&lt;BR /&gt; $(ECHODO) $(CC) $(CFLAGS) $(MYCFLAGS) -o autocorr $(OBJECTS) $(MATHLIBS) $(DRMLIB) -L$(LIBHOME) $(LIBCLNTSH); \&lt;BR /&gt; else \&lt;BR /&gt; $(ECHODO) $(CC) $(CFLAGS) $(MYCFLAGS) -o autocorr $(OBJECTS) $(MATHLIBS) $(DRMLIB) -L$(LIBHOME) $(LIBMM) $(NAEDHS) $(NAETAB) $(SYSLIBS) $(PROLDLIBS); \&lt;BR /&gt; fi&lt;BR /&gt;# Uncomment lines below for KSSUN&lt;BR /&gt;# if [ "$(ORA_CLIENT_LIB)" = "shared" ]; then \&lt;BR /&gt;# $(ECHODO) $(CC) $(CFLAGS) -o autocorr $(OBJECTS) $(MATHLIBS) $(DRMLIB) -L$(LIBHOME) $(LIBCLNTSH); \&lt;BR /&gt;# else \&lt;BR /&gt;# $(ECHODO) $(CC) $(CFLAGS) -o autocorr $(OBJECTS) $(MATHLIBS) $(DRMLIB) -L$(LIBHOME) $(LIBMM) $(NAEDHS) $(NAETAB) $(SYSLIBS) $(PROLDLIBS); \&lt;BR /&gt;# fi&lt;BR /&gt;&lt;BR /&gt;autocorr.o : $(INCLUDE_DIR)/autocorr.h  $(INCLUDE_DIR)/lerrno.h&lt;BR /&gt;getdoc.o : $(INCLUDE_DIR)/autocorr.h  $(INCLUDE_DIR)/lerrno.h&lt;BR /&gt;docinfo.o : $(INCLUDE_DIR)/autocorr.h  $(INCLUDE_DIR)/lerrno.h&lt;BR /&gt;guidrm.o : $(INCLUDE_DIR)/autocorr.h  $(INCLUDE_DIR)/lerrno.h&lt;BR /&gt;savedoc.o : $(INCLUDE_DIR)/autocorr.h  $(INCLUDE_DIR)/lerrno.h&lt;BR /&gt;crehist.o : $(INCLUDE_DIR)/autocorr.h  $(INCLUDE_DIR)/lerrno.h&lt;BR /&gt;gendoc.o : $(INCLUDE_DIR)/autocorr.h  $(INCLUDE_DIR)/lerrno.h&lt;BR /&gt;runtime.o : $(INCLUDE_DIR)/autocorr.h  &lt;BR /&gt;dbio.o  : $(INCLUDE_DIR)/autocorr.h  $(INCLUDE_DIR)/lerrno.h&lt;BR /&gt;&lt;BR /&gt;clean :&lt;BR /&gt; rm -f *.o&lt;BR /&gt; rm -f crehist.c dbio.c docinfo.c getdoc.c guidrm.c savedoc.c tst.c log_err.c&lt;BR /&gt;&lt;BR /&gt;cleanall : clean&lt;BR /&gt; rm -f autocorr</description>
      <pubDate>Tue, 05 Jun 2007 15:05:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-mismatched-abi-not-an-elf-file-for-lcli/m-p/4013778#M96446</guid>
      <dc:creator>RGreen</dc:creator>
      <dc:date>2007-06-05T15:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: ld: Mismatched ABI (not an ELF file) for -lcli</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-mismatched-abi-not-an-elf-file-for-lcli/m-p/4013779#M96447</link>
      <description>Even though you have "+DA2.0W" mode for 64-bit compilation it might be better to replace it with "+DD64". See if that helps in compiling the application in 64-bit mode.</description>
      <pubDate>Tue, 05 Jun 2007 15:09:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-mismatched-abi-not-an-elf-file-for-lcli/m-p/4013779#M96447</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-06-05T15:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: ld: Mismatched ABI (not an ELF file) for -lcli</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-mismatched-abi-not-an-elf-file-for-lcli/m-p/4013780#M96448</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The objects and shared libraries must either be all 32-bit or all 64-bit.  The linker ('ld') chooses the first object specified on its command line and expects the remaining objects to be the same "bitness".  If they are not, the error you see is reported.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 05 Jun 2007 16:21:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-mismatched-abi-not-an-elf-file-for-lcli/m-p/4013780#M96448</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-06-05T16:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: ld: Mismatched ABI (not an ELF file) for -lcli</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-mismatched-abi-not-an-elf-file-for-lcli/m-p/4013781#M96449</link>
      <description>&amp;gt;I really don't know what the -lcli is referring to.&lt;BR /&gt;&lt;BR /&gt;This is where -lcli comes from:&lt;BR /&gt;DRMLIB = -L./ -lcli&lt;BR /&gt;&lt;BR /&gt;Do you have libcli.* in the current directory?&lt;BR /&gt;Is it 64 bit as JRF says?  If the 64 bit version is in another directory, you'll need to change the -L path in DRMLIB.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Sandman: better to replace it with "+DD64".&lt;BR /&gt;&lt;BR /&gt;That's a very good idea but not likely to help.  You need it when you port to IPF.</description>
      <pubDate>Tue, 05 Jun 2007 22:55:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-mismatched-abi-not-an-elf-file-for-lcli/m-p/4013781#M96449</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-06-05T22:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: ld: Mismatched ABI (not an ELF file) for -lcli</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-mismatched-abi-not-an-elf-file-for-lcli/m-p/4013782#M96450</link>
      <description>Thanks to all of you.&lt;BR /&gt;&lt;BR /&gt;It appears that my problem was with the libcli being compiled as 32 bit.  I added the +DA2.0W +DS2.0 -DSS_64BIT_SERVER to the compile options.  It took care of the problem. I'm not sure why this is compiled seperately from the main application though.&lt;BR /&gt;&lt;BR /&gt;Thanks again :)&lt;BR /&gt;&lt;BR /&gt;#UTAX need CFLAGS set to compile in ANSI extened mode&lt;BR /&gt;CFLAGS=-Ae +DA2.0W +DS2.0 -DSS_64BIT_SERVER&lt;BR /&gt;&lt;BR /&gt;libcli.a :   libcli.a(sock.o) libcli.a(utils_lib.o) &lt;BR /&gt;    @echo libcli.a is now up to date.&lt;BR /&gt;&lt;BR /&gt;clean  :&lt;BR /&gt;   rm -f libcli.a</description>
      <pubDate>Thu, 07 Jun 2007 09:43:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-mismatched-abi-not-an-elf-file-for-lcli/m-p/4013782#M96450</guid>
      <dc:creator>RGreen</dc:creator>
      <dc:date>2007-06-07T09:43:05Z</dc:date>
    </item>
  </channel>
</rss>

