# Compiling 5.3 Snap on OS.X (embed & static/shared compile issue)

- Thread: https://externals.io/message/44182
- Original archive: https://news-web.php.net/php.internals/44182
- Started by Ralph Schindler on 2009-06-05T16:59:59+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #44182 — Ralph Schindler — 2009-06-05T16:59:59+00:00

URL: https://externals.io/message/44182#44182

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

---

## #44184 — Paul Biggar — 2009-06-05T17:13:11+00:00

URL: https://externals.io/message/44182#44184 · In reply to: #44182

Hi Ralph,


> Similarly described in this bug:
>
>  http://bugs.php.net/bug.php?id=42106

You might also find this relevant: http://bugs.php.net/bug.php?id=44462


Thanks,
Paul


-- 
Paul Biggar
paul.biggar@gmail.com

---

## #44185 — Philip Olson — 2009-06-05T17:53:31+00:00

URL: https://externals.io/message/44182#44185 · In reply to: #44182

> 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

I can confirm the exact same error after "./configure --enable-embed"  
but know nothing beyond that.

Regards,
Philip
