473,396 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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:194:
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 1862

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

Similar topics

3
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...
6
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...
0
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...
2
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...
12
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');...
0
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....
13
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...
2
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...
21
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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...
0
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,...

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.