. As mod_perl picks up the compiler
settings from the perl installation you must first compile perl with the
proper compiler. But IBM does ship perl compiled using their compiler,
so if you are lazy and do not recompile perl you are hosed.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827
failed for Request.c
The platform is Solaris, Perl 5.6.1 and Apache 1.3.20. Everything else is
the latest available from CPAN. The INSTALL file is less than helpful, and
a search of the modperl archives didn't find anything.
Did you make install modperl yet?
--
Jens-Uwe Mager
HELIOS Software
On Tue, Jul 17, 2001 at 11:08:43AM +0100, Alan Burlison wrote:
Jens-Uwe Mager wrote:
Did you make install modperl yet?
Yes, via APXS. mod_perl is installed and works just fine. I can see the
missing mod_perl.h file in the modperl build directory, but it doesn't
appear anywhere under
:
apache_1.3.19.rtl.patch
modperl.rtl.patch
perl-5.6.1.dlopen.patch
The apache_1.3.19.rtl.patch does also apply to 1.3.20 cleanly.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL
you _must_ also build perl using gcc. This means
you can not use the perl which is part of AIX, as this is built using
xlc.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
your own local perl version. You may get around
compiling apache itself by using the rtl_enable command on the httpd
executable, as the patch for Apache does just that but at compile time.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
of httpd,
one without mod_perl and one with; I set it up as a DSO since this way I
only need one executable). Should I recompile it statically linked?
I had the same problems, after linking modperl statically into httpd the
leaks disappeared.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
variable
allocations around. It probably needs a function that destroys all it's
global allocations.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
days ago and all should work
fine.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
PGP message
buf) = $o-{dh}-flush();
$buf .= pack("V V", $o-{crc}, $o-{len});
print {$o-{handle}} $buf;
undef $o-{dh};
}
sub DESTROY {
my ($o) = @_;
CLOSE($o);
}
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 7
On Tue, Mar 13, 2001 at 05:57:20PM -0800, Gurusamy Sarathy wrote:
There is a change in behavior here that looks somewhat suspect
because the comments didn't mention it.
On Wed, Feb 21, 2001 at 09:32:04PM +0100, Jens-Uwe Mager wrote:
+#ifdef USE_NATIVE_DLOPEN
[...]
+#else
perl itself,
this is not going to work. Especially the gcc command line options are
different enough from the ones the IBM C compiler understands, and the
modperl build procedure relies on the values recorded at the time perl
was build.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827
expat-lite
-DNO_DL_NEEDED `../../apaci` -c mod_perl.c
/bin/sh: -I: not found.
That is pretty strange. What does the following command produce on your
machine:
perl -MConfig -le 'print $Config{"cc"};'
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phon
compiler and you attempt
to build modperl with gcc, this does not work as both must be build
using the same compiler. You will have to rebuild
perl if you want to use gcc.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX
e main program, whereas before without the dot it
meant import later by use of the loadbind() system call explicetely. But
the native dlopen from AIX does not use loadbind(), so the old plug-ins
references back into the main part do not get resolved.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede
en
to import symbols from the main program. The patch already does that in
makedef.pl for the perl.exp file, but only on AIX 4.3 and above because
the older AIX linkers do strange things if this option is used.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone:
---
}
elsif ($PLATFORM eq 'aix') {
-print "#!\n";
+print "#! .\n";
}
my %skip;
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
: symbol not found: Perl_incgv
- the line 236 is : LoadModule perl_module libexec/libperl.so
- libperl.so is correct and in the right place
- apache works fine without the 236 line in httpd.conf
I would suspect that on plain old S5R4 machines you must build perl with
a shared core.
--
Jens-Uwe
loads to
fail.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
ll applies today, I have no idea.
I still know a few platforms that do not support loading C++ code from a
loadable plug-in (dll, shared object) if the main program is not a C++
program.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131
most plug-in systems it is recommended to compile all parts that
are loaded into one address space using the exactly same compiler, that
means in the modperl case all of Apache, Apache plug-ins, perl and perl
plug-ins should be compiled using the Sun Workshop C compiler. Mixing
compilers arbitrarily is a
in)
This symbol was only used for a short while from modperl until it was
found that this is supposed to be a private Apache symbol. I believe
1.24_1 does not use it anymore, so upgrade modperl to a newer version.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone
,
$$code,
"\n",
);
$pr-{'sub'} = \$sub;
}
1;
That way I can try my perl content handlers by just commenting out the
package statement just like ordinary perl scripts.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
308
to retrieve these flags if needed.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
Index: Cookie/Cookie.xs
! Thanks for making that available, it exactly does what I wanted. I
just patched my modperl with the patch and also installed Sys::Stat and
use the new module in my MacBinary fixup handler and it works beautifully.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone
from an FTP archive, but for development versions this is a bit painful.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
built using a exactly the same compiler and a
coherent set of compiler flags.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED
compiler. In your case perl was compiled using the IBM C compiler, and
the perl build procedure introduces compiler flags needed for mod_perl
that are doing something completely different with gcc, causing the
confusing error message.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827
. directories
but terminated prematually with warning message for "Apache Version 1.3.0
required, aborting.."
Use the cvs version of mod_perl or one of the recent snapshots, the
version number definition in Apache changed recently causing confusion
in older mod_perl versions.
--
Jens-Uwe Mag
, that strace under DEC Unix is not what you think, it is a System V
streams trace utility. As far as I know there is no system call trace
utility on DEC Unix.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
to the command line to
build perl, but this compiler option means something completely
different to gcc, causing the strange error. If you want to use gcc to
build mod_perl, you will also have to use gcc to build perl itself.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
dations?"
I do not think that this is a problem, as if a client dies after it has
done it's number of requests it will not load and reload all DSO's, it
will just fork a fresh copy of the master and be done with it. I think
the problem only happens with the restart signal.
--
Jens-Uwe Mager
estart and
cause all global/static variables to be reset to NULL, forgetting all
traces about previously allocated memory. If mod_perl is built
statically, it will not be reloaded and thus all global/static variables
persist and perl will re-use the memory allocated.
--
Jens-Uwe Mager
HELIOS Soft
wondering if other folks that embed perl
interpreters into their applications are having similar problems. I
would believe that is a general perl bug.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet
ocs/dso.html"
Wait a sec, not _Apache DSO's_ in general are experimental, these appear
to work quite fine. The problem is with mod_perl as a DSO, that is one
particular Apache module that has the problem. And this is probably not
even mod_perl's fault but the way perl itself is managing memory.
--
J
/support/httpd.exp.orig Wed Mar 1 16:35:34 2000
+++ src/support/httpd.exp Wed Mar 1 16:35:42 2000
@@ -1,4 +1,4 @@
-#! .
+#!
ap_MD5Encode
ap_MD5Final
ap_MD5Init
Perl-5.6.0 with AIX patch distributed by Jens-Uwe Mager on this list
a few months ago.
Apache-1.3.12
mod_perl-1.24
I
and relies instead on sendmail's rather
largish machinery to parse email adresses.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
the .tar.gz file from CPAN.
To find out if you have the problem you will need to use a perl XS
module that also needs to reference symbols from the Apache core, for
example HTML::Embperl or libapreq. These modules will dump core
without the patch.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
I am trying to do an anon cvs update of modperl and it appears to hang
without doing anything. I can cvs upd other projects. Could anyone try
that and look if it works?
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49
hared=include"
I also tested the build procedure using the apxs tool like this:
perl Makefile.PL USE_APXS=1 EVERYTHING=1 WITH_APXS=/usr/local/apache/bin/apxs
this still works but has the problem of the memory leak at server
restart.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
308
this in plain perl?
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
):
perl Makefile.PL USE_APXS=1 EVERYTHING=1 \
WITH_APXS=/usr/local/apache/bin/apxs
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
e AIX case
without APXS, this needs fixing. Does anybody know why there are so many
ways to build mod_perl? And what is actually the most important way to
build it? I always assumed the apxs way by touching the least of Apache
is to be preferred.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinrie
memory footprint back
to normal.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
from CVS (as of June 9, 2000 at least).
There are a few patches necessary that must be applied to the _perl_
distribution to fix bugs I did in the original dl_aix.xs from perl
around 1992 or so. But the latest CVS versions work fine on my AIX
boxes.
--
Jens-Uwe Mager
HELIOS Software GmbH
(unrelated?) then I had
w/ 5.00503.
That is strange - what kind of errors do you get?
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
On Tue, Jul 25, 2000 at 11:57:56PM +0200, Jens-Uwe Mager wrote:
From the last post from you I have you appeared to use mod_perl-1.22.
What exactly have you been using?
Oops - I did misread, you said you are using 1.24.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
/lib/perl5/site_perl/5.005/aix/auto/Apache/mod_perl.exp
-bI:/usr/local/apache/libexec/httpd.exp
Add these to the link line of the AuthenKerberos module. If that still
does not work, I would need to examine the exact link command line and
the output of "dump -nv AuthenKerberos.so".
--
Je
push @ldflags, "-bI:$httpdexp";
+ } else {
+ $httpdexp = $self-dir . "/support/httpd.exp";
+ push @ldflags, "-bI:$httpdexp" if -e $httpdexp;
+ }
}
return join(' ', @ldflags);
}
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinri
lobal symbols enter the
inter-module name space through the use of .exp files. If you link in
global symbols from some .o files these are not global symbols for other
shared objects unless being made inter-module global by an .exp file.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede
httpd list the symbols in question
like this?
[207] 0x20007458.data EXP DS SECdef[noIMid] ap_table_set
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL
the Linker Option -G to turn on runtime linking for a
module, you must use the -bE:export file -bM:SRE options instead. The
option -berok may not be used with the classic style dynamic linking,
this is causing the segfault here.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Ge
retty much have only one choice, namely use the IBM C
compiler. I had more than one problem with gcc over the years, so I
believe both compilers are on par problem wise. The IBM C compiler
appears to produce much better code on POWER/PowerPC machines, so I
stick with it.
--
Jens-Uwe Mager
HELIOS Sof
all with xlc. Especially perl modules need to use
the exactly same compiler and flags as used in compiling the main perl.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
something along the
lines of:
CC="xlc -D_ALL_SOURCE" ./configure ...
will do. I always add the -D_ALL_SOURCE so packages find the available
but by default invisible extented BSD style functions without saying I
want a pure BSD environment.
--
Jens-Uwe Mager
HELIOS Software GmbH
/Faq.pod.1.html#Embperl_and_mod_perl_on_AIX
he also sends the patches to build Embperl on AIX, maybe he (or anybody else
on the list) has more ideas what's going wrong
I appear to have missed the initial post, what is going wrong?
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
embers all compiler options used to
configure perl and re-applies these upon compiling perl modules. To use
modperl you must compile all parts of the equation (apache, perl,
modperl other perl modules) with exactly the same compiler, that means
either all IBM xlc or all gcc.
Jens-Uwe Mager
PS:
This
*not* be dlclosed, EVEN IF THEY ARE NO LONGER IN THE CONFIG
FILE!!!
I believe they did that on purpose, akin to the line let's see if we
survive a complete restart as via apachectl restart.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX
libraries into their
programs (if that is possible at all on the machine in question).
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
.
That would be necessary if this guy would suck up all my CPU
power/bandwidth, but that did not work out that way. I think I will have
to put some code into my embperl pages to produce an error if there is a
path info for a script that is not supposed to have one.
--
Jens-Uwe Mager
HELIOS Software
is this ExtractorPro thing?
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX:+49 5131 709325
Internet: [EMAIL PROTECTED]
62 matches
Mail list logo