Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jwhite
    Member
    • Jun 2012
    • 33

    #1

    zlib problem in Samtools compilation

    Hi,

    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
    linux jwhite25 is online now Edit/Delete Message
  • Richard Finney
    Senior Member
    • Feb 2009
    • 701

    #2
    See previous discussion ...
    Application of sequencing to RNA analysis (RNA-Seq, whole transcriptome, SAGE, expression analysis, novel organism mining, splice variants)

    Comment

    • CloneNum3
      Junior Member
      • Sep 2014
      • 1

      #3
      How I fixed my gzopen64 issue

      1. Download/compile/install zlib 1.2.8 from source
      Code:
       ./configure && make && make install
      2. vim ./Makefile <-- edit the make file
      3. replace all -lz with the variable $(ZLIB)
      Code:
      :s/-lz/$(ZLIB)/g
      4. Add near the top under LDLIBS=
      Code:
      ZLIB = -I/usr/local/include -L/usr/local/lib -lz
      5. save/quit
      Code:
      :wq!
      6. make
      Last edited by CloneNum3; 09-24-2014, 11:31 AM. Reason: install zlib 1.2.8 before other steps

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
        by SEQadmin2



        Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

        Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
        ...
        10-14-2026, 09:55 AM
      • SEQadmin2
        New Genomics Technologies Take Aim at Long-Standing Limits
        by SEQadmin2


        Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

        We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
        ...
        09-28-2026, 10:25 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 11:13 AM
      0 responses
      19 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, Yesterday, 10:48 AM
      0 responses
      18 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      36 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-14-2026, 05:39 AM
      0 responses
      42 views
      0 reactions
      Last Post SEQadmin2  
      Working...