home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / isis / 330 next >
Encoding:
Text File  |  1992-12-13  |  4.2 KB  |  104 lines

  1. Newsgroups: comp.sys.isis
  2. Path: sparky!uunet!gatech!europa.asd.contel.com!howland.reston.ans.net!wupost!usc!rpi!batcomputer!cornell!honir!rcbc
  3. From: rcbc@honir.cs.cornell.edu (Robert Cooper)
  4. Subject: Re: ISIS++
  5. In-Reply-To: ibashir@cat.syr.edu's message of Fri, 4 Dec 92 10:38:25 EST
  6. Message-ID: <RCBC.92Dec13232755@honir.cs.cornell.edu>
  7. Sender: rcbc@cs.cornell.edu (Robert Cooper)
  8. Reply-To: rcbc@cs.cornell.edu
  9. Organization: Cornell Univ. CS Dept, Ithaca NY 14853
  10. References: <1992Dec4.103826.23779@newstand.syr.edu>
  11. Date: Mon, 14 Dec 1992 04:27:55 GMT
  12. Lines: 90
  13.  
  14. In article <1992Dec4.103826.23779@newstand.syr.edu> ibashir@cat.syr.edu (Imran Bashir) writes:
  15.  
  16.    I am trying to compile the demo programs provided with ISIS++ and 
  17.    have encountered the following errors.
  18.  
  19. ISIS++ is the result of a research project at Cornell that finished about a
  20. year ago. No-one involved in the implementation remains at Cornell. Imran
  21. and I have looked at the errors he got and here's the summary. Two of them
  22. appear to be Isis errors.
  23.  
  24.    (I am using a sparcstation, SUN's c-compiler and ISIS3.0 library)
  25.  
  26. Imran is also running ISISV3.0.5 and gcc 2.3.1.
  27.  
  28.    -------------------------------------------------------------------------
  29.  
  30.    compiling dbserver.C
  31.    rm -f dbserver.o
  32.    isis++gen ../../demos/dbserver.C -o /usr/tmp/dbserver.C
  33.    CC -c -g -I/usr/local/include/CC -I../../include -I/vol/isis/include -I/usr/local/lib/g++-include /usr/tmp/dbserver.C
  34.    In file included from /vol/isis/include/isis.h:228, from ../../include/isis++.h:49, from /usr/tmp/dbserver.C:29:
  35.    /vol/isis/include/cl_task.h:184: `rtn' undeclared, outside of functions
  36.    /vol/isis/include/cl_task.h:184: parse error before `*'
  37.  
  38. The particular line in question in cl_task.h is:
  39.  
  40.     int    ISISCALL1RET1( int (*rtn)(), VOID *arg);
  41.  
  42. Removing the (strictly unnecessary) parameter names fixes the problem:
  43.  
  44.     int    ISISCALL1RET1( int (*)(VOID *), VOID *);
  45.  
  46. Now to the next problem:
  47.  
  48.    ../../demos/dbserver.C: In method Serv::Serv ():
  49.    ../../demos/dbserver.C:90: `v_routine_msgs' undeclared (first use this function)
  50.    ../../demos/dbserver.C:90: (Each undeclared identifier is reported only once
  51.    ../../demos/dbserver.C:90: for each function it appears in.)
  52.    ../../demos/dbserver.C:90: parse error before `MessDispIFID_UPDATE'
  53.    ../../demos/dbserver.C:90: parse error before `MessDispIFID_QUERY'
  54.    *** Error code 1
  55.    make: Fatal error: Command failed for target `dbserver.o'
  56.  
  57. This is an error in ISISV3.0.5-V3.0.7 for C++ programmers, and has been
  58. reported by one other user too. The following define should be added to
  59. isis.h just after the definition of v_routine_vs (around line 118 in the
  60. V3.0.7 release): 
  61.  
  62.    typedef void (*v_routine_msgs)(message*);
  63.  
  64. At the same time you can edit the following definition of isis_entry, also
  65. in isis.h (line 664 in V3.0.7):
  66.  
  67.         int    isis_entry    (int entry, v_routine_vs, char *rname);
  68.  
  69. changing it to:
  70.  
  71.     int    isis_entry    (int entry, v_routine_msgs, char *rname);
  72.  
  73. Both these fixes will appear in V3.0.8 when it is released sometime in the
  74. new year. Back to Imran's posting:
  75.  
  76.    Here I would like to mention that if I use the include files from the
  77.    old ISIS2.1 library, then it compiles ok but gives errors at link time.
  78.    The error that it gives at link time is as follows
  79.  
  80.    -------------------------------------------------------------------------
  81.    linking dbserver
  82.    CC -o dbserver dbserver.o libclass.a -lm /usr/local/ISIS/clib/libisis1.a /usr/local/ISIS/clib/libisis2.a /usr/local/ISIS/mlib/libisism.a 
  83.    ../../src/isis++.C:280: Undefined symbol pl_create(address *, address *) referenced from text segment
  84.    ../../src/isis++.C:297: Undefined symbol pl_create(address *, address *) referenced from text segment
  85.    *** Error code 1
  86.    make: Fatal error: Command failed for target `dbserver'
  87.    -
  88.    Compilation exited abnormally with code 1 at Fri Dec  4 10:24:46
  89.    -------------------------------------------------------------------------
  90.  
  91.    Imran Bashir..
  92.  
  93. We don't really support V2.1 anymore, although of course its still freely
  94. available from Cornell by FTP. However the above problem, if I remember
  95. correctly is caused by a missing   
  96.  
  97.      extern "C" {  ..... }
  98.  
  99. construct surrounding the pl_create declarations in the V2.1 include files.
  100.  
  101.                    -- Robert Cooper
  102. --
  103. -- 
  104.