Bug #15685 Updated: Fail on apache make/ php_mysql.c:undef.ref.
| From: | sander@php.net | Date: | Sat, 23 Feb 2002 16:02:08 +0000 |
| Subject: | Bug #15685 Updated: Fail on apache make/ php_mysql.c:undef.ref. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-868@lists.php.net to get a copy of this message | ||
ID: 15685
Updated by: sander@php.net
Reported By: pk@fastrun.at
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: SuSE Linux 6.3
PHP Version: 4.1.1
New Comment:
You're messing with static and dynamic builds of PHP.
You should either compile Apache normally (without PHP, but with
--enable-module=so), and PHP with --with-apxs=/path/to/apxs, or compile
PHP with --with-apache=/path/to/apache and Apache with
--activate-module=/path/to/php/module
For more information see the manual or ask support on the appropriate
mailinglist.
Previous Comments:
------------------------------------------------------------------------
[2002-02-23 05:25:32] pk@fastrun.at
Hi,
I hope that someone can help- my problem is exactly the
one in bug report #5030, which has been closed with
"should work now", but no hint HOW the guy got it to work.
My system:
SuSe Linux 6.3
Apache 1.3.23
MySQL 3.23.47
PHP 4.1.1
The Guy from #5030 had different versions, but got
the same fail on the apache make:
I configure and build php4 with:
./configure --with-mysql=/usr/local/mysql
--with-apxs=/usr/sbin/apxs --enable-track-vars --with-xml
--with-gettext --with-xml --with-mycrypt
and then configure and build apache-1.3.23 with:
./configure --prefix=/usr/local/apache
--activate-module=src/modules/php4/libphp4.a
This thing works fine, until when I run make,
which terminates with:
...........
modules/php4/libphp4.a(php_mysql.o): In function
`php_mysql_field_info':
/home/admin/php-4.0.0/ext/mysql/php_mysql.c:1574: undefined reference
to
`mysql_field_seek'
/home/admin/php-4.0.0/ext/mysql/php_mysql.c:1575: undefined reference
to
`mysql_fetch_field'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/admin/apache_1.3.12/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/admin/apache_1.3.12'
make: *** [build] Error 2
What am I doing wrong ? Is there some option that I could include with
my apache- configure ?
Thanks,
Robert Zrim
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15685&edit=1