This should allow DSOs to work on AIX, without the headache of maintaining
the httpd.exp file.
This is adapted from OS/2's generation of ApacheCoreOS2.def.
There exist a few bugs still:
1) mod_dav and mod_proxy may not yet work, due to certain namespace issues.
2) Some symbols may need to be added, a la core_header.def
Once these have been fixed, the old httpd.exp file will be deleted.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89288
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.19-dev
+ *) Automatically generate httpd.exp for AIX.
+ [Victor J. Orlikowski]
*) Add a new request hook, error_log. This phase allows modules
to act on the error log string _after_ it has been written
$SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh
case "$host" in
*-ibm-aix*)
- HTTPD_LDFLAGS="$HTTPD_LDFLAGS -Wl,-bE:$abs_srcdir/support/httpd.exp"
- SH_LDFLAGS="$SH_LDFLAGS -Wl,-bI:$abs_srcdir/support/httpd.exp"
+ HTTPD_LDFLAGS="$HTTPD_LDFLAGS -Wl,-bE:$abs_srcdir/server/httpd.exp"
+ SH_LDFLAGS="$SH_LDFLAGS -Wl,-bI:$abs_srcdir/server/httpd.exp"
;;
*beos)
SH_LDFLAGS='$(top_builddir)/_APP_'
apr_dso_error(modhandle, my_error, sizeof(my_error)),
NULL);
}
- ap_log_perror(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, cmd->pool,
+ ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, cmd->server,
"loaded module %s", modname);
/*
NULL);
}
- ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, NULL,
+ ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, cmd->server,
"loaded file %s", filename);
return NULL;
Debug
Release
apache.exports
+httpd.exp
TARGET_EXPORTS = apache.exports
CLEAN_TARGETS = gen_test_char test_char.h gen_uri_delims uri_delims.h \
- $(TARGET_EXPORTS) ApacheCoreOS2.def
+ $(TARGET_EXPORTS) ApacheCoreOS2.def httpd.exp
EXTRACLEAN_TARGETS = exports.c
SUBDIRS = mpm
util_filter.c exports.c buildmark.c scoreboard.c \
error_bucket.c protocol.c core.c request.c
-TARGETS = delete-exports $(LTLIBRARY_NAME) $(CORE_IMPLIB_FILE)
+TARGETS = delete-exports $(LTLIBRARY_NAME) $(CORE_IMPLIB_FILE) httpd.exp
include $(top_srcdir)/build/rules.mk
include $(top_srcdir)/build/library.mk
ApacheCoreOS2.def: exports.c $(top_srcdir)/os/$(OS_DIR)/core_header.def
cat $(top_srcdir)/os/$(OS_DIR)/core_header.def > $@
$(CPP) $< $(ALL_CPPFLAGS) $(ALL_INCLUDES) | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/ "\1"/' >> $@
+
+# Rule to make exp file for AIX DSOs
+httpd.exp: exports.c
+ echo "#! ." > $@
+ $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/\1/' >> $@
install:
@test -d $(bindir) || $(MKINSTALLDIRS) $(bindir)
- @cp -p httpd.exp $(bindir)
+ @cp -p $(top_srcdir)/server/httpd.exp $(bindir)
@cp -p apachectl $(bindir)
chmod 755 $(bindir)/apachectl
@if test -f $(builddir)/apxs; then \