I am having a great deal of difficulty in performing an apxs build in the latest rev of OS X and would appreciate any insights into the matter.
The first error that crops up is this one:
% make -s
Making all in Zend
ranlib: same symbol defined in more than one member in: .libs/libZend.al (table of contents will not be sorted)
ranlib: file: .libs/libZend.al(zend_ini_scanner.lo) defines symbol: yytext
ranlib: file: .libs/libZend.al(zend_language_scanner.lo) defines symbol: yytext
The compiler happily chugs away and seems to finish pretty much everything, but then when it goes to link everything together, I get a neverending river of multiple definition errors in Zend that all look more or less like this:
ld: multiple definitions of symbol yytext
Zend/.libs/libZend.al(zend_language_scanner.lo) definition of yytext in section (DATA,common)
Zend/.libs/libZend.al(zend_ini_scanner.lo) definition of yytext in section (DATA,common)
ld: multiple definitions of symbol zendparse
Zend/.libs/libZend.al(zend_language_parser.lo) definition of zendparse in section (TEXT,text)
Zend/.libs/libZend.al(zend_language_parser.lo) definition of zendparse in section (TEXT,text)
I am assuming that these subsequent link errors are related to the fact that ranlib refused to sort the TOC of libZend.al, but am in no way certain of this fact, and I haven't a clue in the world what to do to even try to fix it. This ONLY happens in apxs builds, I can make a static version just fine. Any help (and yes, I am aware that there are compiled binaries available for download at www.entropy.ch)?