Reply to Re: Unable to compile PHP 5.2.4 with mysql extension on Hp-UX 11.11

Your name:

Reply:


Posted by Don Morris on 11/09/07 02:21

Jerry Stuckle wrote:
> byron wrote:
>> I've downloaded the 64bit gcc compiler since the mysql installed is
>> the 64bit option but now I'm getting the following error
>>
>> #./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/
>> usr/local/mysql
>>
>> configure:60026: checking for mysql_errno in -lmysqlclient
>> configure:60045: gcc -o conftest -I/usr/local/include -mgnu-ld -
>> D_XOPEN_SOURCE_EXTENDED -L/usr/local/mysql/lib -L/usr/local/mysql/lib -
>> L/usr/local/lib -L/usr/local/lib -L/usr/local/lib conftest.c -
>> lmysqlclient -lz -lm -lnsl -lxml2 -lz -liconv -lm -lxml2 -lz -liconv
>> -lm 1>&5
>> ld: Mismatched ABI (not an ELF file) for -lxml2
>> Fatal error.
>> collect2: ld returned 1 exit status

>>
>
> Offhand I would say your xml2 library is not the correct format for your
> compiler.
>

Not really the compiler I think -- but that's definitely a sign that
xml2 is a 32-bit library which he's trying to link in with a 64-bit
compilation [being 11.11 this is PA, and PA 32-bit is SOM while
64-bit is ELF so that's really clear here...]

Byron -- see if you can't get a 64-bit xml2 library or recompile it as
64-bit. [Side comment -- how many times does this crazy thing need to
have /usr/local/lib in the link path.. as well as specifying the math
library 3 different times!]

Don

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация