This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

lang-allover woes [was: guile and Fortran?]



       Hi,

       Thanks for your responses re Fortran. I decided to look at
      Valentin Kamyshenko's g+f.

      It seems I needed a uptodate guile, so I built [1] the cvs guile
      yesterday (with Craig's aclocal kludge).   

      I also needed lr1.scm. I get Andrew Archibald's
      guile-lang-allover-0.1.tar.gz.  Here are my unresolved
      troubles.  

      I untared guile-lang-allover-0.1 parallel to guile-core (not in
      it). 

      rgx.c includes from files from libguile/.  libguile/ is not part
      of guile-lang-allover-0.1, so I guess, gcc was defaulting to
      using the old [i.e. distribution version] /usr/include/libguile
      (the default RedHat one).  

      So, I did a "ln ../guile-core/libguile ." as the build was
      picking the wrong one (i.e. DEFS in Makefile was not using
      ${includedir}). I think that this is a problem for me and maybe
      others. (Am I unusual?  Is it standard proceedure to over-write
      the distribution guile with the cvs one?)

      Anyway, I am lost in the maze of tricksie include files. I get
      the following compilation error: 

eriskay guile-cvs/guile-lang-allover-0.1> make
Making all in lang
make[1]: Entering directory `/balla/ipframes4/paule/guile-cvs/guile-lang-allover-0.1/lang'
Making all in ctax
make[2]: Entering directory `/balla/ipframes4/paule/guile-cvs/guile-lang-allover-0.1/lang/ctax'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/balla/ipframes4/paule/guile-cvs/guile-lang-allover-0.1/lang/ctax'
make[1]: Leaving directory `/balla/ipframes4/paule/guile-cvs/guile-lang-allover-0.1/lang'
/bin/sh ./libtool --mode=compile gcc -DPACKAGE=\"guile-lang-allover\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1  -I. -I/usr/local/include -I.    -g -O2 -c rgx.c
gcc -DPACKAGE=\"guile-lang-allover\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -I. -I/usr/local/include -I. -g -O2 -c -fPIC -DPIC rgx.c
In file included from rgx.c:52:
rgx.h:50: parse error before `SCM_P'
rgx.h:51: parse error before `SCM_P'
rgx.h:52: parse error before `SCM_P'
rgx.h:53: parse error before `SCM_P'
rgx.h:54: parse error before `SCM_P'
rgx.h:55: parse error before `SCM_P'
rgx.h:56: parse error before `SCM_P'
rgx.h:57: parse error before `SCM_P'
rgx.h:58: parse error before `SCM_P'
rgx.h:59: parse error before `SCM_P'
rgx.h:60: parse error before `SCM_P'
rgx.h:61: parse error before `SCM_P'
rgx.h:62: parse error before `SCM_P'
rgx.h:63: parse error before `SCM_P'
rgx.c: In function `scm_regexec':
rgx.c:273: too many arguments to function `scm_make_vector'
rgx.c: In function `scm_init_lang_rx_module':
rgx.c:656: `scm_init_rgx' undeclared (first use in this function)
rgx.c:656: (Each undeclared identifier is reported only once
rgx.c:656: for each function it appears in.)
rgx.c: At top level:
rgx.c:661: `scm_init_rgx' used prior to declaration
make: *** [rgx.lo] Error 1




      Advice gratefully recieved. 

      Paul.




[1] built with prefix /usr/local.  I have learnt the hard way to keep
      RedHat distribution and new version builds separate.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]