<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3527" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=385581921-11062009><FONT face=Arial 
color=#0000ff size=2>Dave, Lincoln,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=385581921-11062009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=385581921-11062009><FONT face=Arial 
color=#0000ff size=2>Finally it worked !</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=385581921-11062009><FONT face=Arial 
color=#0000ff size=2>As told by Dave - SAMTools-0.1.3 only 
works.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=385581921-11062009><FONT face=Arial 
color=#0000ff size=2>I had to 
add&nbsp;-fPIC&nbsp;parameter&nbsp;with&nbsp;CFLAG&nbsp; in Makefile of 
SAMTools-0.1.3.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=385581921-11062009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=385581921-11062009><FONT face=Arial 
color=#0000ff size=2>-Bala</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=385581921-11062009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>From:</B> Dave Clements, 
GMOD Help Desk [mailto:gmodhelp@googlemail.com] <BR><B>Sent:</B> Thursday, June 
11, 2009 4:43 PM<BR><B>To:</B> Selvaraj, Balamuruganand (B)<BR><B>Cc:</B> 
gmod-gbrowse@lists.sourceforge.net<BR><B>Subject:</B> Re: [Gmod-gbrowse] 
[Gmod-help] GMOD for Next Generation Sequencing<BR></FONT><BR></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV>Hi Bala,<BR></DIV>
  <DIV></DIV>
  <DIV>I got GBrowse 2 from CPAN:</DIV>
  <DIV>$ sudo perl -MCPAN -e 'install Bio::Graphics::Browser'</DIV>
  <DIV></DIV>
  <DIV>And I did not specify a tag on the checkout of the adaptors (which I 
  think means I got HEAD).<BR>$ cvs 
  -d:pserver:anonymous@gmod.cvs.sourceforge.net:/cvsroot/gmod co 
  gbrowse-adaptors<BR></DIV>
  <DIV></DIV>
  <DIV>Hope this helps,</DIV>
  <DIV></DIV>
  <DIV>Dave C.<BR></DIV>
  <DIV></DIV>
  <DIV class=gmail_quote>On Thu, Jun 11, 2009 at 3:29 PM, Selvaraj, 
  Balamuruganand (B) <SPAN dir=ltr>&lt;<A 
  href="mailto:BSelvaraj@dow.com">BSelvaraj@dow.com</A>&gt;</SPAN> wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
    <DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN>Dave,</SPAN></FONT></DIV>
    <DIV dir=ltr align=left>&nbsp;</DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>Was the 
    Bio-SAM adaptor taken from <B>Main</B> Branch with CVS 
    tag&nbsp;<B>Head.</B></SPAN></FONT></DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN>Thanks</SPAN></FONT></DIV><BR>
    <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
      <DIV lang=en-us dir=ltr align=left>
      <HR>
      <FONT face=Tahoma size=2><B>From:</B> Selvaraj, Balamuruganand (B) 
      [mailto:<A href="mailto:BSelvaraj@dow.com" 
      target=_blank>BSelvaraj@dow.com</A>] <BR><B>Sent:</B> Thursday, June 11, 
      2009 2:17 PM<BR><B>To:</B> <A href="mailto:help@gmod.org" 
      target=_blank>help@gmod.org</A>
      <DIV>
      <DIV class=h5><BR><B>Cc:</B> <A 
      href="mailto:gmod-gbrowse@lists.sourceforge.net" 
      target=_blank>gmod-gbrowse@lists.sourceforge.net</A><BR><B>Subject:</B> 
      Re: [Gmod-gbrowse] [Gmod-help] GMOD for Next Generation 
      Sequencing<BR></DIV></DIV></FONT><BR></DIV>
      <DIV>
      <DIV class=h5>
      <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
      size=2>Dave,</FONT></SPAN></DIV>
      <DIV dir=ltr align=left>&nbsp;</DIV>
      <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Thanks 
      a lot. I will try and let&nbsp;you know about it.</FONT></SPAN></DIV>
      <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
      size=2>I&nbsp;was stuck with -fPIC compilation. But, I will try with 
      SAMTools 0.1.3.</FONT></SPAN></DIV>
      <DIV dir=ltr align=left>&nbsp;</DIV>
      <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
      size=2>-Bala</FONT></SPAN></DIV><BR>
      <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
        <DIV lang=en-us dir=ltr align=left>
        <HR>
        <FONT face=Tahoma size=2><B>From:</B> Dave Clements, GMOD Help Desk 
        [mailto:<A href="mailto:gmodhelp@googlemail.com" 
        target=_blank>gmodhelp@googlemail.com</A>] <BR><B>Sent:</B> Thursday, 
        June 11, 2009 2:05 PM<BR><B>To:</B> Selvaraj, Balamuruganand 
        (B)<BR><B>Cc:</B> <A href="mailto:gmod-gbrowse@lists.sourceforge.net" 
        target=_blank>gmod-gbrowse@lists.sourceforge.net</A><BR><B>Subject:</B> 
        Re: [Gmod-gbrowse] [Gmod-help] GMOD for Next Generation 
        Sequencing<BR></FONT><BR></DIV>Hi Bala,<BR><BR>Sorry for the slow 
        response. &nbsp;I'm travelling all this week.<BR><BR>Here's a 
        long-winded explanation of what I did to get this to work. &nbsp;This 
        may or may not apply to you as I am running on a 32-bit OS and you are 
        running on a 64-bit OS, and that may be a key difference.<BR><BR>The 
        summary is I tried SAMtools 0.1.4, but went back to SAMtools 0.1.3, 
        although for different reasons then what you are seeing.<BR><BR>Hope 
        this helps,<BR><BR>Dave C.<BR><BR><BR>Grinding Details:<BR><BR>I 
        initially got the Bio-SamTools adaptor to work with SAMtools 0.1.3. 
        &nbsp;I had a bit of trouble compiling SAMtools, but none with the 
        adaptor. &nbsp;My trouble with SAMtools 
        was:<BR><BR>&nbsp;samtools-0.1.3$ make<BR>&nbsp;make[1]: Entering 
        directory 
        `/home/clements/Documents/SAMtools/samtools-0.1.3'<BR>&nbsp;gcc -c -g 
        -Wall -O2 -m64 &nbsp;-D_IOLIB=2 -D_FILE_OFFSET_BITS=64 &nbsp; razip.c -o 
        razip.o<BR>&nbsp;In file included from 
        /usr/include/features.h:354,<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
        &nbsp; &nbsp; &nbsp; from /usr/include/stdio.h:28,<BR>&nbsp; &nbsp; 
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from 
        razip.c:1:<BR>&nbsp;/usr/include/gnu/stubs.h:9:27: error: 
        gnu/stubs-64.h: No such file or directory<BR>&nbsp;make[1]: *** 
        [razip.o] Error 1<BR>&nbsp;make[1]: Leaving directory 
        `/home/clements/Documents/SAMtools/samtools-0.1.3'<BR>&nbsp;make: *** 
        [all-recur] Error 1<BR><BR>Which seemed odd, as I have a 32-bit OS. 
        &nbsp;A SAMtools-help posting (<A 
        href="http://sourceforge.net/mailarchive/forum.php?thread_name=D9C3B7043F6C7C408CC62636D8FD01BB982DCA%40ilmn-mail02.illumina.com&amp;forum_name=samtools-help" 
        target=_blank>http://sourceforge.net/mailarchive/forum.php?thread_name=D9C3B7043F6C7C408CC62636D8FD01BB982DCA%40ilmn-mail02.illumina.com&amp;forum_name=samtools-help</A>) 
        helped. &nbsp;I dropped the -m64 from the makefile and it made 
        fine.<BR><BR>Bio-SamTools then also made fine.<BR><BR>And then SAMtools 
        0.1.4 came out. &nbsp;The makefile that comes with 0.1.4 does not 
        produce a libbam.a file. &nbsp;The release notes for 0.1.4 say: 
        <BR><BR>Implemented the GNU building system. However, currently the 
        building system does not generate libbam.a. We will improve this later. 
        For the time being, `make -f Makefile.generic' is preferred. <BR><BR>So 
        I did that and it made, but then I could not make the Bio-SamTools 
        adaptor. When I got to the ./Build step I got<BR><BR>$ 
        ./Build<BR>...<BR>cc -shared -L/usr/local/lib -o 
        blib/arch/auto/Bio/DB/Sam/Sam.so \<BR>&nbsp;lib/Bio/DB/Sam.o 
        \<BR>&nbsp;-L/home/clements/Documents/SAMtools/samtools-0.1.4 
        \<BR>&nbsp;-lbam 
        -lz<BR>/home/clements/Documents/SAMtools/samtools-0.1.4/libbam.a(bam_aux.o): 
        \<BR>&nbsp;In function 
        `bam_aux_get_core':<BR>/home/clements/Documents/SAMtools/samtools-0.1.4/bam_aux.c:22: 
        \<BR>&nbsp;multiple definition of 
        `bam_aux_get_core'<BR>lib/Bio/DB/Sam.o:Sam.c:(.text+0xb220): first 
        defined here<BR>collect2: ld returned 1 exit status<BR>error building 
        blib/arch/auto/Bio/DB/Sam/Sam.so from lib/Bio/DB/Sam.o \<BR>&nbsp;at 
        /usr/share/perl5/ExtUtils/CBuilder/Base.pm line 212.<BR><BR>And then, I 
        gave up and went back to 0.1.3. &nbsp;And that worked fine. &nbsp;I did 
        all this on the version of Bio-SamTools that existed in CVS on 
        2009/05/21.<BR><BR>On Thu, Jun 11, 2009 at 8:46 AM, Selvaraj, 
        Balamuruganand (B)&lt;<A href="mailto:BSelvaraj@dow.com" 
        target=_blank>BSelvaraj@dow.com</A>&gt; wrote:<BR>&gt; Hi,<BR>&gt; 
        &nbsp;<BR>&gt; I tried to recompile with -fPIC option, still get the 
        same error. Has anyone<BR>&gt; tried to use the Bio:DB:SAM plugin with 
        SAMtools ?<BR>&gt; Let me know which version of the SAMTools you used ? 
        I doubt if the latest<BR>&gt; version(0.1.4) of SAMTools is having some 
        problem<BR>&gt; &nbsp;<BR>&gt; Thanks<BR>&gt; -Bala<BR>&gt;<BR>&gt; 
        ________________________________<BR>&gt; From: Selvaraj, Balamuruganand 
        (B)<BR>&gt; Sent: Wednesday, June 10, 2009 1:59 PM<BR>&gt; To: 'Lincoln 
        Stein'<BR>&gt; Cc: '<A href="mailto:gmod-gbrowse@lists.sourceforge.net" 
        target=_blank>gmod-gbrowse@lists.sourceforge.net</A>'<BR>&gt; Subject: 
        RE: [Gmod-gbrowse] [Gmod-help] GMOD for Next Generation 
        Sequencing<BR>&gt;<BR>&gt; Lincoln,<BR>&gt; &nbsp;<BR>&gt; I was trying 
        to build the Bio/Sam pckage obtained from the repository.<BR>&gt; 
        However, the&nbsp;Build.PL present in Bio-SamTools runs without any 
        issues<BR>&gt; But, when I try ./Build I get the below error.<BR>&gt; 
        &nbsp;<BR>&gt; gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
        -fexceptions<BR>&gt; -fstack-protector --param=ssp-buffer-size=4 -m64 
        -mtune=generic -o<BR>&gt; blib/arch/auto/Bio/DB/Sam/Sam.so 
        lib/Bio/DB/Sam.o -L/home/samtools-0.1.4<BR>&gt; -lbam -lz<BR>&gt; 
        /usr/bin/ld: /home/n006481/samtools-0.1.4/libbam.a(bam.o): 
        relocation<BR>&gt; R_X86_64_32 against `a local symbol' can not be used 
        when making a shared<BR>&gt; object; recompile with -fPIC<BR>&gt; 
        /home/samtools-0.1.4/libbam.a: could not read symbols: Bad value<BR>&gt; 
        collect2: ld returned 1 exit status<BR>&gt; error building 
        blib/arch/auto/Bio/DB/Sam/Sam.so from lib/Bio/DB/Sam.o at<BR>&gt; 
        /usr/lib/perl5/site_perl/5.8.8/ExtUtils/CBuilder/Base.pm line 
        212.<BR>&gt; &nbsp;<BR>&gt; When I debugged for the&nbsp;error - it 
        seems to be coming from $build<BR>&gt; -&gt;&nbsp;dispatch the last line 
        of the Build<BR>&gt; It seems to me to be PIC error. Is there a way by 
        which we can rectify this<BR>&gt; error ?<BR>&gt; &nbsp;<BR>&gt; 
        -Bala<BR>&gt;<BR>-- <BR>Was this helpful? &nbsp;Let us know at <A 
        href="http://gmod.org/wiki/Help_Desk_Feedback" 
        target=_blank>http://gmod.org/wiki/Help_Desk_Feedback</A><BR><BR>Learn 
        more about GMOD at:<BR>&nbsp;Arthropod Genomics: <A 
        href="http://www.k-state.edu/agc/symp2009/seminar.html" 
        target=_blank>http://www.k-state.edu/agc/symp2009/seminar.html</A><BR>&nbsp;AGA 
        Next Gen Seq in Non-Models: <A 
        href="http://www.regonline.com/Nextgeneration" 
        target=_blank>http://www.regonline.com/Nextgeneration</A><BR><BR></BLOCKQUOTE></DIV></DIV></BLOCKQUOTE></DIV><BR>------------------------------------------------------------------------------<BR>Crystal 
    Reports - New Free Runtime and 30 Day Trial<BR>Check out the new simplified 
    licensing option that enables unlimited<BR>royalty-free distribution of the 
    report engine for externally facing<BR>server and web deployment.<BR><A 
    href="http://p.sf.net/sfu/businessobjects" 
    target=_blank>http://p.sf.net/sfu/businessobjects</A><BR>_______________________________________________<BR>Gmod-gbrowse 
    mailing list<BR><A 
    href="mailto:Gmod-gbrowse@lists.sourceforge.net">Gmod-gbrowse@lists.sourceforge.net</A><BR><A 
    href="https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse" 
    target=_blank>https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse</A><BR><BR></BLOCKQUOTE></DIV><BR><BR 
  clear=all><BR>-- <BR>Was this helpful? &nbsp;Let us know at <A 
  href="http://gmod.org/wiki/Help_Desk_Feedback">http://gmod.org/wiki/Help_Desk_Feedback</A><BR><BR>Learn 
  more about GMOD at:<BR>&nbsp;SMBE: <A 
  href="http://ccg.biology.uiowa.edu/smbe/symposia.php?action=view&amp;sym_ID=27">http://ccg.biology.uiowa.edu/smbe/symposia.php?action=view&amp;sym_ID=27</A><BR>&nbsp;Arthropod 
  Genomics: <A 
  href="http://www.k-state.edu/agc/symp2009/seminar.html">http://www.k-state.edu/agc/symp2009/seminar.html</A><BR>&nbsp;AGA 
  Next Gen Seq in Non-Models: <A 
  href="http://www.regonline.com/Nextgeneration">http://www.regonline.com/Nextgeneration</A><BR></BLOCKQUOTE></BODY></HTML>