LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-16-2014, 03:27 PM   #1
jwhite25
LQ Newbie
 
Registered: May 2014
Posts: 2

Rep: Reputation: Disabled
zlib problem in Samtools compilation


Hi,

I work at the Mass. Eye and Ear Infirmary doing bioinformatics.

Recently, I upgraded several of our cluster's RHEL packages for a new library that I wanted to use. One of these was Samtools, another was zlib.

In order to recover from some of the problems with the installation, I decided to reinstall samtools-0.1.19, and downgrade the zlib installation.

Our zlib.so is version 1.2.3, but I'm not sure what it was before being upgraded. The latest is 1.2.8 and I've read that this caused problem when compiling samtools. So I think this needs to be downgraded.

Second, I am no longer able to compile samtools from any version, eg 0.1.18 or 0.1.19. The errors are shown below at the very bottom of the output. The issue seems to be an invalid reference to gzopen64 from the zlib library.

Has anyone run into this problem before? What would you suggest to clean up this mess. We need to recover the samtools binary soon.

Thanks for any help you can supply.
Cheers,

Joe White



$ make
make[1]: Entering directory `/home/whitejo/samtools-0.1.19'
make[2]: Entering directory `/home/whitejo/samtools-0.1.19'
gcc -c -g -Wall -O3 -m64 -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -DBGZF_CACHE -I. bgzf.c -o bgzf.o
gcc -c -g -Wall -O3 -m64 -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. kstring.c -o kstring.o
gcc -c -g -Wall -O3 -m64 -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_aux.c -o bam_aux.o
[.. snip ..]
gcc -c -g -Wall -O3 -m64 -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_tview_curses.c -o bam_tview_curses.o
gcc -c -g -Wall -O3 -m64 -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_tview_html.c -o bam_tview_html.o
gcc -g -Wall -O3 -m64 -fPIC -o samtools bam_tview.o bam_plcmd.o sam_view.o bam_rmdup.o bam_rmdupse.o bam_mate.o bam_stat.o bam_color.o bamtk.o kaln.o bam2bcf.o bam2bcf_indel.o errmod.o sample.o cut_target.o phase.o bam2depth.o padding.o bedcov.o bamshuf.o bam_tview_curses.o bam_tview_html.o libbam.a -Lbcftools -lbcf -lcurses -lm -lz -lpthread
phase.o: In function `loadpos':
/home/whitejo/samtools-0.1.19/phase.c:475: undefined reference to `gzopen64'
bedcov.o: In function `main_bedcov':
/home/whitejo/samtools-0.1.19/bedcov.c:69: undefined reference to `gzopen64'
libbam.a(bam_import.o): In function `__bam_get_lines':
/home/whitejo/samtools-0.1.19/bam_import.c:76: undefined reference to `gzopen64'
libbam.a(bam_import.o): In function `sam_open':
/home/whitejo/samtools-0.1.19/bam_import.c:472: undefined reference to `gzopen64'
libbam.a(bam_import.o): In function `sam_header_read2':
/home/whitejo/samtools-0.1.19/bam_import.c:126: undefined reference to `gzopen64'
libbam.a(bedidx.o):/home/whitejo/samtools-0.1.19/bedidx.c:107: more undefined references to `gzopen64' follow
collect2: ld returned 1 exit status
make[1]: *** [samtools] Error 1
make[1]: Leaving directory `/home/whitejo/samtools-0.1.19'
make: *** [all-recur] Error 1
 
Old 05-16-2014, 03:53 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
zlib is critical to redhat so you really DO need to use the version in the RHN repo

so
How did you upgrade some of the software?
using the recommended way
Code:
su -
yum update
or did you break the package management and install random rpm's from random websites ?

or build source code ?
 
Old 05-17-2014, 12:35 PM   #3
jwhite25
LQ Newbie
 
Registered: May 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
The package was meant for RHEL 6 and was installed with rpm. The zlib version was 1.2.3.

Joe White
 
Old 05-17-2014, 12:56 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
Quote:
The package was meant for RHEL 6 and was installed with rpm.
was it from RPMforge ? or EPEL if so it might be incompatible with the RHN software

you really should use yum to install software
also did you update the zlib-devel.rpm ?
that has the headers needed to build software
Code:
su -
yum install zlib zlib-devel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] zlib-dev problem metal312 Linux - Newbie 2 07-07-2010 03:42 AM
zlib compilation shariefbe Linux - Software 2 02-15-2010 11:17 PM
zlib cross compilation shariefbe Linux - Software 2 02-15-2010 10:33 PM
no matching comp found: client zlib none, zlib@openssh.com lost connection jorge_ivan Linux - Networking 0 08-14-2006 07:09 PM
zlib.h problem jnusa Programming 4 01-14-2005 12:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration