MAGIC Magic Mailing List
 
 

From: R. Timothy Edwards (tim AT stravinsky DOT jhuapl.edu)
Date: Mon Apr 15 2002 - 15:50:43 EDT

  • Next message: Anand Kandasamy: "Magic 7.1 on RH7.2"

    Dear Dave,
    
    Mandrake, and possibly some other versions of Linux, has folded some (all)? of
    the routines of libtermcap into libncurses.  Possibly they are not even needed
    by readline.  So you need to edit "defs.mak" (and/or "scripts/config", if you
    want the change to remain valid through the next "make config") and change
    
    READLINE_LIBS          = -lreadline -ltermcap
    
    to
    
    READLINE_LIBS          = -lreadline -lncurses
    
    or possibly even just
    
    READLINE_LIBS          = -lreadline
    
    In the "scripts/config" file, this is around line 460, and the change should
    be from
    
    	set rl_libs=($rl_libs -lreadline -ltermcap)
    
    to
    
    	set rl_libs=($rl_libs -lreadline -lncurses)
    or
    	set rl_libs=($rl_libs -lreadline)
    
    I know that on SuSE Linux, "-lreadline" alone suffices, but I don't know if
    that's true of Mandrake.  If you (or somebody, since I'm CC'ing this to
    magic-dev) could give me feedback and let me know, I can fix the CVS source
    directly so this problem doesn't crop up anymore.
    
    						Regards,
    						Tim
    
    ----------------------------------------------------------------------------
    From: dlovell AT mcmail DOT com
    Date: Mon, 15 Apr 2002 20:23:26 +0100
    Subject: termcap
    To: magic-hackers AT csl DOT cornell.edu
    
    Hi
    
      I am trying to install Magic on a Linux Mandrake system, and cannot get the 
    system to recognise the termcap shared library -- section of log file below. 
    
    gcc -g  -m486 -I. -I.. -I../readline -Dlinux -DSYSV -DF_OK=0 -DW_OK=2 -
    D__NO_STRING_INLINES -DISC -DUSE_READLINE -DNONMANHATTAN -
    DUSE_NEW_MACROS -DMAGIC_VERSION="\"7.1\"" -DMAGIC_DATE="\"`date`\"" 
    libmagic.o ../cif/libcif.o ../cmwind/libcmwind.o ../commands/libcommands.o  
    ../database/libdatabase.o ../dbwind/libdbwind.o ../drc/libdrc.o
    ../debug/libdebug.o ../extract/libextract.o ../graphics/libgraphics.o
    ../lisp/liblisp.o ../macros/libmacros.o ../main/libmain.o ../misc/libmisc.o
    ../parser/libparser.o ../select/libselect.o  ../signals/libsignals.o
    ../tech/libtech.o ../textio/libtextio.o ../tiles/libtiles.o ../undo/libundo.o
    ../utils/libutils.o  ../windows/libwindows.o ../wiring/libwiring.o
    ../plow/libplow.o ../plot/libplot.o ../resis/libresis.o ../sim/libsim.o
    ../calma/libcalma .o ../mzrouter/libmzrouter.o ../irouter/libirouter.o
    ../garouter/libgarouter.o ../router/librouter.o ../grouter/libgrouter.o
    ../gcr/libgcr.o ../netmenu/libnetmenu.o  ../netlist/libnetlist.o
    -o magic -lX11 -L/usr/X11R6/lib/ -lbsd-compat -L../readline/readline
    -lreadline -ltermcap -lm
    
    /usr/bin/ld: cannot find -ltermcap
    collect2: ld returned 1 exit status
    make[2]: *** [magic] Error 1
    
    
      The file /lib/libtermcap.so.2.0.8 is present, and copied  also to
    readline directory  (ldconfig -n command executed). Help! 
    
    Da ve
    --------------------------------------------------------------------------------
    


  •  
     
    Questions? Contact Rajit Manohar
    cornell logo