[Debian-med-packaging] Bug#835074: How to solve "'float log2(float)' conflicts with a previous declaration"

Gianfranco Costamagna locutusofborg at debian.org
Tue Aug 30 07:00:52 UTC 2016


Hi,

>I tried to fix the issue with the duplicated definition of log2 in

>clustalo in Git[1] but failed.  It probably failed since even if I
>remove the line that should be excluded by #ifndef HAVE_LOG2 the problem
>persists and so I assume there is another log2 definition done
>somewhere.


pull-debians-source clustalo
cd clustalo-*

grep log2 . -R

a quick search seems to return
./src/clustal/mbed.c:#define log2(x)  (log(x) / 0.69314718055994530942)

there is also an interesting define
/* Has log2() */
#ifndef CLUSTAL_OMEGA_HAVE_LOG2
#define CLUSTAL_OMEGA_HAVE_LOG2 1
#endif


G.



More information about the Debian-med-packaging mailing list