Discussion:
[PHP-INSTALL] make [sapi/cli/php] Error 1
John B. Moore
2009-01-17 01:21:03 UTC
Permalink
Searched the lists for this but could not find anything that seem to help.

I'm hoping someone here can point me in the right direction..

CentOS 4.7
Apache 2.0.59
PHP 5.2.8

Configure line used:

./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql
--prefix=/usr/local/apache/php
--with-config-file-path=/usr/local/apache/php
--enable-force-cgi-redirect --disable-cgi --with-zlib --with-gettext
--with-gdbm

During the Configure output I see:

checking for CLI build... yes

..don't see any other references to sapi or cli in configure output..


make returns error

In function `zm_startup_mysql':
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:405: undefined reference
to `mysql_server_init'
ext/mysql/.libs/php_mysql.o(.text+0x323): In function `zm_shutdown_mysql':
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:426: undefined reference
to `mysql_server_end'
ext/mysql/.libs/php_mysql.o(.text+0x172a): In function
`zif_mysql_set_charset':
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:1120: undefined reference
to `mysql_set_character_set'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

(I also completely deleted the ../src/php-5.2.8 and started from scratch
twice to make sure I did not farkle something in my earlier attempts..)

Hopefully I have included enough information...

any pointers would be appreciated...

John..
Keith Roberts
2009-01-17 15:05:38 UTC
Permalink
Hi John. I'm on Fedora 8 ATM. In the process of upgrading to
F10.

Do you have the mysql development libraries installed?

Keith

-----------------------------------------------------------------
Websites:
http://www.php-debuggers.net
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------------
Subject: [PHP-INSTALL] make [sapi/cli/php] Error 1
Searched the lists for this but could not find anything that seem to help.
I'm hoping someone here can point me in the right direction..
CentOS 4.7
Apache 2.0.59
PHP 5.2.8
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql
--prefix=/usr/local/apache/php
--with-config-file-path=/usr/local/apache/php --enable-force-cgi-redirect
--disable-cgi --with-zlib --with-gettext --with-gdbm
checking for CLI build... yes
..don't see any other references to sapi or cli in configure output..
make returns error
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:405: undefined reference
to `mysql_server_init'
ext/mysql/.libs/php_mysql.o(.text+0x323): In function
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:426: undefined reference
to `mysql_server_end'
ext/mysql/.libs/php_mysql.o(.text+0x172a): In function
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:1120: undefined reference
to `mysql_set_character_set'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
(I also completely deleted the ../src/php-5.2.8 and started from scratch
twice to make sure I did not farkle something in my earlier attempts..)
Hopefully I have included enough information...
any pointers would be appreciated...
John..
John B. Moore
2009-01-17 18:39:43 UTC
Permalink
Hi John. I'm on Fedora 8 ATM. In the process of upgrading to F10.
Do you have the mysql development libraries installed?
I have

MySQL-devel-5.0.67-0.i386.rpm

installed..


John...
John B. Moore
2009-01-18 00:37:46 UTC
Permalink
I did finally find a reference to this error in two places..

1) the Php bugs list for 5.2.4 and it claimed to be "fixed"

2) a Chinese blog (translated) that indicated that it was a miss-match
between the php version and the mysql version..

So.. The question might be... what version of php matches MySql 5.0.67

I downloaded 5.2.6 and got the same error in the make..

Please.. I hope someone can point me in the right direction here..

Thanks..

John..
Subject: [PHP-INSTALL] make [sapi/cli/php] Error 1
Searched the lists for this but could not find anything that seem to help.
I'm hoping someone here can point me in the right direction..
CentOS 4.7
Apache 2.0.59
PHP 5.2.8
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql
--prefix=/usr/local/apache/php
--with-config-file-path=/usr/local/apache/php
--enable-force-cgi-redirect --disable-cgi --with-zlib --with-gettext
--with-gdbm
checking for CLI build... yes
..don't see any other references to sapi or cli in configure output..
make returns error
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:405: undefined
reference to `mysql_server_init'
ext/mysql/.libs/php_mysql.o(.text+0x323): In function
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:426: undefined
reference to `mysql_server_end'
ext/mysql/.libs/php_mysql.o(.text+0x172a): In function
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:1120: undefined
reference to `mysql_set_character_set'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
(I also completely deleted the ../src/php-5.2.8 and started from
scratch twice to make sure I did not farkle something in my earlier
attempts..)
Hopefully I have included enough information...
any pointers would be appreciated...
John..
John B. Moore
2009-01-18 00:58:42 UTC
Permalink
I finally got

php-5.2.0 to build without errors

Maybe there needs to be a note somewhere about the php versions and the
matching mysql version it will build against..???

Any other thoughts or ideas appreciated..

John..
Post by John B. Moore
I did finally find a reference to this error in two places..
1) the Php bugs list for 5.2.4 and it claimed to be "fixed"
2) a Chinese blog (translated) that indicated that it was a miss-match
between the php version and the mysql version..
So.. The question might be... what version of php matches MySql 5.0.67
I downloaded 5.2.6 and got the same error in the make..
Please.. I hope someone can point me in the right direction here..
Thanks..
John..
Subject: [PHP-INSTALL] make [sapi/cli/php] Error 1
Searched the lists for this but could not find anything that seem to help.
I'm hoping someone here can point me in the right direction..
CentOS 4.7
Apache 2.0.59
PHP 5.2.8
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql
--prefix=/usr/local/apache/php
--with-config-file-path=/usr/local/apache/php
--enable-force-cgi-redirect --disable-cgi --with-zlib --with-gettext
--with-gdbm
checking for CLI build... yes
..don't see any other references to sapi or cli in configure output..
make returns error
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:405: undefined
reference to `mysql_server_init'
ext/mysql/.libs/php_mysql.o(.text+0x323): In function
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:426: undefined
reference to `mysql_server_end'
ext/mysql/.libs/php_mysql.o(.text+0x172a): In function
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:1120: undefined
reference to `mysql_set_character_set'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
(I also completely deleted the ../src/php-5.2.8 and started from
scratch twice to make sure I did not farkle something in my earlier
attempts..)
Hopefully I have included enough information...
any pointers would be appreciated...
John..
Keith Roberts
2009-01-18 20:56:56 UTC
Permalink
Subject: Re: [PHP-INSTALL] make [sapi/cli/php] Error 1
I finally got
php-5.2.0 to build without errors
Maybe there needs to be a note somewhere about the php versions and the
matching mysql version it will build against..???
Any other thoughts or ideas appreciated..
John..
Have you tried the latest version of php, which is 5.2.8 ?

Maybe that works OK?

Kind Regards,

Keith Roberts

-----------------------------------------------------------------
Websites:
http://www.php-debuggers.net
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------------
Post by John B. Moore
I did finally find a reference to this error in two places..
1) the Php bugs list for 5.2.4 and it claimed to be "fixed"
2) a Chinese blog (translated) that indicated that it was a miss-match
between the php version and the mysql version..
So.. The question might be... what version of php matches MySql 5.0.67
I downloaded 5.2.6 and got the same error in the make..
Please.. I hope someone can point me in the right direction here..
Thanks..
John..
Subject: [PHP-INSTALL] make [sapi/cli/php] Error 1
Searched the lists for this but could not find anything that seem to help.
I'm hoping someone here can point me in the right direction..
CentOS 4.7
Apache 2.0.59
PHP 5.2.8
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql
--prefix=/usr/local/apache/php
--with-config-file-path=/usr/local/apache/php
--enable-force-cgi-redirect --disable-cgi --with-zlib --with-gettext
--with-gdbm
checking for CLI build... yes
..don't see any other references to sapi or cli in configure output..
make returns error
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:405: undefined
reference to `mysql_server_init'
ext/mysql/.libs/php_mysql.o(.text+0x323): In function
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:426: undefined
reference to `mysql_server_end'
ext/mysql/.libs/php_mysql.o(.text+0x172a): In function
/usr/local/src/php-5.2.8/ext/mysql/php_mysql.c:1120: undefined
reference to `mysql_set_character_set'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
(I also completely deleted the ../src/php-5.2.8 and started from
scratch twice to make sure I did not farkle something in my earlier
attempts..)
Hopefully I have included enough information...
any pointers would be appreciated...
John..
Continue reading on narkive:
Loading...