Package: libcapi20-3
Version: 1:3.9.20060704+dfsg.2-12
Tags: patch

Hello,

as requested by you in bug #645666, here is a new bug report
for the problem.

Using chan_capi with asterisk shows the problem:
/usr/sbin/asterisk: symbol lookup error:
/usr/lib/capi/lib_capi_mod_std.so: undefined symbol:
processMessage

To my understanding, there is a circular symbol dependancy
between libcapi20.so and lib_capi_mod_std.so (and the other libs in
/usr/lib/capi/, but I am only using local capi)

One way to solve this is to give libcapi twice to the linker at
appropriate positions (cfr. -lgcc appearing several times during
gcc build)

A proposal that works for me, i.e. the package builds and works
properly, is mentioned at
https://bugzillafiles.novell.org/attachment.cgi?id=460626
(in clear text below)

As you mentioned in the previous bug report, you don't like touching
the .la files.
You do not need to ship them in any packages,
just use them at build time, as the lib_capi_mod* files are sort
of plugins to libcapi20.
The goal is to have the linker for lib_capi_mod_std.so resolving
symbols via libcapi20.so. By using the .la files you do not have
to give the full path for it, which might be tricky as it is
different at built time and at package using time, so the .la
files provide a convinience here instead of using libcapi20.so
and -R<path>. For alternative ways the description of the
-rpath and -rpath-link in the ld documetation might be helpful.

However, to my understanding the proposed usage of the .la files
is ok with
http://www.netfort.gr.jp/~dancer/column/libpkg-guide/libpkg-guide.html

Nevertheless, any alternative solution is very welcome.
I would appreciate if for pragmatic reasons this fix could be
included to make it work for the time being, and, in case it
conflicts with the long run policy, have another bug (cloned,
e.g. ;-) to implement the final solution.

As for the other bug reports, I am willing and able to test any
packages if you wish.

Bye,

Joerg

Index: isdn4k-utils/capi20/Makefile.am
===================================================================
--- isdn4k-utils.orig/capi20/Makefile.am
+++ isdn4k-utils/capi20/Makefile.am
@@ -19,14 +19,17 @@
 lib_capi_mod_std_la_SOURCES = capi_mod_std.c
 lib_capi_mod_std_la_CFLAGS = -fno-strict-aliasing
 lib_capi_mod_std_la_LDFLAGS = -shared
+lib_capi_mod_std_la_LIBADD = libcapi20.la
 
 lib_capi_mod_fritzbox_la_SOURCES = capi_mod_fritzbox.c
 lib_capi_mod_fritzbox_la_CFLAGS = -fno-strict-aliasing
 lib_capi_mod_fritzbox_la_LDFLAGS = -shared
+lib_capi_mod_fritzbox_la_LIBADD = libcapi20.la
 
 lib_capi_mod_rcapi_la_SOURCES = capi_mod_rcapi.c
 lib_capi_mod_rcapi_la_CFLAGS = -fno-strict-aliasing
 lib_capi_mod_rcapi_la_LDFLAGS = -shared
+lib_capi_mod_rcapi_la_LIBADD = libcapi20.la
 
 libcapi20dyn_a_SOURCES = capidyn.c
 libcapi20dyn_a_CFLAGS = -fPIC

Attachment: signature.asc
Description: Digital signature

Reply via email to