MAGIC Magic Mailing List
 
 

From: Crutcher Dunnavant (crutcher+magic AT eng DOT ua.edu)
Date: Fri Apr 19 2002 - 17:06:20 EDT

  • Next message: ahmet: "Tidy, see www.w3.org"

    ++ 19/04/02 20:20 +0200 - Spaceborne Calin:
    >  --- Anand Kandasamy <anand AT bnl DOT gov> a écrit : > 
    > > Does Magic 7.1 compile fine and run on RedHat Linux 7.2 ?
    > > 
    > > --Anand
    > 
    > It should.
    > 
    > I only tried magic on Slackware 7.1 and 8.0 and RedHat 6.x.
    
    It does, but ...
    
    You have to edit scripts/config	to change this bit:
    set have_readline="no"
    if ($readline == "y" || $readline == "yes") then
        set dflags=("$dflags" -DUSE_READLINE)
        if ( -f /usr/lib/libreadline.so ) then
            if (`nm /usr/lib/libreadline.so | grep pre_input | wc -l` > 0 ) then
                set have_readline="yes"
                set dflags=($dflags -DHAVE_READLINE)
                set rl_libs=($rl_libs -lreadline -ltermcap)
            endif
        else if ( -f /usr/lib/libreadline.a ) then
            if (`nm /usr/lib/libreadline.a | grep pre_input | wc -l` > 0 ) then
                set have_readline="yes"
                set dflags=($dflags -DHAVE_READLINE )
                set rl_libs=($rl_libs -lreadline -ltermcap)
            endif
        else
        endif
    endif
    
    
    To this bit:
    set have_readline="no"
    if ($readline == "y" || $readline == "yes") then
        set dflags=("$dflags" -DUSE_READLINE)
    endif
    
    
    The reason is that Red Hat has turned off some deprecated functions
    in its shipped version of readlin in order to deal with some symbol
    colisions; and magic uses those depricated functions.
    
    Without them it wont compile, so if it detects the readline lib on the 
    system, (which it will) it wont try and use its own copy (which it needs).
    
    I intend on getting a fix for this in to magic in a few weeks (finals approah now)
    
    -- 
    Crutcher Dunnavant <crutcher+spam AT eng DOT ua.edu>
    ECSS System Hacker / UA COE CS Senior
    


  •  
     
    Questions? Contact Rajit Manohar
    cornell logo