Well, its not exactly on linux... but mac but i supose the systems are simular.
I get this error when building php5
/usr/bin/ld: /server/development/build/httpd-2.2.0/srclib/apr-util/../apr-iconv/lib/libapriconv.la bad magic number (not a Mach-O file)
/usr/bin/ld: warning multiple definitions of symbol _pcre_callout
ext/pcre/pcrelib/pcre_globals.o definition of _pcre_callout in section (__DATA,__data)
/server/apache2/bin/httpd definition of _pcre_callout
/usr/bin/ld: warning multiple definitions of symbol _pcre_config
ext/pcre/pcrelib/pcre_config.o definition of _pcre_config in section (__TEXT,__text)
/server/apache2/bin/httpd definition of _pcre_config
/usr/bin/ld: warning multiple definitions of symbol _pcre_free
ext/pcre/pcrelib/pcre_globals.o definition of _pcre_free in section (__DATA,__data)
/server/apache2/bin/httpd definition of _pcre_free
/usr/bin/ld: warning multiple definitions of symbol _pcre_malloc
ext/pcre/pcrelib/pcre_globals.o definition of _pcre_malloc in section (__DATA,__data)
/server/apache2/bin/httpd definition of _pcre_malloc
/usr/bin/ld: warning multiple definitions of symbol _pcre_stack_free
ext/pcre/pcrelib/pcre_globals.o definition of _pcre_stack_free in section (__DATA,__data)
/server/apache2/bin/httpd definition of _pcre_stack_free
/usr/bin/ld: warning multiple definitions of symbol _pcre_stack_malloc
ext/pcre/pcrelib/pcre_globals.o definition of _pcre_stack_malloc in section (__DATA,__data)
/server/apache2/bin/httpd definition of _pcre_stack_malloc
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1