Compiling 5.3 Snap on OS.X (embed & static/shared compile issue)
| From: | Ralph Schindler | Date: | Fri, 05 Jun 2009 16:59:59 +0000 |
| Subject: | Compiling 5.3 Snap on OS.X (embed & static/shared compile issue) | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-44182@lists.php.net to get a copy of this message | ||
I attempted to compile the 5.3 snap for the cli and embed sapi (Shared) and run into what appears to be an issue with trying to link duplicated symbols.
The problem appears to go away if I attempt to compile the embed sapi statically.
Other report:
http://marc.info/?l=php-install&m=120475189522623&w=2
Similarly described in this bug:
http://bugs.php.net/bug.php?id=42106
My issue:
ld: duplicate symbol _spl_ce_SplDoublyLinkedList in ext/spl/.libs/spl_dllist.o and ext/spl/.libs/php_spl.o
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
Is this an issue? should i file a bug report?
I am using the stock gcc provided with xcode on os.x 10.5, no custom CFLAGS. I imagine the problem goes away when statically compiling b/c I see this line where the original error is produced:
"copying selected object files to avoid basename conflicts..."
Thanks,
Ralph Schindler