Print

Print


On Thu, Jun 28, 2012 at 7:51 AM, OlŠµ Streicher
<[log in to unmask]> wrote:
> Tim Jenness <[log in to unmask]> writes:
>> What do these warnings mean? They are the libm symbols.
>
>> dpkg-shlibdeps: warning: symbol fmod used by
>> debian/libstarlink-pal0/usr/lib/libstarlink_pal.so.0.0.0 found in none
>> of the libraries.
>
> The Debian builder checks that all symbols of a shared library are
> resolved. Since the math library is not linked during the build process
> of pal (and ast), its symbols remain unresolved, and the user has to add
> -lm when linking the whole program. Adding "-lm" to libpal_la_LIBADD
> (resp. libast_la_LIBADD) in Makefile.am solves this problem. The other
> symbols not found in libstarlink-ast0 are on purpose (they are to be
> provided by the user, or the fallback libraries).
>

I hadn't noticed the issue because in the Starlink build for SOFA (I
wrote a configure.ac and Makefile.am for it and there is a SOFA git
repository I put together) I do an AC_CHECK_LIB that leads to libm
automatically being included in libpal when I create libpal. Since PAL
does use sin/cos I've added AC_CHECK_LIB to PAL configure.ac in v0.1.5
(and on OSX libm is never needed since it's all in libSystem). v0.1.5
has been uploaded.

-- 
Tim Jenness