Re: iROOT, iBRAT, et al.

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Thu Jan 30 2003 - 09:17:41 EST

  • Next message: Flemming Videbaek: "oMan oBrag"
    Hi Steve, 
    
    "Stephen J. Sanders" <sjs@sunflower.com> wrote concerning
      Re: iROOT, iBRAT, et al. [Thu, 30 Jan 2003 06:56:37 -0600] 
    ----------------------------------------------------------------------
    > Hi Christian,
    >
    > Unfortunately, the culprit for the multiple symbols are the two
    > modules that we get using kuipc (guinti.c and ukcard.c).
    
    Oh, we're talking about BRAG - sorry I thought we were talking about
    BRAT, sorry.  Then the `inline' stuff won't do the trick. 
    
    > kuipc appears to load in a large number of "standard" subroutines. 
    
    You mean `functions' don't you?  `kuipc' creates C code, not Fortran
    code.  I don't know if it the case or not, but the functions should be
    `static' .  If they are not, then there's something wrong with
    `kuipc'. 
    
    Also, this is importing functions directly into an object file, rather
    than relying on external routines, is so typical old-school (back when
    a 8086 was top of the line in the office), ugly and really _really_
    inefficient.  In fact, BRAG has a similar thing: rather than relying
    on the presence of the GEANT3.21 headers somewhere on the system, it
    has imported them all directly into the `include' directory - which
    is creates potential for disaster: if the headers in BRAG (the common
    blocks) are not in sync with libgeant321.a library, chaos _will_
    ensue.  Another legacy from back when static libraries was the coolest
    thing next to `dd' :-) 
    
    > I haven't been able to figure out how to merge the guinti.cdf and
    > ukcard.cdf files, which I suspect would solve the problem (assuming
    > such a merger were possible).
    
    I think you can simple put one into the other, and that's it.  But
    don't take my word for it: Read The Manual [1] (no online version I'm
    afraid). 
    
    > p.s. Thanks for the libtoolize tip.  This seems to work.
    
    With newer Autotools, that step is mandetory, so the full preparation
    sequence becomes: 
    
      libtoolize --automake 
      autoheader 
      automake --add-missing
      autoconf 
     
    Yours, 
    
     ___  |  Christian Holm Christensen 
      |_| |	 -------------------------------------------------------------
        | |	 Address: Sankt Hansgade 23, 1. th.  Phone:  (+45) 35 35 96 91
         _|	          DK-2200 Copenhagen N       Cell:   (+45) 24 61 85 91
        _|	          Denmark                    Office: (+45) 353  25 305
     ____|	 Email:   cholm@nbi.dk               Web:    www.nbi.dk/~cholm
     | |
    
    [1] http://wwwinfo.cern.ch/asdoc/psdir/kuip.ps.gz
    


    This archive was generated by hypermail 2.1.5 : Thu Jan 30 2003 - 09:18:37 EST