|
From: Paul S. <po...@ma...> - 2005-01-17 12:42:55
|
Hi All, I've tried compiling the php-java-bridge (1.0.7 with a Makefile hack, and 1.0.8pre) on OSX and I run into the following error :- gcc -bundle -flat_namespace -undefined suppress -o .libs/java.so .libs/java.o .libs/java_bridge.o .libs/client.o .libs/proxyenv.o .libs/bind.o .libs/init_cfg.o ld: multiple definitions of symbol _java_globals .libs/java.o definition of _java_globals in section (__DATA,__common) .libs/java_bridge.o definition of _java_globals in section (__DATA,__common) .libs/client.o definition of _java_globals in section (__DATA,__common) make: *** [java.la] Error 1 Which (I think?) relates to the following from php_java.h :- #ifdef ZTS # define JG(v) TSRMG(java_globals_id, zend_java_globals *, v) #else # define JG(v) (java_globals.v) #endif Typically these issues are resolved on OSX by using extern, and no amount of my crappy ideas have worked so far :-). Can anyone give me any pointers ? CHEERS Paul |