The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Error when compile httpd 2.2.8 on AIX 5.2 aldowsary AIX 7 02-13-2008 06:21 PM
compile error message putput High Level Programming 4 10-04-2006 04:43 AM
Compile error coulio High Level Programming 9 06-30-2006 05:43 AM
compile error while using dlopen shriashishpatil High Level Programming 5 06-29-2006 03:01 AM
Error in compile C by gcc zico High Level Programming 4 11-12-2003 02:45 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-29-2006
kuampang kuampang is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 5
C compile error

hello can anyone help?
i make a C code in FreeBSD 5.4 and it succeed to run
the program requires connection to mysql server
when i try to compile it under solaris i get this error message

ld: fatal: file ./lib/libmysqlclient.so: wrong ELF machine type: EM_386

why? and how to solve this problem? thx for any help
  #2 (permalink)  
Old 11-29-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Have you recompiled the code to run under Solaris? I don't think that your binary if compiled on BSD would run directly under Solaris.
  #3 (permalink)  
Old 11-29-2006
kuampang kuampang is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 5
yes, i did recompile it in solaris
the result is ld: fatal: file ./lib/libmysqlclient.so: wrong ELF machine type: EM_386
a friend of mine also said that the problem is then difference of binary
but he don't know how to solve this
  #4 (permalink)  
Old 11-30-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Check if this library is compiled for the i386. You can check this by running
the 'file' command. If that is the case, you have to get this library recompiled for your hardware.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0