#41102 [NEW]: Unable to compile as static apache module
| From: | nobody at example dot org | Date: | Mon, 16 Apr 2007 13:43:28 +0000 |
| Subject: | #41102 [NEW]: Unable to compile as static apache module | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-111540@lists.php.net to get a copy of this message | ||
From: nobody at example dot org
Operating system: Linux 2.6
PHP version: 5.2.2RC1
PHP Bug Type: *Compile Issues
Bug description: Unable to compile as static apache module
Description:
------------
I'm unable to compile 5.2.2RC1 as an Apache module on a specific
machine/configuration. Neither PHP_LIBS or PHP_CFLAGS are present in apache
src/modules/php5/Makefile
Even after manually adding include paths and libs to EXTRA_* in the
makefile, build fails at linker stage.
Problem system has:
autoconf (GNU Autoconf) 2.59
gcc version 3.3.4
Successfully compiled on another system with:
autoconf (GNU Autoconf) 2.61
gcc version 3.4.6
Reproduce code:
---------------
# Manual additions to /src/modules/php5/Makefile
EXTRA_LIBS=-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5
\
-lcrypt -lz -ldl -lm -lxml2
EXTRA_INCLUDES=-I../../../../php-5.2.2RC1/main
-I../../../../php-5.2.2RC1/Zend \
-I../../../../php-5.2.2RC1/sapi/apache -I../../../../php-5.2.2RC1/ \
-I../../../../php-5.2.2RC1/TSRM
Expected result:
----------------
Clean compile.
Actual result:
--------------
modules.o(.data+0x44): undefined reference to `php5a_module'
modules.o(.data+0xa4): undefined reference to `php5a_module'
collect2: ld returned 1 exit status
--
Edit bug report at http://bugs.php.net/?id=41102&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41102&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41102&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41102&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41102&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41102&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41102&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41102&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41102&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41102&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41102&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41102&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41102&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41102&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41102&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41102&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41102&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41102&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41102&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41102&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41102&r=mysqlcfg