php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30358 PHP compilation fails in non-cgi mode
Submitted: 2004-10-08 10:28 UTC Modified: 2004-10-20 10:10 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: marek at lewczuk dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.0.2 OS: windows/cygwin
Private report: No CVE-ID: None
 [2004-10-08 10:28 UTC] marek at lewczuk dot com
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 `_WinMain@16'
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-20 10:09 UTC] marek at lewczuk dot com
Fixed in latest CVS sources.
 [2004-10-20 10:10 UTC] marek at lewczuk dot com
Fixed in latest CVS sources.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 12:01:30 2024 UTC