473,757 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiling PHP 5.0.2 and mysqli extension: error on 'make'

Hi,

I am compiling PHP 5.0.2 myself with MySQL support.

I did a ./configure --with-mysqli=/usr/local/mysql/bin/mysql_config
(see end of post for complete configure)
Note: I also have --with-mysql=/usr/local/mysql/. However, I get the
same errors when I configure without the mysql extension, just mysqli.
And as the documentation says, I use the same version of MySQL for both
extensions to avoid conflicts.

The configure script works fine, no errors. However when I do 'make', I
get errors.

I first get a series of
ext/mysqli/mysqli_prop.lo( .text+0x1041):
In function `stmt_num_rows_ read':
/home/laug/php-5.0.2/ext/mysqli/mysqli_prop.c:1 94:
undefined reference to `mysql_stmt_num _rows'
(I get about 20 different ones.)

At the end of make, I get
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

I am using GNU/Linux Debian Sarge. I have uninstalled the mysql-client
and mysql-server packages (4.0.x) and installed the mysql binaries
(found on mysql.com) into /usr/local/mysql myself (as I absolutely need
Unicode support in my databases, which requires version 4.1+).

The version of MySQL is mysql-standard-4.1.7-pc-linux-i686. It works
fine. The /usr/local/mysql/bin/mysql_config file exists.

I don't know where this could be coming from. Especially as the
configure script checks to see if everything is there and returns no errors.

(Here is my complete configure line:
../configure --with-apxs2=/usr/bin/apxs2 --with-mysql=/usr/local/mysql/
--disable-short-tags --enable-magic-quotes --with-snmp --with-pgsql
--with-ldap --enable-sqlite-utf8 --with-gettext
--with-mysqli=/usr/local/mysql/bin/mysql_config )

I would really appreciate some help. Thank you.
Jul 17 '05 #1
0 1892

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

Similar topics

3
5007
by: Junx | last post by:
Alright, I'm trying to compile PHP 5.1 with the following options: ../configure --with-openssl --with-zlib --with-bz2 --enable-bcmath --enable-calendar --enable-mbstring --with-mcrypt --with-mhash --with-mysqli --with-mysql --enable-embedded-mysqli --disable-pdo --with-pgsql --with-pspell So far I've been able to get all dependencies and whatnot up to the MySQL area. The last error I get with it is: checking for MySQL support... yes...
6
2081
by: Christopher Watson | last post by:
Have been running PHP 5.1.1 successfully for quite some time as CGI in IIS 5.1 on my Windows XP Pro SP2 laptop, with MySQL Server 5.0.18 and the mysqli extension. I wanted to see if I could get away from some CGI timeouts I've been experiencing by moving from GCI to ISAPI on PHP. So I removed the mapping for the CGI .exe and added in the mapping for the php5isapi.dll, which in C:\PHP. The php_mysqli.dll file is in C:\PHP\ext. I made...
0
19287
by: IamtheEvster | last post by:
Hi All, I am currently using PHP 5 and MySQL 5, both on Fedora Core 5. I am unable to call a MySQL stored procedure that returns output parameters using mysql, mysqli, or PDO. I'm having a hell of a time with it... The following comes from phpinfo(): PHP Version: 5.1.2 mysql Client API version: 5.0.18 mysqli Client API version: 5.0.18
2
2734
by: ojorus | last post by:
Hi! Some questions regarding the mysqli-extension (php5) 1) Prepared statements: If I understand things right, prepared statements will give better performance if you make several similar querys. (where you only change the parameters) But what if you do only ONE query; will it then be usefull to use prepared statements? Can it actuelly give better performance NOT to use prepared statements in that case? 2) Are there any DISadvantages...
12
4762
by: davids58 | last post by:
trying to figure out how to use a mysql database with PHP. I ran the following code: <?php // defines database connection data define('DB_HOST', 'localhost'); define('DB_USER', 'ajaxuser'); define('DB_PASSWORD', 'practical'); define('DB_DATABASE', 'ajax'); // connect to the database $mysqli = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE);
0
1369
by: ojorus | last post by:
Hi; I am using the mysqli-extension on all my database queries. Everything worked just fine when I used MySQL 4, but when the database was upgraded to MySQL 5 (5.0.22), I got a strange error. Here is an example: function example(){ global $table, $mysqli; $min = 2; $stmt = mysqli_prepare($mysqli, "SELECT SUM(Id) FROM $table WHERE
13
3717
by: Schmidty | last post by:
If you do a page reload with $_SERVER will your program lose a mysqli connection upon the reload of the page? Would this code work? I need to know how to carry over a connection between methods as I am new to OOP? Thanks... Example; ======================================== <?php // webpage $newsignon = new newuser(); logon();
2
2604
by: Curtis | last post by:
Hello everyone: I have come to love the ease of updating PHP, since getting used to using it these past few years. Recently, however, when I upgraded from PHP 5.1 to PHP 5.2.0 and again when moving to 5.2.1, I noticed strange behavior when trying to load php_mysqli.dll. I am using Apache 2.2.3 on Windows XP Pro (32-bit). I use the php5apache2_2.dll to load PHP as an Apache module. The PHPIniDir directive in httpd.conf points to the...
21
7279
by: Daz | last post by:
Hi everyone. I am trying to create an extension of the mysqli class within PHP, and I am finding it quite difficult. I am fairly new to PHP classes, and decided to give them a go. Here's what I have to far: <?php class sql_db extends mysqli { var $connection = false;
0
9487
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
10069
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...
0
9904
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9735
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
8736
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...
0
6556
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();...
0
5168
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5324
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3828
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 we have to send another system

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.