gnupic: Trouble compiling Gpsim.


Previous by date: 7 Aug 2001 04:22:27 -0000 Trouble compiling Gpsim., Eamon Skelton
Next by date: 7 Aug 2001 04:22:27 -0000 problems compiling gpsim modules, Jeethu Rao
Previous in thread: 7 Aug 2001 04:22:27 -0000 Trouble compiling Gpsim., Eamon Skelton
Next in thread: 7 Aug 2001 04:22:27 -0000 Re: Trouble compiling Gpsim., Eamon Skelton

Subject: Re: Trouble compiling Gpsim.
From: Scott Dattalo ####@####.####
Date: 7 Aug 2001 04:22:27 -0000
Message-Id: <Pine.LNX.4.33.0108062323560.13128-100000@tempest.blackhat.net>


On Tue, 7 Aug 2001, Eamon Skelton wrote:

>
> Hello folks,
>
> after a twelve month break, I've dug my old PIC programmer out
> of the junk-pile.  I've got Gpasm-0.9.10 and Picprog-1.0  up
> and running, so I can program PIC's on my Linux box.
>
> My first few attempts at compiling Gpsim-0.20.10 have failed
> miserably.  ./configure seems to go OK.  It finishes with:
>
> gpsim-0.20.10 is now configured for
>
>   Source directory:     .
>   Installation prefix:  /usr/local
>   C compiler:           gcc   -g -O2
>   C++ compiler:         c++   -g -O2
>
>   gui:                  yes
>
> make fails after a couple of minutes with the message:
>
> c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/gtk-1.2
> -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include
> -I/usr/X11R6/include -g -O2 -c  -fPIC
> -DPIC input.cc -o .libs/input.lo
> input.cc:40: readline/readline.h: No such file or directory
> input.cc:52: readline/history.h: No such file or directory
> make[2]: *** [input.lo] Error 1
> make[2]: Leaving directory `/home/skelton/Desktop/gpsim-0.20.10/cli'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/skelton/Desktop/gpsim-0.20.10'
> make: *** [all-recursive-am] Error 2
>
> What is missing from my system?  I have a file called readline.h in:
> /usr/local/include/guile-readline/readline.h    I don't have a file
> called history.h anywhere on my system.


The readline bug. I just fired up an old Linux box with RH 6.x and see
the same thing that you (and others) have reported. Here's a simple
patch that fixes it:

----------------------------------------------------------------

--- input.cc.old        Sat Jun  2 22:53:45 2001
+++ input.cc    Mon Aug  6 20:14:12 2001
@@ -40,16 +40,13 @@
 #include <readline/readline.h>
 #undef completion_matches
 }
-/*
+
 extern "C" {
 #include <readline/history.h>
 }
-*/

 //#endif

-//#include <readline/readline.h>
-#include <readline/history.h>

 #include <sys/types.h>
 #include <sys/file.h>


-------------------------------------------------------


The readline/history.h include needs to be surrounded by an
extern "C" { }.

gpsim-0.20.11 has been released privately to Wojciech. Release 0.20.12
will have this fix as well as the ones Wojciech reported.

Scott




Previous by date: 7 Aug 2001 04:22:27 -0000 Trouble compiling Gpsim., Eamon Skelton
Next by date: 7 Aug 2001 04:22:27 -0000 problems compiling gpsim modules, Jeethu Rao
Previous in thread: 7 Aug 2001 04:22:27 -0000 Trouble compiling Gpsim., Eamon Skelton
Next in thread: 7 Aug 2001 04:22:27 -0000 Re: Trouble compiling Gpsim., Eamon Skelton


Powered by ezmlm-browse 0.20.