Skip to content

Instantly share code, notes, and snippets.

@robsyme
Created April 5, 2012 08:59
Show Gist options
  • Save robsyme/2309326 to your computer and use it in GitHub Desktop.
Save robsyme/2309326 to your computer and use it in GitHub Desktop.
Tabix error
rob-> make
make[1]: Entering directory `/home/rob/src/github/freebayes/vcflib/tabixpp'
gcc -c -g -Wall -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE bgzf.c -o bgzf.o
bgzf.c: In function ‘bgzf_close’:
bgzf.c:630:8: warning: variable ‘count’ set but not used [-Wunused-but-set-variable]
gcc -c -g -Wall -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE kstring.c -o kstring.o
gcc -c -g -Wall -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE knetfile.c -o knetfile.o
knetfile.c: In function ‘khttp_connect_file’:
knetfile.c:418:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
knetfile.c: In function ‘kftp_send_cmd’:
knetfile.c:239:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
gcc -c -g -Wall -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE index.c -o index.o
gcc -c -g -Wall -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE bedidx.c -o bedidx.o
ar -cru libtabix.a bgzf.o kstring.o knetfile.o index.o bedidx.o
ranlib libtabix.a
gcc -c -g -Wall -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE main.c -o main.o
gcc -g -Wall -O2 -fPIC -o tabix main.o -lm -lz -L. -ltabix
./libtabix.a(bgzf.o): In function `deflate_block':
/home/rob/src/github/freebayes/vcflib/tabixpp/bgzf.c:311: undefined reference to `deflate'
/home/rob/src/github/freebayes/vcflib/tabixpp/bgzf.c:313: undefined reference to `deflateEnd'
/home/rob/src/github/freebayes/vcflib/tabixpp/bgzf.c:305: undefined reference to `deflateInit2_'
/home/rob/src/github/freebayes/vcflib/tabixpp/bgzf.c:329: undefined reference to `deflateEnd'
/home/rob/src/github/freebayes/vcflib/tabixpp/bgzf.c:345: undefined reference to `crc32'
/home/rob/src/github/freebayes/vcflib/tabixpp/bgzf.c:346: undefined reference to `crc32'
./libtabix.a(bgzf.o): In function `inflate_block':
/home/rob/src/github/freebayes/vcflib/tabixpp/bgzf.c:380: undefined reference to `inflateInit2_'
/home/rob/src/github/freebayes/vcflib/tabixpp/bgzf.c:385: undefined reference to `inflate'
/home/rob/src/github/freebayes/vcflib/tabixpp/bgzf.c:391: undefined reference to `inflateEnd'
/home/rob/src/github/freebayes/vcflib/tabixpp/bgzf.c:387: undefined reference to `inflateEnd'
./libtabix.a(bedidx.o): In function `ks_getuntil':
/home/rob/src/github/freebayes/vcflib/tabixpp/bedidx.c:11: undefined reference to `gzread'
./libtabix.a(bedidx.o): In function `bed_read':
/home/rob/src/github/freebayes/vcflib/tabixpp/bedidx.c:103: undefined reference to `gzdopen'
./libtabix.a(bedidx.o): In function `ks_getc':
/home/rob/src/github/freebayes/vcflib/tabixpp/bedidx.c:11: undefined reference to `gzread'
./libtabix.a(bedidx.o): In function `bed_read':
/home/rob/src/github/freebayes/vcflib/tabixpp/bedidx.c:138: undefined reference to `gzclose'
/home/rob/src/github/freebayes/vcflib/tabixpp/bedidx.c:103: undefined reference to `gzopen64'
collect2: ld returned 1 exit status
make[1]: *** [tabix] Error 1
make[1]: Leaving directory `/home/rob/src/github/freebayes/vcflib/tabixpp'
make: *** [all-recur] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment