From 25984d7c50bfcdded9ac9dbfc85dd4b7f80e7e7f Mon Sep 17 00:00:00 2001 From: chapmanb Date: Thu, 26 Oct 2017 12:48:11 -0400 Subject: [PATCH] Support for krand in htslib 1.6 htslib 1.6 changed how ksort is exposed, internalizing drand48 into hts_drand48 (samtools/htslib#559). This caused a lookup error during compiling: ``` src/reader.cpp:67: undefined reference to `hts_drand48()' ``` Triggered when initializing ksort: https://github.com/chapmanb/pindel/blob/b706fba61c64a11fb1d3716d501fd2f4d8992e29/src/reader.cpp#L67 This works around the issue by referencing hts_drand48 to drand48. --- src/reader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reader.cpp b/src/reader.cpp index a6f8794b..14013de7 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -30,6 +30,7 @@ #include "htslib/kstring.h" #include "htslib/kseq.h" #include "htslib/khash.h" +#define hts_drand48(void) drand48() //HTSLIB 1.6 compatibility #include "htslib/ksort.h" // Pindel header files