This is in followup to my emails of last week.

After much frustration with trying to get (much less understand) gdb to
capture some sort of stack trace, I trawled through mailing list
archives for both modperl and dbi-users in an attempt to find some piece
of information I had missed.  What I found was an article from last year
in dbi-users which suggested the use of both the -lcl and -lpthreads
flags for anyone compiling DBD::Oracle on an HP-UX 11 server.  I had
seen the suggestion to use -lcl (and was using it religiously), but
using -lpthreads?

Anyway, I started recompiling everything late last PM with -lpthreads.
Perl compiled, passed 'make test'.  Ditto DBI.  DBD::Oracle was another
story, failing 'make test' with ORA-12157 errors.  On my way out to the
car after giving up, it hit me: if Perl compiled with -lpthreads was
giving me the same error that the web server was throwing, was *Apache*
compiled with -lpthreads??

I checked through the apache source tree first thing this AM.  Sure
enough, line 350 in src/Configure had an -lpthreads flag as part of the
LIBS variable for HP-UX 11 builds.  I commented that line out, put in a
'LIBS=' line just below that *didn't* include -lpthreads, and started
rebuilding.  Everything built and passed 'make test' as it usually
does.  The important difference, though, is that my test script now
WORKS under mod_perl.

I suppose I should report this to the apache bug-tracking system or
something, but I'm still busy celebrating my early Christmas present.
:-)

Ges

Reply via email to