bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking Error


From: Scott L Powell
Subject: Linking Error
Date: Fri, 9 Sep 2005 09:01:31 -0500

Hope you can give me some advice.

The system I'm compiling on is a HP-UX rx4640. OS is 11.23.
The first gcc compilation indicated some 'unsatisfied symbols'
that I understood could be corrected by adding the -lmysqlclient
reference. The second gcc compilation shows the 'Mismatched ABI'
fatal error.

I haven't run across enough information about the error on the
internet, so I thought I'd write to see if you would be able to help.


First compile:
/opt/mysql> gcc sysiupd.c -o sysiupd.o -L/opt/mysql/lib/mysql
sysiupd.c: In function `main':
sysiupd.c:286: warning: cast to pointer from integer of different size
ld: Unsatisfied symbol "mysql_real_connect" in file /var/tmp//ccLkxZGe.o
ld: Unsatisfied symbol "mysql_real_query" in file /var/tmp//ccLkxZGe.o
ld: Unsatisfied symbol "mysql_error" in file /var/tmp//ccLkxZGe.o
ld: Unsatisfied symbol "mysql_commit" in file /var/tmp//ccLkxZGe.o
ld: Unsatisfied symbol "mysql_init" in file /var/tmp//ccLkxZGe.o

Second compile:
/opt/mysql> gcc sysiupd.c -o sysiupd.o -L/opt/mysql/lib/mysql -lmysqlclient
sysiupd.c: In function `main':
sysiupd.c:286: warning: cast to pointer from integer of different size
ld: Mismatched ABI (not an ELF file) for -lmysqlclient
Fatal error.
collect2: ld returned 1 exit status


Thank You!

Scott L. Powell
Unix Systems Programmer
Hertz Corporation
5601 N.W. Expressway
Oklahoma City, OK 73132



---------------
This message (including attachments) may contain information that is 
privileged, confidential or protected from disclosure.  If you are not the 
intended recipient, you are hereby notified that dissemination, 
disclosure, copying, distribution or use of this message or any 
information contained in it is strictly prohibited.  If you have received 
this message in error, please immediately notify the sender by reply 
e-mail and delete this message from your computer.  Although we have taken 
steps to ensure that this e-mail and attachments are free from any virus, 
we advise that in keeping with good computing practice the recipient 
should ensure they are actually virus free.
---------------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]