Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Philcolson
    Member
    • Jul 2012
    • 12

    #16
    If anyone has solved the error: conflicting types for 'exp' or the equivalent for 'log', I'd be incredibly grateful.

    Comment

    • Richard Finney
      Senior Member
      • Feb 2009
      • 701

      #17
      Is the conflicting types a warning or an error ?
      Can you display the full message?

      If it's just a warning, don't worry about it.

      Comment

      • Philcolson
        Member
        • Jul 2012
        • 12

        #18
        phil@phil:~/Desktop/samtools-0.1.18$ make
        make[1]: Entering directory `/home/phil/Desktop/samtools-0.1.18'
        make[2]: Entering directory `/home/phil/Desktop/samtools-0.1.18'
        gcc -c -g -Wall -O2 -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. 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 -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. kstring.c -o kstring.o
        gcc -c -g -Wall -O2 -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam_aux.c -o bam_aux.o
        gcc -c -g -Wall -O2 -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam.c -o bam.o
        gcc -c -g -Wall -O2 -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam_import.c -o bam_import.o
        gcc -c -g -Wall -O2 -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. sam.c -o sam.o
        gcc -c -g -Wall -O2 -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam_index.c -o bam_index.o
        bam_index.c: In function ‘bam_index_load_core’:
        bam_index.c:330:7: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
        bam_index.c:337:7: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
        bam_index.c:350:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
        bam_index.c:353:9: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
        bam_index.c:357:9: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
        bam_index.c:361:9: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
        bam_index.c:371:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
        bam_index.c:375:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
        gcc -c -g -Wall -O2 -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam_pileup.c -o bam_pileup.o
        bam_pileup.c: In function ‘resolve_cigar2’:
        bam_pileup.c:75:9: warning: variable ‘is_head’ set but not used [-Wunused-but-set-variable]
        gcc -c -g -Wall -O2 -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam_lpileup.c -o bam_lpileup.o
        gcc -c -g -Wall -O2 -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam_md.c -o bam_md.o
        In file included from /usr/include/math.h:146:0,
        from bam_md.c:5:
        /usr/include/x86_64-linux-gnu/bits/mathcalls.h:101:1: error: conflicting types for ‘exp’
        /usr/include/x86_64-linux-gnu/bits/mathcalls.h:110:1: error: conflicting types for ‘log’
        make[2]: *** [bam_md.o] Error 1
        make[2]: Leaving directory `/home/phil/Desktop/samtools-0.1.18'
        make[1]: *** [lib-recur] Error 1
        make[1]: Leaving directory `/home/phil/Desktop/samtools-0.1.18'
        make: *** [all-recur] Error 1

        Comment

        • Philcolson
          Member
          • Jul 2012
          • 12

          #19
          I don't quite know what's important, so there's all of it.

          Comment

          • Philcolson
            Member
            • Jul 2012
            • 12

            #20
            Figured it out! I put in, from somewhere I found online, the -Dexpl=exp -Dlogl=log line in DFLAGS. Got rid of that and it worked! Thanks!

            Comment

            • NRP
              Junior Member
              • Oct 2011
              • 7

              #21
              I was having the same problem running make in Ubuntu 12.04 lts, with errors resulting from problems with both zlib and curses. Ultimately the solution was to do this:

              sudo apt-get update
              sudo apt-get install zlib1g-dev libncurses5-dev
              sudo make clean
              sudo make

              Comment

              • Philcolson
                Member
                • Jul 2012
                • 12

                #22
                Thanks, NRP! I'll pass that onto anyone having a similar problem!

                Comment

                • NicolaLosito
                  Member
                  • Apr 2012
                  • 10

                  #23
                  Originally posted by Richard Finney View Post
                  CFLAGS should be on the second line of the make file (Makefile)...

                  Makefile should be modified like this ...
                  CFLAGS= -g -Wall -O2 -I/usr/include/ncurses

                  On an Ubuntu box if you install the libncurses5 and libncurses5-dev the -I parameter is useless…
                  SysAdmin & ICT consultant
                  http://about.me/nicola.losito

                  Comment

                  • seqie
                    Junior Member
                    • Jan 2014
                    • 1

                    #24
                    there are installation instructions in the file "INSTALL":
                    The text-based viewer (tview) requires the GNU ncurses library
                    <http://www.gnu.org/software/ncurses/>, which comes with Mac OS X and most of
                    the modern Linux/Unix distributions. If you do not have this library installed,
                    you can still compile the rest of SAMtools by manually changing:
                    `-D_CURSES_LIB=1' to `-D_CURSES_LIB=0' at the line starting with `DFLAGS=', and
                    comment out the line starting with `LIBCURSES='.

                    Worked for me (Ubuntu 12.04)

                    Comment

                    • wolfpack14
                      Member
                      • Jan 2014
                      • 12

                      #25
                      When it comes to running packages like samtools, bedtools or any other kind of bioinformatics solution on a Windows box, you're better off getting VMWare and installing Ubuntu. Trying to compile things from source with Cygwin is asking for trouble.
                      Last edited by wolfpack14; 01-30-2014, 10:57 AM. Reason: Spelling

                      Comment

                      Latest Articles

                      Collapse

                      • 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
                      • GATTACAT
                        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                        by GATTACAT
                        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                        07-01-2026, 11:43 AM

                      ad_right_rmr

                      Collapse

                      News

                      Collapse

                      Topics Statistics Last Post
                      Started by SEQadmin2, Yesterday, 10:26 AM
                      0 responses
                      13 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 07-09-2026, 10:04 AM
                      0 responses
                      25 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 07-08-2026, 10:08 AM
                      0 responses
                      16 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 07-07-2026, 11:05 AM
                      0 responses
                      33 views
                      0 reactions
                      Last Post SEQadmin2  
                      Working...