php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15685 Fail on apache make/ php_mysql.c:undef.ref.
Submitted: 2002-02-23 05:25 UTC Modified: 2002-02-23 11:02 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: pk at fastrun dot at Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.1.1 OS: SuSE Linux 6.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pk at fastrun dot at
New email:
PHP Version: OS:

 

 [2002-02-23 05:25 UTC] pk at fastrun dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-23 11:02 UTC] sander@php.net
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 11:01:36 2025 UTC