Opened 15 years ago

Closed 15 years ago

#21574 closed defect (duplicate)

php5-postgresql: Symbol not found: _core_globals, apache2 +workermpm

Reported by: james.applemac@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc:
Port: php5-postgresql

Description

Hi,

I compiled and installed php5-postgresql with 'port install php5-postgresql +postgresql84' under OS X 10.6.1 but encounter problem when run 'php -m' .

The following are the error message:

php -m
PHP Warning:  PHP Startup: pdo_pgsql: Unable to initialize module
Module compiled with build ID=API20090626,NTS
PHP    compiled with build ID=API20090626,TS
These options need to match
 in Unknown on line 0

Warning: PHP Startup: pdo_pgsql: Unable to initialize module
Module compiled with build ID=API20090626,NTS
PHP    compiled with build ID=API20090626,TS
These options need to match
 in Unknown on line 0
dyld: NSLinkModule() error
dyld: Symbol not found: _core_globals
  Referenced from: /opt/local/lib/php/extensions/no-debug-zts-20090626/pgsql.so
  Expected in: flat namespace
 in /opt/local/lib/php/extensions/no-debug-zts-20090626/pgsql.so
Trace/BPT trap

Change History (4)

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

Owner: changed from macports-tickets@… to ryandesign@…

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

Looks like the same issue as #21573 but in a different php module.

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

The module was compiled non-thread-safe ("NTS") but php was compiled thread-safe ("TS"); these cannot work together. One reason why php5 might be compiled thread-safe is if your apache2 is not using the default preforkmpm variant, but some other mpm variant. If that's the case, reinstall apache2 with the preforkmpm variant, then rebuild php5.

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

Resolution: duplicate
Status: newclosed
Summary: php5-postgresqlphp5-postgresql: Symbol not found: _core_globals, apache2 +workermpm

That was it. See #21573 for more details. Duplicate of #21281.

Note: See TracTickets for help on using tickets.