[PATCH] build: resolve link failure in libosmogsm when --disable-talloc is used

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Hans Peter Freyther holger at freyther.de
Mon Feb 18 14:47:27 UTC 2013


On Sun, Feb 17, 2013 at 08:42:55PM +0100, Jan Engelhardt wrote:

Hi,

> The link stage fails at some point. libosmogsm.so:lapd-core.c uses
> talloc_free, but does not link to libtalloc.so. Correct this.

Disabling talloc is only supported for the OsmocomBB use case. I
understand that many distributions ship a standalone libtalloc by
now and we should find ways to support it but your patch doesn't
look like the solution to the problem.

E.g. a solution would include:

* Detecting the system talloc
* Not installing the osmocom/core/talloc.h or finding a header
file that will just include_next talloc.h for the real talloc. This
is important as there is no gurantee that osmocom/core/talloc.h and
talloc.h are compatible with each other.


thanks
	holger




More information about the OpenBSC mailing list