473,785 Members | 2,823 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 2836
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*******@attgl obal.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:6002 6: checking for mysql_errno in -lmysqlclient
configure:6004 5: 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...@earth link.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*******@gmai l.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
3660
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 say that i like it to see mysql replaced by a real database (stored procedures etc.)
3
10056
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 activate PHP with mySQL support...but where in my scenario?? I looked at php.ini...but no results...
1
20614
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 = "c:/php/extensions/" But I am still getting the error that it can't find the php_mhash.dll though I can see that it is indeed in the folder.
2
2533
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 could not be found. I have installed PH 5.0.2 on a XP-SP2-box with IIS. PHP works fine (if I uncomment the php_mysql.dll-line in
2
2346
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 a fast-cgi binary The main thing here is the following configure options. You can add whatever else you like to your php binary but these are needed for fast-cgi support.
2
11755
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 directory. In it, I have removed the ';' from the extension=php_mysql.dll. Also in the php.ini file I set extension_dir = c:\PHP\Ext
0
2504
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 enabled webservice receives the following error (noted at the very bottom of this post). My objective here is to create and secure a service application (webservice) using an x509 test cert that requests a client certificate; and to create a...
0
2310
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 <friendshippages-owner@onelist.com>. Your message was sent to the owner of a group that does not exist. Please check to make sure you spelled the
2
1571
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 explorer), it works as expected but if the php file has code to extract data from mysql server, the web browser returns an empty page; no error is displayed. Previously, i copied the php.ini-dist file then pasted and renamed it to php.ini into the...
9
4595
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 that will reside within the Apache instance that requires PHP 5.2.6 loaded with MySql support. The installation of PHP succedded without incident (it was done manually) and I can run phpinfo() to get information about the installation. However,...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10330
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10093
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9952
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8976
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7500
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3654
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.