Hi all,
Since Oracle released no patch for its HTTP server for v 8.1.7 (based on Apache), i'm trying to fix this by myslef. I took Apache 2.0.39 and mod_owa, which is an open-source alternative for Oracle's mod pl/sql and trying to compile this module to have Apache server, that communicates with Oracle. What i'm getting are some unresolved symbols, while compiling mod_owa.
My questions are:
Has anyone successfully compiled this module ?
Is there any other way to solve recent Apache vulnerability ?
DS10, 4.0F, Oracle 8.1.7
# make -kf modowa.mk
cc -shared -o mod_owa.so owautil.o owafile.o owanls.o owasql.o owadoc.o owahand.o owaplsql.o owacache.o modowa.o -L/data3/oracle/app/oracle/product/8.1.7/lib -lpthread -lclntsh -L/usr/lib -lc
ld:
Warning: Unresolved:
OCILobIsTemporary
apr_palloc
apr_pool_cleanup_register
apr_table_get
apr_table_set
apr_table_add
ap_add_version_component
ap_getword
ap_unescape_url
ap_pregcomp
ap_regexec
ap_set_string_slot
ap_hook_post_config
ap_hook_child_init
ap_hook_handler
ap_log_error
ap_set_content_length
ap_rwrite
ap_rprintf
ap_setup_client_block
ap_should_client_block
ap_get_client_block
ap_discard_request_body
ap_add_cgi_vars
ap_add_common_vars
#
I edited modowa.mk for linux, i had to remove -ldl from $CLIBS, because i don't have any libdl.* and i'm not sure if those unresolved symbols are related to this library. ORACLE_HOME is set correctly.
now it looks like this:
************************************
#
# Makefile for mod_owa.so
#
.SUFFIXES:
.SUFFIXES: .lc .oc .lpc .opc .pc .c .o .cpp .oln
ORA_LIB = $(ORACLE_HOME)/lib
APACHE_TOP = /usr/local/src/httpd-2.0.39
ORAINC = -I$(ORACLE_HOME)/rdbms/demo \
-I$(ORACLE_HOME)/rdbms/public \
-I$(ORACLE_HOME)/network/public
INCLUDES = -I. $(ORAINC) -I$(APACHE_TOP)/os/unix \
-I$(APACHE_TOP)/include \
-I$(APACHE_TOP)/srclib/apr/include \
-I$(APACHE_TOP)/srclib/apr-util/include
CC = cc
LD = cc
CFLAGS = -DAPACHE20 -DUNIX -EAPI -O
LDFLAGS = -shared
CLIBS = -L/usr/lib -lc
ORALINK = -L$(ORACLE_HOME)/lib -lpthread -lclntsh
OBJS = owautil.o owafile.o owanls.o owasql.o \
owadoc.o owahand.o owaplsql.o owacache.o modowa.o
mod_owa.so: $(OBJS)
$(LD) $(LDFLAGS) -o $_at_ $(OBJS) $(ORALINK) $(CLIBS)
.c.o:
$(CC) $(CFLAGS) $(INCLUDES) -c $<
*****************************
Thanks in advance for your help
Libor
Received on Thu Jul 11 2002 - 14:07:17 NZST