From:             marek at lewczuk dot com
Operating system: windows/cygwin
PHP version:      5.0.2
PHP Bug Type:     Compile Failure
Bug description:  PHP compilation fails in non-cgi mode

Description:
------------
I want to use php5 on cygwin (latest version). Compilation is successful
if "configure" was run without any additions (so php will work in cgi mode
- no cli etc). But, I need to use php with apache - so php-cli will be
compiled. My configure looks like this:  ./configure
--with-apxs2=/usr/local/apache2/bin/apxs

Configure don't return any errors, but make fails on compiling
sapi/cli/php.exe. Here is the result:

...
internal_functions_cli.lo -lcrypt -lcrypt -lm -lxml2 -lz -liconv -lm
-lxml2 -lz
-liconv -lm -lxml2 -lz -liconv -lm -lcrypt -lxml2 -lz -liconv -lm -lcrypt 
-o sa
pi/cli/php.exe
main/internal_functions_cli.lo(.text+0x17): In function
`php_startup_internal_ex
tensions':
/usr/src/php-5.0.2/main/internal_functions_cli.c:68: undefined reference
to `_ph
p_startup_extensions'
main/internal_functions_cli.lo(.data+0x0):/usr/src/php-5.0.2/main/internal_funct
ions_cli.c:67: undefined reference to `_xml_module_entry'
main/internal_functions_cli.lo(.data+0x4):/usr/src/php-5.0.2/main/internal_funct
ions_cli.c:67: undefined reference to `_tokenizer_module_entry'
main/internal_functions_cli.lo(.data+0x8):/usr/src/php-5.0.2/main/internal_funct
ions_cli.c:68: undefined reference to `_basic_functions_module'
main/internal_functions_cli.lo(.data+0xc):/usr/src/php-5.0.2/main/internal_funct
ions_cli.c:68: undefined reference to `_sqlite_module_entry'
main/internal_functions_cli.lo(.data+0x10):/usr/src/php-5.0.2/main/internal_func
tions_cli.c:68: undefined reference to `_spl_module_entry'
main/internal_functions_cli.lo(.data+0x14):/usr/src/php-5.0.2/main/internal_func
tions_cli.c:68: undefined reference to `_simplexml_module_entry'
main/internal_functions_cli.lo(.data+0x18):/usr/src/php-5.0.2/main/internal_func
tions_cli.c:68: undefined reference to `_session_module_entry'
main/internal_functions_cli.lo(.data+0x1c):/usr/src/php-5.0.2/main/internal_func
tions_cli.c:69: undefined reference to `_posix_module_entry'
main/internal_functions_cli.lo(.data+0x20):/usr/src/php-5.0.2/main/internal_func
tions_cli.c:69: undefined reference to `_pcre_module_entry'
main/internal_functions_cli.lo(.data+0x28):/usr/src/php-5.0.2/main/internal_func
tions_cli.c:69: undefined reference to `_dom_module_entry'
main/internal_functions_cli.lo(.data+0x2c):/usr/src/php-5.0.2/main/internal_func
tions_cli.c:69: undefined reference to `_ctype_module_entry'
main/internal_functions_cli.lo(.data+0x30):/usr/src/php-5.0.2/main/internal_func
tions_cli.c:69: undefined reference to `_libxml_module_entry'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../libcygwin.a(libcmain.o)(.text+0x7
d): undefined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php.exe] Error 1

...

I don't know if this is php problem or cygwin...


Reproduce code:
---------------
./configure --with-apxs2=/usr/local/apache2/bin/apxs
make

Expected result:
----------------
should compile

Actual result:
--------------
fails

-- 
Edit bug report at http://bugs.php.net/?id=30358&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30358&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30358&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30358&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30358&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30358&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30358&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30358&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30358&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30358&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30358&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30358&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30358&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30358&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30358&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30358&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30358&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30358&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30358&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30358&r=mysqlcfg

Reply via email to