473,509 Members | 3,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

#gcc -v
Using built-in specs.
Target: hppa64-hp-hpux11.11
Configured with: /tmp/gcc-4.2.1.tar.gz/gcc-4.2.1/configure --
host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11 --build=hppa64-
hp-hpux11.11 --prefix=/opt/hp-gcc64-4.2.1 --with-gnu-as --without-gnu-
ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-
languages=c,c++
Thread model: posix
gcc version 4.2.1
#

#/usr/local/mysql/bin/mysql --version
/usr/local/mysql/bin/mysql Ver 14.12 Distrib 5.0.37, for hp-hpux11.11
(hppa2.0w) using readline 5.0
#

anyideas? I've searched all over and haven't found anything on
t'internet.

thanks
Byron

Nov 9 '07 #1
5 2818
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

#gcc -v
Using built-in specs.
Target: hppa64-hp-hpux11.11
Configured with: /tmp/gcc-4.2.1.tar.gz/gcc-4.2.1/configure --
host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11 --build=hppa64-
hp-hpux11.11 --prefix=/opt/hp-gcc64-4.2.1 --with-gnu-as --without-gnu-
ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-
languages=c,c++
Thread model: posix
gcc version 4.2.1
#

#/usr/local/mysql/bin/mysql --version
/usr/local/mysql/bin/mysql Ver 14.12 Distrib 5.0.37, for hp-hpux11.11
(hppa2.0w) using readline 5.0
#

anyideas? I've searched all over and haven't found anything on
t'internet.

thanks
Byron

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

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Nov 9 '07 #2
#/usr/local/mysql/bin/mysql --version
/usr/local/mysql/bin/mysql Ver 14.12 Distrib 5.0.37, for hp-hpux11.11
(hppa2.0w) using readline 5.0
#

anyideas? I've searched all over and haven't found anything on
t'internet.
Offhand I would say your xml2 library is not the correct format for
your compiler.
Sounds like something worth checking via the file command.

PA2.0W implies 64-bit so the /usr/local/mysql/bin/mysql binary and
anything it has as a dependency is likely 64-bit (one cannot mix
32-bit and 64-bit objects in the same running image).

The HP ANSI C compiler defaults to making a 32-bit binary, even on a
system running a 64-bit kernel. I don't use gcc on UX so I'm not sure
if a purportedly 64-bit gcc compiler produces 64-bit objects by
default or not, but I suppose a quick "Hello World" test could check
that via the file command on the resulting a.out.

rick jones
--
portable adj, code that compiles under more than one compiler
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
Nov 9 '07 #3
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
Nov 9 '07 #4
On Nov 8, 8:21 pm, Don Morris <dgmor...@earthlink.netwrote:
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
Thanks all for your suggestions

I downloaded libxml2-2.6.30-src-11.11.tar from hp's porting site
http://hpux.connect.org.uk/hppd/hpux...ibxml2-2.6.30/

however, now I get an error that my GCC compiler is not ANSI
compliant...a can of worms has been opened :)

libxml2-2.6.30 #./configure.
....
....
"checking for unistd.h... yes
checking for string.h... (cached) yes
configure: error: Compiler not ANSI compliant"

I've tried setting CFLAGS to -ansi but it still fails to build.

Nov 9 '07 #5
byron <by*******@gmail.comwrote:
I downloaded libxml2-2.6.30-src-11.11.tar from hp's porting site
http://hpux.connect.org.uk/hppd/hpux...ibxml2-2.6.30/
however, now I get an error that my GCC compiler is not ANSI
compliant...a can of worms has been opened :)
See, that is what you get for not using HP's compilers :) :)
libxml2-2.6.30 #./configure.
...
...
"checking for unistd.h... yes
checking for string.h... (cached) yes
configure: error: Compiler not ANSI compliant"
I've tried setting CFLAGS to -ansi but it still fails to build.
I'd go into the configure script and find that error message if
possible and see what it does to determine ANSI compliance. Might
want to triple check that it is finding gcc and not the bundled HP
compiler.

rick jones

--
a wide gulf separates "what if" from "if only"
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
Nov 9 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3645
by: Lothar Scholz | last post by:
Because PHP5 does not include the mysql extension any more is there a chance that we will see more Providers offering webspace with Firebird or Postgres Databases ? What is your opinion ? I must...
3
10040
by: fabriZio | last post by:
I run php pages in IIS in cgi-mode(only pointing them to PHP.exe). But I can't connect to database: Fatal error: Call to undefined function: mysql_pconnect()..... I read that I have to...
1
20603
by: Stefan | last post by:
Hi, I just downloaded PHP-4.3.3 for win32 and got the extensions folder and dropped it intot he root of the PHP directory and set it's path in the PHP.ini: extension_dir =...
2
2524
by: R | last post by:
Hi. I have just reintalled my computer and with that; PHP. But.. I keep getting the error: PHP Startup: Unable to load dynamic library 'C:\PHP\modules\php_mysql.dll' - The specified module...
2
2330
by: anne001 | last post by:
I think I have php 4.4, mysql 5 and fast-cgi from curl -O http://fastcgi.com/dist/fcgi-2.4.0.tar.gz tar xvzf fcgi-2.4.0.tar.gz Here are the instructions I am trying to follow. Compile php as...
2
11735
by: MS | last post by:
Why do I keep getting this error mesgage on my phpinfo() page trying to get PHP and MySQL to communicate? I am running this in IIS. Here's what I have - My php.ini resides in my C:\WINNT...
0
2465
by: Chris Fink | last post by:
I have walked through all of the WSE 3 Hands on Labs and got everything working fine. When I create my own certificate and install it in the stores, my client application that is consuming my WSE...
0
2297
by: Yahoo! Groups | last post by:
--qmZXHrzahTmnWjcAmzfDy9efU1qhZy1O5P65Uoe Content-Type: text/plain Content-Transfer-Encoding: 7bit We are unable to process the message from <mysql@freebsd.csie.nctu.edu.tw> to...
2
1555
by: wence | last post by:
I have installed MySQL Community server and PHP 5.2.2( installed manually, no installer) on my pc I configured php with IIS (version 5) properly. If I open a php file in a webbrowser(internet...
9
4579
by: Christopher Koeber | last post by:
Hello, I am attempting to perform a PHP installation on an Apache 2.2.6 web server instance that is loaded on a Windows 2003 server operating system (R2 SP2). I have a third party application...
0
7136
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7344
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7412
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4730
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3216
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3203
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.