Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • BmoreHawk
    Junior Member
    • May 2013
    • 2

    samtools compiling issues on Solaris 11

    Hi all,

    I'm quite new to the field and I'm having issues compiling samtools 0.1.19 from source. I'm using a SunOs Solaris 11 platform and this is the message displayed ....
    (I have installed zlib 1.2.3 and GNU ncurses 5.9 as indicated in the INSTALL file)...

    am2bcf_indel.c: In function ‘bcf_call_gap_prep’:
    bam2bcf_indel.c:408:3: warning: implicit declaration of function ‘alloca’
    gcc -c -g -Wall -O2 -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
    bam_tview_curses.c:7:2: warning: #warning "_CURSES_LIB=1 but NCURSES_VERSION not defined; tview is NOT compiled"
    In file included from bam_tview.h:11:0,
    from bam_tview_curses.c:19:
    faidx.h:76:50: error: expected ‘;’, ‘,’ or ‘)’ before ‘register’
    bam_tview_curses.c:287:2: warning: #warning "No curses library is available; tview with curses is disabled."
    *** Error code 1
    make: Fatal error: Command failed for target `bam_tview_curses.o'
    Current working directory /home/username/samtools/samtools-0.1.19
    *** Error code 1
    The following command caused the error:
    target=`echo all-recur | sed s/-recur//`; \
    wdir=`pwd`; \
    list='. bcftools misc'; for subdir in $list; do \
    cd $subdir; \
    make CC="gcc" DFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1" CFLAGS="-g -Wall -O2" \
    INCLUDES="-I." LIBPATH="" $target || exit 1; \
    cd $wdir; \
    done;
    make: Fatal error: Command failed for target `all-recur'


    I tried to make clean and modify the Makefile as follows

    `-D_CURSES_LIB=1' to `-D_CURSES_LIB=0' at the line starting with `DFLAGS=', and
    comment out the line starting with `LIBCURSES='. as suggested in the INSTALL file

    but I still get an error...

    does anyone have an idea on what is going wrong ?
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Have you tried appending the LD_LIBRARY_PATH variable with paths for ncurses and zlib?

    Comment

    • swbarnes2
      Senior Member
      • May 2008
      • 910

      #3
      Random suggestion; at the suggestion of another informatics guy at my work, I altered the samtools Makefile so that it read


      Code:
      LIBCURSES=	-lncurses
      And that made it work for me. So maybe a small tweak to that line of the Makefile will fix your problem.

      Comment

      • sridhar28
        Member
        • May 2013
        • 15

        #4
        Hi,
        I face same problem as mentioned. i am installing samtools version0.19 .
        The Error i am getting is
        warning: #warning "No curses library is available; tview with curses is disabled."
        gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=0 -I. bam_tview_html.c -o bam_tview_html.o
        gcc -g -Wall -O2 -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 -lncurses -lm -lz -lpthread
        phase.o: In function `loadpos':
        /illumina/data/galaxy/apps/samtools/phase.c:475: undefined reference to `gzopen64'
        bedcov.o: In function `main_bedcov':
        /illumina/data/galaxy/apps/samtools/bedcov.c:69: undefined reference to `gzopen64'
        libbam.a(bam_import.o): In function `__bam_get_lines':
        /illumina/data/galaxy/apps/samtools/bam_import.c:76: undefined reference to `gzopen64'
        libbam.a(bam_import.o): In function `sam_open':
        /illumina/data/galaxy/apps/samtools/bam_import.c:472: undefined reference to `gzopen64'
        libbam.a(bam_import.o): In function `sam_header_read2':
        /illumina/data/galaxy/apps/samtools/bam_import.c:126: undefined reference to `gzopen64'
        libbam.a(bedidx.o):/illumina/data/galaxy/apps/samtools/bedidx.c:107: more undefined references to `gzopen64' follow
        collect2: ld returned 1 exit status
        make[1]: *** [samtools] Error 1
        make[1]: Leaving directory `/illumina/data/galaxy/apps/samtools'
        make: *** [all-recur] Error 1

        Even i tried to change "LIBCURSES= -lncurses" and try make. but again i am getting same error

        please suggest..

        Thanks
        Sridhar

        Comment

        • GenoMax
          Senior Member
          • Feb 2008
          • 7142

          #5
          Originally posted by sridhar28 View Post
          Hi,
          I face same problem as mentioned. i am installing samtools version0.19 .
          The Error i am getting is
          warning: #warning "No curses library is available; tview with curses is disabled."
          gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=0 -I. bam_tview_html.c -o bam_tview_html.o
          gcc -g -Wall -O2 -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 -lncurses -lm -lz -lpthread
          phase.o: In function `loadpos':
          /illumina/data/galaxy/apps/samtools/phase.c:475: undefined reference to `gzopen64'
          bedcov.o: In function `main_bedcov':
          /illumina/data/galaxy/apps/samtools/bedcov.c:69: undefined reference to `gzopen64'
          libbam.a(bam_import.o): In function `__bam_get_lines':
          /illumina/data/galaxy/apps/samtools/bam_import.c:76: undefined reference to `gzopen64'
          libbam.a(bam_import.o): In function `sam_open':
          /illumina/data/galaxy/apps/samtools/bam_import.c:472: undefined reference to `gzopen64'
          libbam.a(bam_import.o): In function `sam_header_read2':
          /illumina/data/galaxy/apps/samtools/bam_import.c:126: undefined reference to `gzopen64'
          libbam.a(bedidx.o):/illumina/data/galaxy/apps/samtools/bedidx.c:107: more undefined references to `gzopen64' follow
          collect2: ld returned 1 exit status
          make[1]: *** [samtools] Error 1
          make[1]: Leaving directory `/illumina/data/galaxy/apps/samtools'
          make: *** [all-recur] Error 1

          Even i tried to change "LIBCURSES= -lncurses" and try make. but again i am getting same error

          please suggest..

          Thanks
          Sridhar
          Have you installed the Zlib and NCURSES libraries?

          Comment

          • sridhar28
            Member
            • May 2013
            • 15

            #6
            Hi geno,

            Thank you for the reply.

            I dint install those library.. could you please tell how to install it??

            Thanks
            Sridhar

            Comment

            • GenoMax
              Senior Member
              • Feb 2008
              • 7142

              #7
              Originally posted by sridhar28 View Post
              Hi geno,

              Thank you for the reply.

              I dint install those library.. could you please tell how to install it??

              Thanks
              Sridhar
              I am rusty on solaris so there may be other ways to get this:





              Sunfreeware site: http://www.sunfreeware.com/source-list.html

              Comment

              • sridhar28
                Member
                • May 2013
                • 15

                #8
                Hi Geno,

                Thanks for the links..

                i am using redhat linux system..
                after installing again i am facing same errors.. any thoughts??

                samtools binary will be created only after installing the libraries??
                Last edited by sridhar28; 05-30-2013, 09:29 PM.

                Comment

                Latest Articles

                Collapse

                • SEQadmin2
                  Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                  by SEQadmin2


                  Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                  The systematic characterization of the human proteome has
                  ...
                  07-20-2026, 11:48 AM
                • SEQadmin2
                  Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                  by SEQadmin2



                  Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                  ...
                  07-09-2026, 11:10 AM
                • SEQadmin2
                  Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                  by SEQadmin2



                  Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                  There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                  07-08-2026, 05:17 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, 07-24-2026, 12:17 PM
                0 responses
                25 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-23-2026, 11:41 AM
                0 responses
                20 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-20-2026, 11:10 AM
                0 responses
                27 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-13-2026, 10:26 AM
                0 responses
                38 views
                0 reactions
                Last Post SEQadmin2  
                Working...