Database related function prototypes have moved into nsdb.h in Aolserver 4.0.  You'll 
want to make sure that this file is included in ora8.h.  I think you could do 
something like this:

/* bring in the AOLserver interface libraries from /home/nsadmin/include/ */

#include <ns.h>

#if defined (NS_MAJOR_VERSION)
  /* Compile against 4.x or later */
  #if (NS_MAJOR_VERSION == 4) && (NS_MINOR_VERSION < 1)
     /* We're on the 4.0 server */
     #include <nsdb.h>
  #endif
#else
  /* Compile against pre-4.x server */
  #if !defined(NS_AOLSERVER_3_PLUS)
    #include <nsdb.h>
    #include <nstcl.h>
    #define NS_EXPORT
  #endif
#endif /* NS_MAJOR_VERSION */

This is from the migration guide, and goes in around line 125 (my version is too 
hacked for a useful diff, sorry).

Regards,
Greg


> -----Original Message-----
> From: AOLserver Discussion
> [mailto:[EMAIL PROTECTED] Behalf
> Of Ramesh Venkitaswaran
> Sent: Thursday, December 04, 2003 3:22 PM
> To: [EMAIL PROTECTED]
> Subject: [AOLSERVER] Problems compiling nsoracle 2.6 with
> aolserver 4 on
> Solaris 2.6
>
>
> I've successfully managed to compile aolserver-4 on
> Solaris 2.6. However when I try to compile the Oracle
> library (nsoracle) I get the following error:
>
> "ora8.c", line 219: syntax error before or at: Ns_DbHandle
> "ora8.c", line 219: cannot recover from previous errors
> cc: acomp failed for ora8.c
> make: *** [ora8.o] Error 2
>
> Here're the details of my aolserver, oracle and tcl
> - Aolserver - Version 4.0 running on Solaris 2.6
> - Oracle Client - Version 8.1.7 running on Solaris 2.6
> - TCL  Version 8.4.5 with compiled with --enable-threads
> - nsoracle Version 2.6
>
> I'd set the ORACLE_HOME and the NSHOME as indicated in
> the README.
>
> Any help on this would be greatly appreciated.
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can
> leave the Subject: field of your email blank.
>


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to