Opened 15 years ago

Last modified 15 years ago

#21281 closed defect

php5 5.3.0_2 undefined symbols _core_globals, _sapi_cgi_activate — at Version 2

Reported by: james.applemac@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: workermpm Cc: jwa@…
Port: php4, php52, php5, php5-devel

Description (last modified by ryandesign (Ryan Carsten Schmidt))

OS:Mac OS X 10.6
xcode:3.2
apache2.2.13_2 build with variants:+darwin+openldap+workermpm

port install php5 +apache2 +fastcgi +ipc +pear +snmp +suhosin
Port command started with PID 47556
--->  Computing dependencies for php5
--->  Fetching gawk
--->  Verifying checksum(s) for gawk
--->  Extracting gawk
--->  Configuring gawk
--->  Building gawk
--->  Staging gawk into destroot
--->  Installing gawk @3.1.7_0
--->  Activating gawk @3.1.7_0
--->  Cleaning gawk
--->  Fetching autoconf213
--->  Verifying checksum(s) for autoconf213
--->  Extracting autoconf213
--->  Configuring autoconf213
--->  Building autoconf213
--->  Staging autoconf213 into destroot
--->  Installing autoconf213 @2.13_1
--->  Activating autoconf213 @2.13_1
--->  Cleaning autoconf213
--->  Fetching gsed
--->  Verifying checksum(s) for gsed
--->  Extracting gsed
--->  Configuring gsed
--->  Building gsed
--->  Staging gsed into destroot
--->  Installing gsed @4.2.1_0
--->  Activating gsed @4.2.1_0
--->  Cleaning gsed
--->  Fetching mhash
--->  Verifying checksum(s) for mhash
--->  Extracting mhash
--->  Configuring mhash
--->  Building mhash
--->  Staging mhash into destroot
--->  Installing mhash @0.9.9.9_0
--->  Activating mhash @0.9.9.9_0
--->  Cleaning mhash
--->  Fetching php5
--->  Verifying checksum(s) for php5
--->  Extracting php5
--->  Applying patches to php5
--->  Configuring php5
--->  Building php5
--->  Staging php5 into destroot
--->  Configuring php5 again for fastcgi
--->  Building php5 again for fastcgi
Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_php5/work/php-5.3.0" && /usr/bin/make all " returned error 2
Command output:       _php_print_info in info.o
      _main in cgi_main.o
      _main in cgi_main.o
      _main in cgi_main.o
      _main in cgi_main.o
  "_core_globals", referenced from:
      _cgi_php_import_environment_variables in cgi_main.o
      _cgi_php_import_environment_variables in cgi_main.o
      _cgi_php_import_environment_variables in cgi_main.o
      _cgi_php_import_environment_variables in cgi_main.o
      _cgi_php_import_environment_variables in cgi_main.o
      _cgi_php_import_environment_variables in cgi_main.o
      _cgi_php_import_environment_variables in cgi_main.o
      _cgi_php_import_environment_variables in cgi_main.o
      _main in cgi_main.o
      _main in cgi_main.o
      _main in cgi_main.o
      _main in cgi_main.o
      _sapi_cgi_activate in cgi_main.o
      _sapi_cgi_activate in cgi_main.o
      _sapi_cgi_activate in cgi_main.o
      _sapi_cgi_activate in cgi_main.o
      _sapi_cgi_activate in cgi_main.o
  "_compiler_globals", referenced from:
      _main in cgi_main.o
      _main in cgi_main.o
      _main in cgi_main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
Error: Status 1 encountered during processing.
--->  Executing: /opt/local/bin/port install php5 +apache2 +fastcgi +ipc +pear +snmp +suhosin

Change History (2)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Cc: jwa@… added
Owner: changed from macports-tickets@… to ryandesign@…
Port: php5 added; PHP5 removed

comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Status: newassigned
Summary: PHP 5.3.0_2 build failed under Mac OS X 10.6php5 5.3.0_2 undefined symbols _core_globals, _sapi_cgi_activate

I would need to see more output ("sudo port -d install php5") to be sure, but I believe php5 is not compatible with apache2's +workermpm variant. I think this is the same problem as #16596 and this mailing list post. Please confirm whether using apache2's default +preforkmpm variant instead fixes the problem.

Note: See TracTickets for help on using tickets.