samtools / bcftools

This is the official development repository for BCFtools. See installation instructions and other documentation here http://samtools.github.io/bcftools/howtos/install.html
http://samtools.github.io/bcftools/
Other
682 stars 240 forks source link

undefined reference to `bcf_hdr_format' when running make #471

Closed jjfarrell closed 8 years ago

jjfarrell commented 8 years ago

When running make on the cloned develop branch of bcftools, the following error occurs:

gcc -rdynamic -o bcftools main.o vcfindex.o tabix.o vcfstats.o vcfisec.o vcfmerge.o vcfquery.o vcffilter.o filter.o vcfsom.o vcfnorm.o vcfgtcheck.o vcfview.o vcfannotate.o vcfroh.o vcfconcat.o vcfcall.o mcall.o vcmp.o gvcf.o reheader.o convert.o vcfconvert.o tsv2vcf.o vcfcnv.o HMM.o vcfplugin.o consensus.o ploidy.o bin.o hclust.o version.o regidx.o smpl_ilist.o mpileup.o bam2bcf.o bam2bcf_indel.o bam_sample.o ccall.o em.o prob1.o kmin.o ../htslib/libhts.a -lpthread -lz -lm -ldl reheader.o: In function reheader_bcf': /restricted/projectnb/genpro/github/bcftools/reheader.c:374: undefined reference tobcf_hdr_format' collect2: ld returned 1 exit status make: *\ [bcftools] Error 1

jjfarrell commented 8 years ago

The develop branch of htslib.git is needed to avoid that error.

git clone --branch=develop git://github.com/samtools/htslib.git git clone --branch=develop git://github.com/samtools/bcftools.git git clone --branch=develop git://github.com/samtools/samtools.git cd bcftools; make cd ../samtools; make

pd3 commented 8 years ago

I believe this is resolved, closing now.