LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2015, 07:25 AM   #1
om178890
LQ Newbie
 
Registered: Aug 2015
Posts: 19

Rep: Reputation: Disabled
gcc complation issue for libsoap.a and libsoapEncDec.a


Hi ,

I was compiling one module on gcc which has soap related functions like soap_init,soap_init2 etc.

All the object files are created but at the time of linking soap libraries libsoap.a and libsoapEncDec.a i am getting an error of " File format not recognized."

libsoap.a: file not recognized: File format not recognized
collect2: ld returned 1 exit status.


Can anyone please help me short this problem.

I tried to compile gsoap directory and link the library even though i am getting same error.

Additionally please compilation process of gsoap. I might be doing some compilation mistake because i was doing the compilation of gsoap for the first time.
 
Old 08-31-2015, 08:00 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
insufficient information. Probably 32/64 bit mismatch, but can be something else too. You need to specify exactly what have you tried to do.
 
Old 08-31-2015, 08:12 AM   #3
om178890
LQ Newbie
 
Registered: Aug 2015
Posts: 19

Original Poster
Rep: Reputation: Disabled
Currently i am compiling a code by changing the OS and ARCH.

Early the SW on which currently i am working supported OCTEON processor. Now i changed the processor and ARCH flag wherever needed to i686.

SW uses soap format for the interaction with RFM(Radio Frequency Module).

So, at the time of liking the soap library to make binary it got the below mentioned error.
 
Old 08-31-2015, 08:15 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
so it is still an incompatible library. That was not built for the platform you selected.
 
Old 08-31-2015, 08:22 AM   #5
om178890
LQ Newbie
 
Registered: Aug 2015
Posts: 19

Original Poster
Rep: Reputation: Disabled
@pan64 :: I didn't get you question.
 
Old 08-31-2015, 08:24 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
You told you changed the arch. I think the lib you wanted to link was built for different arch, not the actual one. But you gave insufficient information, it is only a guess.
 
Old 08-31-2015, 08:25 AM   #7
om178890
LQ Newbie
 
Registered: Aug 2015
Posts: 19

Original Poster
Rep: Reputation: Disabled
Can you please tell me what all the details you are looking. So, that i can provide you. It would be a great help to me.
 
Old 08-31-2015, 08:30 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
what did you want to build (where is it from)? How do your makefile(s) look like? How did you change arch, what command(s) did you execute?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compilation issue with gcc 4.1.2 anoopahamad Linux - Software 1 06-23-2011 02:31 AM
gcc issue !! moata_u Linux - Newbie 7 06-21-2011 06:22 PM
Gcc issue i think djcs Debian 5 01-15-2008 02:24 AM
centos4.5 - gcc issue? jp-lack Linux - General 1 06-15-2007 09:14 PM
Issue with libc6 and gcc loke137 Linux - General 3 05-01-2007 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration