|
Posted by John Cecere on 03/31/07 16:07
Jagadish,
> ld: warning: file /spare/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF
> class: ELFCLASS64
> Undefined first referenced
> symbol in file
> mysql_close /var/tmp//ccdtPtSd.o
This message here means that you're trying to build PHP as 32-bit, but your MySQL library is 64-bit.
You'll either need to build PHP in 64-bit (which means everything else that you link to needs to be 64-bit), or install the 32-bit
version of MySQL and point to it using LDFLAGS.
The 'file' command is your friend. Use it to determine what ELFCLASS your libraries are.
hth,
John
Navigation:
[Reply to this message]
|