You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jens-Uwe Mager <ju...@anubis.han.de> on 2001/12/10 10:36:56 UTC
DSO modules on AIX 5.1?
I am attempting to get DSO's to work on AIX 5.1. I am using the
following config (cvs from today):
CC="xlc_r -qnogenpcomp -qnousepcomp" \
configure \
--prefix=/data/jum/apache \
--enable-so \
--enable-modules=most \
--enable-mods-shared=most \
--with-mpm=worker
Upon startup I get the following segfault:
Segmentation fault in glink.apr_array_make at 0xd2156270 ($t1)
0xd2156270 (apr_array_make+0x8) 800c0000 lwz r0,0x0(r12)
(dbx) where
glink.apr_array_make() at 0xd2156270
apr_hook_sort_register(0x10042d48, 0x200058f8), line 223 in "apr_hooks.c"
ap_hook_post_config(0x20001908, 0x0, 0x0, 0xfffffff6), line 124 in "config.c"
core.register_hooks(0x20213678), line 3433 in "core.c"
ap_register_hooks(0x20000ad0, 0x20213678), line 387 in "config.c"
ap_add_module(0x20000ad0, 0x20213678), line 449 in "config.c"
ap_setup_prelinked_modules(0x202116d0), line 578 in "config.c"
main(argc = 1, argv = 0x2ff2276c), line 324 in "main.c"
Does anybody have any clue what might be wrong?
--
Jens-Uwe Mager <pgp-mailto:62CFDB25>
Re: DSO modules on AIX 5.1?
Posted by Aaron Bannert <aa...@clove.org>.
On Mon, Dec 10, 2001 at 10:36:56AM +0100, Jens-Uwe Mager wrote:
> I am attempting to get DSO's to work on AIX 5.1. I am using the
> following config (cvs from today):
>
> CC="xlc_r -qnogenpcomp -qnousepcomp" \
> configure \
> --prefix=/data/jum/apache \
> --enable-so \
> --enable-modules=most \
> --enable-mods-shared=most \
> --with-mpm=worker
>
> Upon startup I get the following segfault:
>
> Segmentation fault in glink.apr_array_make at 0xd2156270 ($t1)
> 0xd2156270 (apr_array_make+0x8) 800c0000 lwz r0,0x0(r12)
> (dbx) where
> glink.apr_array_make() at 0xd2156270
> apr_hook_sort_register(0x10042d48, 0x200058f8), line 223 in "apr_hooks.c"
> ap_hook_post_config(0x20001908, 0x0, 0x0, 0xfffffff6), line 124 in "config.c"
> core.register_hooks(0x20213678), line 3433 in "core.c"
> ap_register_hooks(0x20000ad0, 0x20213678), line 387 in "config.c"
> ap_add_module(0x20000ad0, 0x20213678), line 449 in "config.c"
> ap_setup_prelinked_modules(0x202116d0), line 578 in "config.c"
> main(argc = 1, argv = 0x2ff2276c), line 324 in "main.c"
>
> Does anybody have any clue what might be wrong?
In addition to what Jeff said, make sure you remove and rebuild the
httpd.exp, apr.exp, and aprutil.exp files -- the dependencies don't work
perfectly right now and using stale versions got me SEGVs recently.
-aaron
Re: DSO modules on AIX 5.1?
Posted by Jeff Trawick <tr...@attglobal.net>.
Jens-Uwe Mager <ju...@anubis.han.de> writes:
> I am attempting to get DSO's to work on AIX 5.1. I am using the
> following config (cvs from today):
>
> CC="xlc_r -qnogenpcomp -qnousepcomp" \
> configure \
> --prefix=/data/jum/apache \
> --enable-so \
> --enable-modules=most \
> --enable-mods-shared=most \
> --with-mpm=worker
>
> Upon startup I get the following segfault:
>
> Segmentation fault in glink.apr_array_make at 0xd2156270 ($t1)
> 0xd2156270 (apr_array_make+0x8) 800c0000 lwz r0,0x0(r12)
> (dbx) where
> glink.apr_array_make() at 0xd2156270
> apr_hook_sort_register(0x10042d48, 0x200058f8), line 223 in "apr_hooks.c"
> Does anybody have any clue what might be wrong?
Yeah, it looks like shared library apr-util doesn't know where to find
routines in shared library apr.
Make sure you're using libtool 1.4.2.
Make sure you configured libtool with
CFLAGS="-Wl,-bexpall" ./configure
so that one of its tests works on AIX.
(I'm not 100% sure sure this is required. I corresponded with somebody
a couple of days ago that said they couldn't get Apache+apr+aprutil to
stop segfaulting until they did this.)
There are some notes at
http://www.apache.org/~trawick/aixbuildpd.html
http://www.apache.org/~trawick/aixstatus.html
http://www.apache.org/~trawick/apache-2-on-aix.html
The first page attempts to tell you some how to get the right documentation
to determine what caused a bad build. Feel free to send me directly
the information described under "Documentation."
--
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
http://www.geocities.com/SiliconValley/Park/9289/
Born in Roswell... married an alien...