tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Unresolved symbols while compiling mod_owa & Apache vulnerability
@ 2002-07-11 14:07 libor.hemola
  0 siblings, 0 replies; only message in thread
From: libor.hemola @ 2002-07-11 14:07 UTC (permalink / raw)


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 $@ $(OBJS) $(ORALINK) $(CLIBS)

.c.o:
        $(CC) $(CFLAGS) $(INCLUDES) -c $<

*****************************


Thanks in advance for your help 


Libor


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-11 14:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-11 14:07 Unresolved symbols while compiling mod_owa & Apache vulnerability libor.hemola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox