[Chilli] Unresolved symbols in libchilli.so.0.0.0
Paweł Zuzelski
pzz at touk.pl
Thu Oct 14 15:17:36 UTC 2010
Hello,
libchilli.so.0.0.0 is not linked with libbstring, but it uses
symbols from libbstring, so there are several unresolved symbols in
libchilli.so.0.0.0:
Unresolved symbols found in: /tmp/coovachilli-1.2.4-root-z/usr/lib/libchilli.so.0.0.0
bfromcstralloc
bdestroy
bconchar
ballocmin
bassigncstr
bassignformat
_options
blk2bstr
bcatblk
bconcat
bvcformata
btrimws
portable_snprintf
bcatcstr
bfromcstr
It works, because chilli is linked with libbstring, though it is
evil practice. I.e. libchilli.so should links with libbstring
directly.
There is a patch against SVN trunk, written by Przemysław Iskra
<sparky at pld-linux.org>, that partially fixes linking.
Please, consider applying it:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/coovachilli/coovachilli-link.patch?rev=1.1.2.1;content-type=text%2Fplain;only_with_tag=DEVEL
Even after applying this patch there is still one unresolved symbol:
_options. This symbol comes from chilli binary. Why on earth shared
library needs a symbol from executable binary? Note that it means
that no other binary would be able to link with libchilli unless it
provides _options, so it makes splitting part of the code to shared
library pointless.
--
Regards,
Paweł Zuzelski
More information about the Chilli
mailing list