Closed Moohbear2 closed 7 years ago
This is most likely a mismatch between htslib header files and library version.
hts_realloc_or_die is used in the hts_expand macro, since commit 677d9b0a (Dec 2016). If you compile using hts.h since then your code will get dependencies on the hts_realloc_or_die function. The same commit also added this function to hts.c, so it should be in the htslib library.
If however you have htslib installed on your system somewhere already, possibly earlier in your library search path, then you can get the scenario of compiling using headers from one release and linking against the library from another earlier one.
(The bcftools configure script perhaps should check for this scenario, and be explicit about library paths.)
I did install htslib first indeed. I managed to solve the problem by using checkinstall instead of make install.
Hello,
I'm trying to install the samtool suite on a ubuntu machine. I installed htslib and samtools from the cloned git repo without issues, but bcftools is giving me an error. I did
gcc is up-to-date as far as I can tell. Any idea? Thanks!