Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
a146a2cb
Commit
a146a2cb
authored
25 years ago
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
should now work with Oracle8i
Rev: src/modules/Oracle/configure.in:1.16 Rev: src/modules/Oracle/oracle.c:1.26
parent
6acb5532
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/modules/Oracle/configure.in
+12
-6
12 additions, 6 deletions
src/modules/Oracle/configure.in
src/modules/Oracle/oracle.c
+7
-4
7 additions, 4 deletions
src/modules/Oracle/oracle.c
with
19 additions
and
10 deletions
src/modules/Oracle/configure.in
+
12
−
6
View file @
a146a2cb
#
#
# $Id: configure.in,v 1.1
5
2000/03/2
4 01:22:17
hubbe Exp $
# $Id: configure.in,v 1.1
6
2000/03/2
9 22:27:10
hubbe Exp $
#
#
# Configure script for the oracle module
# Configure script for the oracle module
#
#
...
@@ -69,7 +69,9 @@ if test x$with_oracle = xyes; then
...
@@ -69,7 +69,9 @@ if test x$with_oracle = xyes; then
echo no > conftest
echo no > conftest
if test x"$pike_cv_oracle_oracle_home" != xno -a -f "$pike_cv_oracle_oracle_home/lib/libcommon.a"; then
if test x"$pike_cv_oracle_oracle_home" != xno && \
test -f "$pike_cv_oracle_oracle_home/lib/libcommon.a" -o \
-f "$pike_cv_oracle_oracle_home/lib/libcommon8.a"; then
echo "$pike_cv_oracle_oracle_home/lib" > conftest
echo "$pike_cv_oracle_oracle_home/lib" > conftest
...
@@ -77,7 +79,7 @@ if test x$with_oracle = xyes; then
...
@@ -77,7 +79,7 @@ if test x$with_oracle = xyes; then
if test x"$pike_cv_oracle_oratab_file" = xno; then :; else
if test x"$pike_cv_oracle_oratab_file" = xno; then :; else
sed -e '/^#/d' < $pike_cv_oracle_oratab_file | while IFS=":" read sid dir bootstart; do
sed -e '/^#/d' < $pike_cv_oracle_oratab_file | while IFS=":" read sid dir bootstart; do
if test -d "$dir/."
-a
-
f
"$dir/lib/libcommon.a"; then
if test -d "$dir/."
&& test -f "$dir/lib/libcommon.a"
-
o
"$dir/lib/libcommon
8
.a"; then
if test x"$pike_cv_oracle_oracle_home" = xno; then
if test x"$pike_cv_oracle_oracle_home" = xno; then
AC_DEFINE_UNQUOTED(ORACLE_HOME, "${dir}")
AC_DEFINE_UNQUOTED(ORACLE_HOME, "${dir}")
else
else
...
@@ -241,11 +243,15 @@ EOF
...
@@ -241,11 +243,15 @@ EOF
CPPFLAGS="-I$oracle_include_dir/rdbms/demo/ -I$oracle_include_dir/network/public/ -I$oracle_include_dir/plsql/public -I$oracle_include_dir/otrace/public -I ${CPPFLAGS}"
CPPFLAGS="-I$oracle_include_dir/rdbms/demo/ -I$oracle_include_dir/network/public/ -I$oracle_include_dir/plsql/public -I$oracle_include_dir/otrace/public -I ${CPPFLAGS}"
LDFLAGS="${LDFLAGS} -L$oracle_lib_dir -R$oracle_lib_dir"
LDFLAGS="${LDFLAGS} -L$oracle_lib_dir -R$oracle_lib_dir"
if test -f "$oracle_lib_dir/libcore8.a"; then
ORACLE_LIBS="-lclntsh"
else
if test -f "$oracle_lib_dir/libcore4.a"; then
if test -f "$oracle_lib_dir/libcore4.a"; then
ORACLE_LIBS="-lclntsh -lcommon -lcore4 -lnlsrtl3 $pike_cv_oracle_sysliblist $oracle_aio -lm -lcore4"
ORACLE_LIBS="-lclntsh -lcommon -lcore4 -lnlsrtl3 $pike_cv_oracle_sysliblist $oracle_aio -lm -lcore4"
else
else
ORACLE_LIBS="-lclient -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 $pike_cv_oracle_sysliblist $oracle_aio -lm -lcore3"
ORACLE_LIBS="-lclient -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 $pike_cv_oracle_sysliblist $oracle_aio -lm -lcore3"
fi
fi
fi
OLDLIBS=LIBS
OLDLIBS=LIBS
LIBS="$LIBS $ORACLE_LIBS"
LIBS="$LIBS $ORACLE_LIBS"
...
...
This diff is collapsed.
Click to expand it.
src/modules/Oracle/oracle.c
+
7
−
4
View file @
a146a2cb
/*
/*
* $Id: oracle.c,v 1.2
5
2000/03/2
5
22:
40:02
hubbe Exp $
* $Id: oracle.c,v 1.2
6
2000/03/2
9
22:
27:10
hubbe Exp $
*
*
* Pike interface to Oracle databases.
* Pike interface to Oracle databases.
*
*
...
@@ -35,10 +35,13 @@
...
@@ -35,10 +35,13 @@
#ifdef HAVE_ORACLE
#ifdef HAVE_ORACLE
/* VERY VERY UGLY */
#define MOTIF
#include
<oci.h>
#include
<oci.h>
#include
<math.h>
#include
<math.h>
RCSID
(
"$Id: oracle.c,v 1.2
5
2000/03/2
5
22:
40:02
hubbe Exp $"
);
RCSID
(
"$Id: oracle.c,v 1.2
6
2000/03/2
9
22:
27:10
hubbe Exp $"
);
#define BLOB_FETCH_CHUNK 16384
#define BLOB_FETCH_CHUNK 16384
...
@@ -1687,13 +1690,13 @@ static void call_atexits(void)
...
@@ -1687,13 +1690,13 @@ static void call_atexits(void)
(
*
atexit_fnc
[
--
atexit_cnt
])();
(
*
atexit_fnc
[
--
atexit_cnt
])();
}
}
#else
#else
/* DYNAMIC_MODULE */
static
void
call_atexits
(
void
)
static
void
call_atexits
(
void
)
{
{
}
}
#endif
#endif
/* DYNAMIC_MODULE */
#else
/* HAVE_ORACLE */
#else
/* HAVE_ORACLE */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment