Re: Oracle-OCI-0.06 does not boot on Sun Solaris 8 with Perl 8
[email protected] (Tim Bunce) Tue, 12 Aug 2003 15:45:40 +0100
| Newsgroups | perl.dbi.oracle-oci |
|---|---|
| Message-ID | <[email protected]> |
Great. Please let me know how you get on with it.
Tim.
On Tue, Aug 12, 2003 at 02:10:52PM +0200, Peter Dyballa wrote:
> Hello once more!
>
> I finally managed to make this package available on our server. One
> cause for the problems was that I had installed the package
> perl_s-5.8.0-sol8-sparc-local. This one contains the perl lib as an DSO,
> and due to that fact and that it's one year younger than the 'static'
> version perl-5.8.0-sol8-sparc-local it has some more packages already
> contained. Somewhere here around is the reason to find that h2xs failed
> with some C header files in ${ORACLE_HOME}/rdbms/demo. This was the
> reason that I had to add some data types and function descriptions by
> hand. (I had to change the paths to the perl executable in boot and h2xs.)
>
> With a bit of Emacs Lisp (some variants, some interactive invocations,
> depending on the number of lines in the #if or the #else branches)
>
> (replace-regexp "^#if.*
> \\(.*^J
> .*^J
> .*\\)^J
> #else^J
> .*^J
> .*^J
> .*^J
> #endif" "\\1" nil nil nil)
>
>
> I had re-written oci8dp.h that statements like
>
> sword
> #if defined(__STDC__) || defined(__cplusplus)
> OCIDirPathLoadStream(OCIDirPathCtx *dpctx, OCIDirPathStream *dpstr,
> OCIError *errhp);
> #else
> OCIDirPathLoadStream(/*_ OCIDirPathCtx *dpctx, OCIDirPathStream *dpstr,
> OCIError *errhp _*/);
> #endif
>
>
> became useful as
>
> sword
> OCIDirPathLoadStream(OCIDirPathCtx *dpctx, OCIDirPathStream *dpstr,
> OCIError *errhp);
>
>
> -- and I had the *static* Perl 5.8 package installed. So h2xs became
> able to parse the whole C header file completely. No data had to be
> added to any file.
>
>
> In case you were curious I attached h2xs.log and a log of 'boot -all' to
> my eMail.
>
>
> Thank you for your help and the interface!
>
> --
> Greetings
>
> Pete Nols GES AG
> Gervinusstraße 18-22
> (Peter Dyballa) 069-92024·795 60322 Frankfurt am Main