# Extension dependency problems

- Thread: https://externals.io/message/43035
- Original archive: https://news-web.php.net/php.internals/43035
- Started by Andrei Zmievski on 2009-02-13T21:50:01+00:00
- Messages: 2
- 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

---

## #43035 — Andrei Zmievski — 2009-02-13T21:50:01+00:00

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

It seems that our PHP_ADD_EXTENSION_DEP() macro from acinclude.m4 does not actually do any 
linking against the dependent extension despite the comment in it:

   dnl Some systems require that we link $2 to $1 when building

The consequence of this is that if the dependent extension (like igbinary.so) is not 
loaded and you try to load your depending extension (like my memcached.so), you'll get an 
error:

php: symbol lookup error: /usr/local/lib/php/20060613-debug/memcached.so: undefined 
symbol: igbinary_serialize

I asked Wez and he said that the only way to fix it is to do the actual linking which is 
what he proposed a while back. Any reason why it hasn't been done?

-Andrei

---

## #43099 — Andrei Zmievski — 2009-02-18T20:04:09+00:00

URL: https://externals.io/message/43035#43099 · In reply to: #43035

Anyone? Bueller?

Andrei Zmievski wrote:
> It seems that our PHP_ADD_EXTENSION_DEP() macro from acinclude.m4 does 
> not actually do any linking against the dependent extension despite the 
> comment in it:
> 
>   dnl Some systems require that we link $2 to $1 when building
> 
> The consequence of this is that if the dependent extension (like 
> igbinary.so) is not loaded and you try to load your depending extension 
> (like my memcached.so), you'll get an error:
> 
> php: symbol lookup error: 
> /usr/local/lib/php/20060613-debug/memcached.so: undefined symbol: 
> igbinary_serialize
> 
> I asked Wez and he said that the only way to fix it is to do the actual 
> linking which is what he proposed a while back. Any reason why it hasn't 
> been done?
> 
> -Andrei
