Click to See Complete Forum and Search --> : Building 4.2.2 on 10.2


Engelmacher
08-31-2002, 04:02 PM
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)?