Mailing List Archive

AIX/IHS and embperl build issues
> I need to move a current installation of several webservers using
> embedded perl from an old redhat/apache1.3.29 installation to AIX52
> and IBM HTTPServer 2.0.47.1.
>
> I use the AIX xlC compiler, the perl version is 5.8.0, thread-enabled.
>
> I installed modperl 2.0.2 with minimal trouble as a DSO.
>
> I installed embperl-2.1.0 with a couple of tweaks:
> - it wanted mod_cgi.so, which doesn't exist, so I symlinked
> mod_cgi.so to mod_cgid.so
> - had to update the LDDLFLAGS in top level Makefile per an email I
> found in the embperl archives to specify where the .exp files
> were to be found
>
> I could not start the webserver. Its httpd.conf embperl config is:
>
> <IfModule mod_perl.c>
>
> PerlModule Embperl;
> PerlModule Apache::DBI;
> PerlPassEnv ORACLE_HOME
> PerlPassEnv HTTP_PI_REALM_NAME
> PerlPassEnv HTTP_PI_USER_NAME
> PerlPassEnv HTTP_PI_USER_ID
> PerlRequire /usr/local/dia_modules/startup.pl
>
> The startup.pl has only:
> use lib '/usr/local/dia_modules';
> 1;
>
>
> Attempting to start the webserver gets error:
> [Mon Apr 17 12:03:28 2006] [error] Can't locate loadable object for
> module Embperl in @INC (@INC contains: /usr/local/dia_modules
> /usr/opt/perl5/lib/5.8.0/aix-thread-multi /usr/opt/perl5/lib/5.8.0
> /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi
> /usr/opt/perl5/lib/site_perl/5.8.0 /usr/opt/perl5/lib/site_perl .
> /usr/HTTPServer) at (eval 3) line 1\nCompilation failed in require at
> (eval 3) line 1.\n
> [Mon Apr 17 12:03:28 2006] [error] Can't load Perl module Embperl; for
> server admin.dia.sbcglobal.net:0, exiting...
>
>
>
> The PerlModule statement in the origiinal webserver httpd.conf is:
> PerlModule HTML::Embperl;
>
> but I changed it because the embperl files were not installed under an
> HTML directory.
>
>
> ------
>
> The embperl files installed under
> /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi and what I have
> there is:
> drwx--x--x 5 root system 512 Mar 28 12:35 Embperl
> -r--r--r-- 1 root system 12863 Mar 29 16:57 Embperl.pm
> -r--r--r-- 1 root system 57252 Nov 14 13:27 Embperl.pod
>
> And the Embperl directory has:
>
> -r--r--r-- 1 root system 9656 Oct 25 18:16 App.pm
> -r--r--r-- 1 root system 67945 Nov 14 01:08 Config.pod
> -r--r--r-- 1 root system 5455 Oct 25 18:16 Constant.pm
> -r--r--r-- 1 root system 42715 Oct 25 18:17 Faq.pod
> -r-xr-xr-x 1 root system 3131 Nov 14 02:09 Features.pod
> -r--r--r-- 1 root system 3363 Oct 25 18:17 FeaturesD.pod
> drwx--x--x 3 root system 512 Mar 28 12:35 Form
> -r-xr-xr-x 1 root system 2269 Nov 09 00:11 Inline.pm
> -r--r--r-- 1 root system 22236 Oct 25 18:17 Intro.pod
> -r--r--r-- 1 root system 24119 Oct 25 18:17
> IntroEmbperlObject.pod
> -r--r--r-- 1 root system 985 Oct 25 18:16 Log.pm
> -r--r--r-- 1 root system 8133 Nov 15 00:22 Mail.pm
> -r--r--r-- 1 root system 21471 Nov 15 00:22 Object.pm
> -r--r--r-- 1 root system 991 Oct 25 18:16 Out.pm
> drwx--x--x 2 root system 512 Mar 28 12:35 Recipe
> -r--r--r-- 1 root system 5883 Oct 25 18:16 Recipe.pm
> -r--r--r-- 1 root system 1593 Oct 25 18:16 Run.pm
> -r-xr-xr-x 1 root system 2949 Oct 27 01:09 SVN.pod
> -r--r--r-- 1 root system 12055 Oct 25 18:16 Session.pm
> drwx--x--x 2 root system 512 Mar 28 12:35 Syntax
> -r--r--r-- 1 root system 23019 Oct 25 18:16 Syntax.pm
> -r--r--r-- 1 root system 15099 Oct 25 18:17
> TipsAndTricks.pod
> -r--r--r-- 1 root system 4717 Oct 25 18:16 Util.pm
>
> ---
>
> Someone suggested that in fact I need to get the HTML::Embperl package
> from cpan and install that. I tried with HTML-Embperl-1.3.6 but the
> perl Makefile.PL gets error:
>
> Can't locate Apache/src.pm in @INC (@INC contains:
> /usr/opt/perl5/lib/5.8.0/aix-thread-multi /usr/opt/perl5/lib/
> 5.8.0 /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi
> /usr/opt/perl5/lib/site_perl/5.8.0 /usr/opt/perl5/lib/
> site_perl .) at Makefile.PL line 861, <STDIN> line 5.
>
> So someone suggested that I need to install Apache::src from cpan, but
> in fact that is part of an older version of modperl so I am at a loss.
>
> I apologize at being not very literate with all this. Is it the
> HTML::Embperl package I need, and are there other prereqs I need
> before I can install Embperl? The perl install itself is what comes
> off the AIX CD so there are very few perl modules on the server.
>
> Thanks, Susan
>

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: AIX/IHS and embperl build issues [ In reply to ]
> >
> > I could not start the webserver. Its httpd.conf embperl config is:
> >

Did you try make test? Does it work for you?


> > <IfModule mod_perl.c>
> >
> > PerlModule Embperl;
> > PerlModule Apache::DBI;
> > PerlPassEnv ORACLE_HOME
> > PerlPassEnv HTTP_PI_REALM_NAME
> > PerlPassEnv HTTP_PI_USER_NAME
> > PerlPassEnv HTTP_PI_USER_ID
> > PerlRequire /usr/local/dia_modules/startup.pl
> >

You need a

LoadModule embperl_module /path/to/Embperl.so

(I am not sure if AIX uses .so for dynamic libraries, so maybe you have to
change the extention)

Gerald

P.S. You might want to read README.v2 which shows what have been changed
from Embperl 1.x to 2.x

P.S.2. Embperl 1.3.x is not supported anymore and will not work with Apache
2.x



** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: AIX/IHS and embperl build issues [ In reply to ]
The make test did not work - but I did not install the perl prereqs
needed for the test suite.

Duh, I had not added the LoadModule for Embperl, only the modperl one. I
added this, and now attempting to start the webserver, I get error:

=> ./apachectl_dia start
Syntax error on line 53 of /usr/HTTPServer/conf/DIA/httpd.conf:
Can't locate API module structure `embperl_module' in file
/usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi/auto/Embperl/Embperl
.so: Function not implemented (embperl_module)

Line 53 is my LoadModule statement:
LoadModule embperl_module
/usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi/auto/Embperl/Embperl
.so


Running nm on Embperl.so shows:

=> nm ./Embperl.so | grep embperl_module
embperl_module D 83448 56
embperl_module d 114844 4


Another piece of info on this: I have the AIX compiler on one machine
only, so I made all there and tarred up and copied over all the modperl
and embperl files. The system I compiled on is a match as far as the
AIX, IHS and perl versions, and the IHS and perl directory paths go.

Thanks, Susan

-----Original Message-----
From: Gerald Richter [mailto:richter@ecos.de]
Sent: Tuesday, April 18, 2006 1:43 AM
To: HALL, SUSAN (SBCSI); embperl@perl.apache.org
Subject: RE: AIX/IHS and embperl build issues


> >
> > I could not start the webserver. Its httpd.conf embperl config is:
> >

Did you try make test? Does it work for you?


> > <IfModule mod_perl.c>
> >
> > PerlModule Embperl;
> > PerlModule Apache::DBI;
> > PerlPassEnv ORACLE_HOME
> > PerlPassEnv HTTP_PI_REALM_NAME
> > PerlPassEnv HTTP_PI_USER_NAME
> > PerlPassEnv HTTP_PI_USER_ID
> > PerlRequire /usr/local/dia_modules/startup.pl
> >

You need a

LoadModule embperl_module /path/to/Embperl.so

(I am not sure if AIX uses .so for dynamic libraries, so maybe you have
to change the extention)

Gerald

P.S. You might want to read README.v2 which shows what have been changed
from Embperl 1.x to 2.x

P.S.2. Embperl 1.3.x is not supported anymore and will not work with
Apache 2.x



** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: AIX/IHS and embperl build issues [ In reply to ]
Hi,

>
> Line 53 is my LoadModule statement:
> LoadModule embperl_module
> /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi/auto/Embpe
> rl/Embperl
> .so
>

This is ok

>
> Running nm on Embperl.so shows:
>
> => nm ./Embperl.so | grep embperl_module
> embperl_module D 83448 56
> embperl_module d 114844 4
>
>
> Another piece of info on this: I have the AIX compiler on
> one machine only, so I made all there and tarred up and
> copied over all the modperl and embperl files. The system I
> compiled on is a match as far as the AIX, IHS and perl
> versions, and the IHS and perl directory paths go.
>

It should be no problem that your compiler is on a different machine.

I never have used AIX, I only know that the compiler/linker works different
than on other Unix systems.

I think there is some export file which contains the symbols nessarry, but I
don't know exactly.

We would need somebody who has more knowledge of the build process on AIX

Gerald



** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: AIX/IHS and embperl build issues [ In reply to ]
Someone suggested that what I need is HTML::Embperl so I tried to make
that. The perl Makefile.PL errors out on:

...
...
+ Load dynamic module mod_dir.c
(/usr/HTTPServer/modules/mod_dir.so)
+ mod_perl was build with USE_DSO
Can't locate Apache/src.pm in @INC (@INC contains:
/usr/opt/perl5/lib/5.8.0/aix-thread-multi /usr/opt/perl5/lib/5.8.0
/usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi
/usr/opt/perl5/lib/site_perl/5.8.0 /usr/opt/perl5/lib/site_perl .) at
Makefile.PL line 861, <STDIN> line 6

But Apache/src.pm is in mod-perl1.29 and I have already installed
mod_perl2.0.2. Is the idea of installing HTML::Embperl a red herring,
can you tell me? Or have I got some confusion here between apache and
apache2?

Thanks. This is my last try here, after this I will have to go to the
developers and they can go to IBM for assistance.

Susan

-----Original Message-----
From: Gerald Richter [mailto:richter@ecos.de]
Sent: Friday, April 21, 2006 8:19 AM
To: HALL, SUSAN (SBCSI); embperl@perl.apache.org
Subject: RE: AIX/IHS and embperl build issues


Hi,

>
> Line 53 is my LoadModule statement:
> LoadModule embperl_module
> /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi/auto/Embpe
> rl/Embperl
> .so
>

This is ok

>
> Running nm on Embperl.so shows:
>
> => nm ./Embperl.so | grep embperl_module
> embperl_module D 83448 56
> embperl_module d 114844 4
>
>
> Another piece of info on this: I have the AIX compiler on
> one machine only, so I made all there and tarred up and
> copied over all the modperl and embperl files. The system I
> compiled on is a match as far as the AIX, IHS and perl
> versions, and the IHS and perl directory paths go.
>

It should be no problem that your compiler is on a different machine.

I never have used AIX, I only know that the compiler/linker works
different
than on other Unix systems.

I think there is some export file which contains the symbols nessarry,
but I
don't know exactly.

We would need somebody who has more knowledge of the build process on
AIX

Gerald



** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: AIX/IHS and embperl build issues [ In reply to ]
Hi,

>
> Someone suggested that what I need is HTML::Embperl so I
> tried to make that. The perl Makefile.PL errors out on:
>

HTML::Embperl works on AIX, but it supports only mod_perl 1 and Apache 1.3

If you get any hints what we can do to make Embperl run on AIX I am happy to
implement it

Gerald


> ...
> ...
> + Load dynamic module mod_dir.c
> (/usr/HTTPServer/modules/mod_dir.so)
> + mod_perl was build with USE_DSO
> Can't locate Apache/src.pm in @INC (@INC contains:
> /usr/opt/perl5/lib/5.8.0/aix-thread-multi
> /usr/opt/perl5/lib/5.8.0
> /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi
> /usr/opt/perl5/lib/site_perl/5.8.0
> /usr/opt/perl5/lib/site_perl .) at Makefile.PL line 861,
> <STDIN> line 6
>
> But Apache/src.pm is in mod-perl1.29 and I have already
> installed mod_perl2.0.2. Is the idea of installing
> HTML::Embperl a red herring, can you tell me? Or have I got
> some confusion here between apache and apache2?
>
> Thanks. This is my last try here, after this I will have to
> go to the developers and they can go to IBM for assistance.
>
> Susan
>
> -----Original Message-----
> From: Gerald Richter [mailto:richter@ecos.de]
> Sent: Friday, April 21, 2006 8:19 AM
> To: HALL, SUSAN (SBCSI); embperl@perl.apache.org
> Subject: RE: AIX/IHS and embperl build issues
>
>
> Hi,
>
> >
> > Line 53 is my LoadModule statement:
> > LoadModule embperl_module
> > /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi/auto/Embpe
> > rl/Embperl
> > .so
> >
>
> This is ok
>
> >
> > Running nm on Embperl.so shows:
> >
> > => nm ./Embperl.so | grep embperl_module
> > embperl_module D 83448 56
> > embperl_module d 114844 4
> >
> >
> > Another piece of info on this: I have the AIX compiler on
> > one machine only, so I made all there and tarred up and
> > copied over all the modperl and embperl files. The system I
> > compiled on is a match as far as the AIX, IHS and perl
> > versions, and the IHS and perl directory paths go.
> >
>
> It should be no problem that your compiler is on a different machine.
>
> I never have used AIX, I only know that the compiler/linker works
> different
> than on other Unix systems.
>
> I think there is some export file which contains the symbols nessarry,
> but I
> don't know exactly.
>
> We would need somebody who has more knowledge of the build process on
> AIX
>
> Gerald
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
> !DSPAM:444df2a5282831146710771!
>



** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: AIX/IHS and embperl build issues [ In reply to ]
Gerald,
Are you aware that there have been successful AIX/IHS 2/Embperl
installations? Or not? That would be a good basic thing to know.

-----Original Message-----
From: Gerald Richter [mailto:richter@ecos.de]
Sent: Tuesday, April 25, 2006 8:07 AM
To: HALL, SUSAN (SBCSI); embperl@perl.apache.org
Subject: RE: AIX/IHS and embperl build issues


Hi,

>
> Someone suggested that what I need is HTML::Embperl so I
> tried to make that. The perl Makefile.PL errors out on:
>

HTML::Embperl works on AIX, but it supports only mod_perl 1 and Apache
1.3

If you get any hints what we can do to make Embperl run on AIX I am
happy to
implement it

Gerald


> ...
> ...
> + Load dynamic module mod_dir.c
> (/usr/HTTPServer/modules/mod_dir.so)
> + mod_perl was build with USE_DSO
> Can't locate Apache/src.pm in @INC (@INC contains:
> /usr/opt/perl5/lib/5.8.0/aix-thread-multi
> /usr/opt/perl5/lib/5.8.0
> /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi
> /usr/opt/perl5/lib/site_perl/5.8.0
> /usr/opt/perl5/lib/site_perl .) at Makefile.PL line 861,
> <STDIN> line 6
>
> But Apache/src.pm is in mod-perl1.29 and I have already
> installed mod_perl2.0.2. Is the idea of installing
> HTML::Embperl a red herring, can you tell me? Or have I got
> some confusion here between apache and apache2?
>
> Thanks. This is my last try here, after this I will have to
> go to the developers and they can go to IBM for assistance.
>
> Susan
>
> -----Original Message-----
> From: Gerald Richter [mailto:richter@ecos.de]
> Sent: Friday, April 21, 2006 8:19 AM
> To: HALL, SUSAN (SBCSI); embperl@perl.apache.org
> Subject: RE: AIX/IHS and embperl build issues
>
>
> Hi,
>
> >
> > Line 53 is my LoadModule statement:
> > LoadModule embperl_module
> > /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi/auto/Embpe
> > rl/Embperl
> > .so
> >
>
> This is ok
>
> >
> > Running nm on Embperl.so shows:
> >
> > => nm ./Embperl.so | grep embperl_module
> > embperl_module D 83448 56
> > embperl_module d 114844 4
> >
> >
> > Another piece of info on this: I have the AIX compiler on
> > one machine only, so I made all there and tarred up and
> > copied over all the modperl and embperl files. The system I
> > compiled on is a match as far as the AIX, IHS and perl
> > versions, and the IHS and perl directory paths go.
> >
>
> It should be no problem that your compiler is on a different machine.
>
> I never have used AIX, I only know that the compiler/linker works
> different
> than on other Unix systems.
>
> I think there is some export file which contains the symbols nessarry,
> but I
> don't know exactly.
>
> We would need somebody who has more knowledge of the build process on
> AIX
>
> Gerald
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
> !DSPAM:444df2a5282831146710771!
>



** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: AIX/IHS and embperl build issues [ In reply to ]
> Are you aware that there have been successful AIX/IHS
> 2/Embperl installations? Or not? That would be a good basic
> thing to know.
>

For Embperl 1.3 is works, for Embperl 2 I am not aware of any working
installations.

Gerald


> -----Original Message-----
> From: Gerald Richter [mailto:richter@ecos.de]
> Sent: Tuesday, April 25, 2006 8:07 AM
> To: HALL, SUSAN (SBCSI); embperl@perl.apache.org
> Subject: RE: AIX/IHS and embperl build issues
>
>
> Hi,
>
> >
> > Someone suggested that what I need is HTML::Embperl so I
> > tried to make that. The perl Makefile.PL errors out on:
> >
>
> HTML::Embperl works on AIX, but it supports only mod_perl 1 and Apache
> 1.3
>
> If you get any hints what we can do to make Embperl run on AIX I am
> happy to
> implement it
>
> Gerald
>
>
> > ...
> > ...
> > + Load dynamic module mod_dir.c
> > (/usr/HTTPServer/modules/mod_dir.so)
> > + mod_perl was build with USE_DSO
> > Can't locate Apache/src.pm in @INC (@INC contains:
> > /usr/opt/perl5/lib/5.8.0/aix-thread-multi
> > /usr/opt/perl5/lib/5.8.0
> > /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi
> > /usr/opt/perl5/lib/site_perl/5.8.0
> > /usr/opt/perl5/lib/site_perl .) at Makefile.PL line 861,
> > <STDIN> line 6
> >
> > But Apache/src.pm is in mod-perl1.29 and I have already
> > installed mod_perl2.0.2. Is the idea of installing
> > HTML::Embperl a red herring, can you tell me? Or have I got
> > some confusion here between apache and apache2?
> >
> > Thanks. This is my last try here, after this I will have to
> > go to the developers and they can go to IBM for assistance.
> >
> > Susan
> >
> > -----Original Message-----
> > From: Gerald Richter [mailto:richter@ecos.de]
> > Sent: Friday, April 21, 2006 8:19 AM
> > To: HALL, SUSAN (SBCSI); embperl@perl.apache.org
> > Subject: RE: AIX/IHS and embperl build issues
> >
> >
> > Hi,
> >
> > >
> > > Line 53 is my LoadModule statement:
> > > LoadModule embperl_module
> > > /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi/auto/Embpe
> > > rl/Embperl
> > > .so
> > >
> >
> > This is ok
> >
> > >
> > > Running nm on Embperl.so shows:
> > >
> > > => nm ./Embperl.so | grep embperl_module
> > > embperl_module D 83448 56
> > > embperl_module d 114844 4
> > >
> > >
> > > Another piece of info on this: I have the AIX compiler on
> > > one machine only, so I made all there and tarred up and
> > > copied over all the modperl and embperl files. The system I
> > > compiled on is a match as far as the AIX, IHS and perl
> > > versions, and the IHS and perl directory paths go.
> > >
> >
> > It should be no problem that your compiler is on a
> different machine.
> >
> > I never have used AIX, I only know that the compiler/linker works
> > different
> > than on other Unix systems.
> >
> > I think there is some export file which contains the
> symbols nessarry,
> > but I
> > don't know exactly.
> >
> > We would need somebody who has more knowledge of the build
> process on
> > AIX
> >
> > Gerald
> >
> >
> >
> > ** Virus checked by BB-5000 Mailfilter **
> >
> >
> >
> > ** Virus checked by BB-5000 Mailfilter **
> > !DSPAM:444df2a5282831146710771!
> >
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
> !DSPAM:444e139747452132711282!
>



** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: AIX/IHS and embperl build issues [ In reply to ]
>
> I'm trying to help sue get embperl working on aix 5.2 In
> reading the README.v2 you mention a lot of structural changes.
> I'm not the perl guy, I'm the c/c++ AIX guy trying to help
> out and it occurs to me that if the whole thing was rewritten
> for apache 2/HIS can we expect the embedded perl application
> we are trying to migrate to work unchanged?
>

Most of it will work unchanged, but there a few little tweaks you might have
to do, depending on how the application is written.

> If not, this might be a wasted effort, because we don't have
> anybody to port this application, and might be better off
> writing the application another way. Probably not though, it
> is a big application and a small timeframe and we need to get
> something working.

The changes you might have to do, are small, so also somebody with little
knowlegde of Perl should be able to do so.

In case this is an option for you, we can also make these changes for you as
consulting work.

>
> My next question is what is the purpose of src.pm. Apparently
> part of mod_perl 1.x and not 2.x This is the first error I
> encounter so this is the one I'm trying to fix.
> What is this pm for and can I live without it or has its
> workings been implemented somewhere else?
>

Apache::src gives informations about the build flags from mod_perl 1. In
mod_perl these informations are taken from Apache2::BuildConfig. An object
of Apache2::BuildConfig should normaly exist in $mp2cfg, so Apache::src is
not used for mod_perl 2.

Both modules are used to determinate the ldflags and other build flags.

Note: Embperl 1.3.x does not work with Apache 2 at all, you need to use
Embperl 2

Gerald




** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: AIX/IHS and embperl build issues [ In reply to ]
>
> well, in case anybody else asks you.. We got it to load.

Great!

> We added -bexpall to the link line for the shared object.
> Apparently the embperl_module isn't exported by default.
> Exporting everything makes it work.

ok

> Or at least load. We're still having trouble, but at
> least it loads now.
>

Ok, let me know how it goes on.

Gerald

P.S. Please CC the embperl list, so other can participate



>
> -----Original Message-----
> From: Gerald Richter [mailto:richter@ecos.de]
> Sent: Wednesday, May 03, 2006 5:23 AM
> To: MARK, STU (SBCSI); embperl@perl.apache.org
> Cc: HALL, SUSAN (SBCSI)
> Subject: RE: AIX/IHS and embperl build issues
>
>
> >
> > I'm trying to help sue get embperl working on aix 5.2 In
> > reading the README.v2 you mention a lot of structural changes.
> > I'm not the perl guy, I'm the c/c++ AIX guy trying to help
> > out and it occurs to me that if the whole thing was rewritten
> > for apache 2/HIS can we expect the embedded perl application
> > we are trying to migrate to work unchanged?
> >
>
> Most of it will work unchanged, but there a few little tweaks
> you might
> have
> to do, depending on how the application is written.
>
> > If not, this might be a wasted effort, because we don't have
> > anybody to port this application, and might be better off
> > writing the application another way. Probably not though, it
> > is a big application and a small timeframe and we need to get
> > something working.
>
> The changes you might have to do, are small, so also somebody with
> little
> knowlegde of Perl should be able to do so.
>
> In case this is an option for you, we can also make these changes for
> you as
> consulting work.
>
> >
> > My next question is what is the purpose of src.pm. Apparently
> > part of mod_perl 1.x and not 2.x This is the first error I
> > encounter so this is the one I'm trying to fix.
> > What is this pm for and can I live without it or has its
> > workings been implemented somewhere else?
> >
>
> Apache::src gives informations about the build flags from
> mod_perl 1. In
> mod_perl these informations are taken from Apache2::BuildConfig. An
> object
> of Apache2::BuildConfig should normaly exist in $mp2cfg, so
> Apache::src
> is
> not used for mod_perl 2.
>
> Both modules are used to determinate the ldflags and other
> build flags.
>
> Note: Embperl 1.3.x does not work with Apache 2 at all, you
> need to use
> Embperl 2
>
> Gerald
>
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
> !DSPAM:4458f61189432084124948!
>



** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: AIX/IHS and embperl build issues [ In reply to ]
Gerald,

I have given up for the time being at least on the attempt to configure
aix52, ibm httpserver apache2, modperl2 and embperl2. We got the empperl
DSO installed finally, but the modperl just core dumps when I send a
request to the webserver. We've decided to attempt the hopefully easier
job of building this on the apache1 version of the ibm httpserver.

The IBM httpserver apache1 version is 1.3.28.1. I made and installed
modperl 1.0 without any apparent issue. I am trying to make
HTML::Embperl 1.3.26 and get the following errors. I am using perl
5.6.1 for this, since it's closest to the installation that I have to
migrate to this new platform.

cp Embperl.pod blib/lib/HTML/Embperl.pod
cp Faq.pod blib/lib/HTML/Embperl/Faq.pod
cp Changes.pod blib/lib/HTML/Embperl/Changes.pod
cp FeaturesD.pod blib/lib/HTML/Embperl/FeaturesD.pod
cp Embperl.pm blib/lib/HTML/Embperl.pm
...
...
cp IntroEmbperlObject.pod blib/lib/HTML/Embperl/IntroEmbperlObject.pod
/appl/as/mps/perl-5.6.1/bin/perl
"-I/appl/as/mps/perl-5.6.1/lib/5.6.1/aix"
"-I/appl/as/mps/perl-5.6.1/lib/5.6.1" -e 'use ExtUtils::Mksymlists;
Mksymlists("NAME" => "HTML::Embperl", "DL_FUNCS" => { }, "FUNCLIST" =>
[], "DL_VARS" => []);'
/appl/as/mps/perl-5.6.1/bin/perl
-I/appl/as/mps/perl-5.6.1/lib/5.6.1/aix
-I/appl/as/mps/perl-5.6.1/lib/5.6.1
/appl/as/mps/perl-5.6.1/lib/5.6.1/ExtUtils/xsubpp -typemap
/appl/as/mps/perl-5.6.1/lib/5.6.1/ExtUtils/typemap -typemap typemap
Embperl.xs > Embperl.xsc && mv Embperl.xsc Embperl.c
cc -c -I/usr/HTTPServer1/include -I/usr/HTTPServer1/regex
-I/usr/HTTPServer1/os/unix
-I/appl/as/src/Embperl/HTML_Embperl/HTML-Embperl-1.3.6/xs -D_ALL_SOURCE
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES
-qlonglong -O -DVERSION=\"1.3.6\" -DXS_VERSION=\"1.3.6\"
-I/appl/as/mps/perl-5.6.1/lib/5.6.1/aix/CORE -DAPACHE -o Embperl.o
Embperl.c
"Embperl.c", line 275.1: 1506-277 (S) Syntax error: possible missing ';'
or ','?
"Embperl.c", line 299.1: 1506-277 (S) Syntax error: possible missing ';'
or ','?
"Embperl.c", line 320.1: 1506-277 (S) Syntax error: possible missing ';'
or ','?
"Embperl.c", line 343.1: 1506-277 (S) Syntax error: possible missing ';'
or ','?
"Embperl.c", line 395.1: 1506-277 (S) Syntax error: possible missing ';'
or ','?
"Embperl.c", line 414.1: 1506-277 (S) Syntax error: possible missing ';'
or ','?
etc.
etc.

-----Original Message-----
From: Gerald Richter [mailto:richter@ecos.de]
Sent: Thursday, May 04, 2006 3:57 AM
To: MARK, STU (SBCSI)
Cc: embperl@perl.apache.org
Subject: RE: AIX/IHS and embperl build issues


>
> well, in case anybody else asks you.. We got it to load.

Great!

> We added -bexpall to the link line for the shared object.
> Apparently the embperl_module isn't exported by default.
> Exporting everything makes it work.

ok

> Or at least load. We're still having trouble, but at
> least it loads now.
>

Ok, let me know how it goes on.

Gerald

P.S. Please CC the embperl list, so other can participate



>
> -----Original Message-----
> From: Gerald Richter [mailto:richter@ecos.de]
> Sent: Wednesday, May 03, 2006 5:23 AM
> To: MARK, STU (SBCSI); embperl@perl.apache.org
> Cc: HALL, SUSAN (SBCSI)
> Subject: RE: AIX/IHS and embperl build issues
>
>
> >
> > I'm trying to help sue get embperl working on aix 5.2 In
> > reading the README.v2 you mention a lot of structural changes.
> > I'm not the perl guy, I'm the c/c++ AIX guy trying to help
> > out and it occurs to me that if the whole thing was rewritten
> > for apache 2/HIS can we expect the embedded perl application
> > we are trying to migrate to work unchanged?
> >
>
> Most of it will work unchanged, but there a few little tweaks
> you might
> have
> to do, depending on how the application is written.
>
> > If not, this might be a wasted effort, because we don't have
> > anybody to port this application, and might be better off
> > writing the application another way. Probably not though, it
> > is a big application and a small timeframe and we need to get
> > something working.
>
> The changes you might have to do, are small, so also somebody with
> little
> knowlegde of Perl should be able to do so.
>
> In case this is an option for you, we can also make these changes for
> you as
> consulting work.
>
> >
> > My next question is what is the purpose of src.pm. Apparently
> > part of mod_perl 1.x and not 2.x This is the first error I
> > encounter so this is the one I'm trying to fix.
> > What is this pm for and can I live without it or has its
> > workings been implemented somewhere else?
> >
>
> Apache::src gives informations about the build flags from
> mod_perl 1. In
> mod_perl these informations are taken from Apache2::BuildConfig. An
> object
> of Apache2::BuildConfig should normaly exist in $mp2cfg, so
> Apache::src
> is
> not used for mod_perl 2.
>
> Both modules are used to determinate the ldflags and other
> build flags.
>
> Note: Embperl 1.3.x does not work with Apache 2 at all, you
> need to use
> Embperl 2
>
> Gerald
>
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
> !DSPAM:4458f61189432084124948!
>



** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: AIX/IHS and embperl build issues [ In reply to ]
> Syntax error: possible missing ';'
> or ','?
> "Embperl.c", line 299.1: 1506-277 (S) Syntax error: possible
> missing ';'
> or ','?

Could you send me your Embperl.c ?

Gerald



** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: AIX/IHS and embperl build issues [ In reply to ]
Here it is,
Thanks, Susan



-----Original Message-----
From: Gerald Richter [mailto:richter@ecos.de]
Sent: Friday, May 19, 2006 6:37 PM
To: HALL, SUSAN (SBCSI); MARK, STU (SBCSI)
Cc: embperl@perl.apache.org
Subject: RE: AIX/IHS and embperl build issues


> Syntax error: possible missing ';'
> or ','?
> "Embperl.c", line 299.1: 1506-277 (S) Syntax error: possible
> missing ';'
> or ','?

Could you send me your Embperl.c ?

Gerald



** Virus checked by BB-5000 Mailfilter **
RE: AIX/IHS and embperl build issues [ In reply to ]
>
> Here it is,

Seems like you hit a bug in Perl's xsubpp which converts the XS file to the
C file.

Try to replace the typemap file in the Embperl distribution with the
attached file. This hopefully should not hit the bug

Gerald



> Thanks, Susan
>
>
>
> -----Original Message-----
> From: Gerald Richter [mailto:richter@ecos.de]
> Sent: Friday, May 19, 2006 6:37 PM
> To: HALL, SUSAN (SBCSI); MARK, STU (SBCSI)
> Cc: embperl@perl.apache.org
> Subject: RE: AIX/IHS and embperl build issues
>
>
> > Syntax error: possible missing ';'
> > or ','?
> > "Embperl.c", line 299.1: 1506-277 (S) Syntax error: possible
> > missing ';'
> > or ','?
>
> Could you send me your Embperl.c ?
>
> Gerald
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
>
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
> !DSPAM:4471caf947842081013614!
>



** Virus checked by BB-5000 Mailfilter **
RE: AIX/IHS and embperl build issues [ In reply to ]
Gerald,
Thanks much for the typemap, the HTML-Embperl made ok with that. We
installed and now we get a seg fault just running configtest as long as
the "PerlModule HTML::Embperl;" statement is in the httpd.conf. We are
looking into that now.

Thanks for your help and I hope we will report final success soon.

Susan

-----Original Message-----
From: Gerald Richter [mailto:richter@ecos.de]
Sent: Monday, May 29, 2006 12:51 AM
To: HALL, SUSAN (SBCSI); MARK, STU (SBCSI)
Cc: embperl@perl.apache.org
Subject: RE: AIX/IHS and embperl build issues


>
> Here it is,

Seems like you hit a bug in Perl's xsubpp which converts the XS file to
the C file.

Try to replace the typemap file in the Embperl distribution with the
attached file. This hopefully should not hit the bug

Gerald



> Thanks, Susan
>
>
>
> -----Original Message-----
> From: Gerald Richter [mailto:richter@ecos.de]
> Sent: Friday, May 19, 2006 6:37 PM
> To: HALL, SUSAN (SBCSI); MARK, STU (SBCSI)
> Cc: embperl@perl.apache.org
> Subject: RE: AIX/IHS and embperl build issues
>
>
> > Syntax error: possible missing ';'
> > or ','?
> > "Embperl.c", line 299.1: 1506-277 (S) Syntax error: possible missing

> > ';' or ','?
>
> Could you send me your Embperl.c ?
>
> Gerald
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
>
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
> !DSPAM:4471caf947842081013614!
>



** Virus checked by BB-5000 Mailfilter **

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: AIX/IHS and embperl build issues [ In reply to ]
Now it's getting fun.
Here's where I've gotten to, and am kind of stuck.
Although I don't know how much your shared library linker
expertise goes, but I thought I'd ask.
Either I'm way way off the mark or here's what's happening:

When IHS parses httpd.conf it gets to the HTML:Embperl (we're
working with 1.3* here) and tries to load it and httpd blows up.
I tracked it down to this: dXSARGS;
Then I learned what XS is.
You put MODULE = HTML::Embperl PACKAGE = HTML::Embperl
PREFIX = embperl_
in Embperl.xs and all sorts of stuff is generated by the
precompiler.
So I dug. One macro leads to another and so on until I got to
this:
SV **sp = PL_stack_sp;
And that blows up with a segfault.
PL_stack_sp is a pointer to a struct in libperl.so
Can't even resolve the pointer. So I starting thinking linker.
Then I started thinking that there wasn't much I can do about it
except go hunting around for weird aix linker options. (Many a wise
developer has said bad things to me about the aix linker.)
The only other thought I had was to see if it was them or me, so
I added a char *globalvar to Embperl.c and to mod_perl.c, added the
export, rebuilt both ran again.
Embperl.c can find the one in Embperl.c but blows up the same
way when it tries to get the variable reference in mod_perl.c. Not good.
I had one more thought: If I get a chance, which I probably
won't, I am going to try the whole shebang on 4.3.3 and see if that
helps. I can't see how whatever they did different between apache, and
IHS would cause the linker to go wonky like that. But I can see an OS
level change doing that.

The other direction I went in for a little while, was just
trying mod_perl. It would seem that it loads okay, but it doesn't run
either.
It dies here: perl_header_parser(0x20141a40), line 1017 in
"mod_perl.c"
which is: PERL_CALLBACK("PerlInitHandler",
cld->PerlInitHandler);
Great. More macros.
Haven't had a chance to chase this one down, but I'm betting
it's the same linker weirdness.
So my next thing is to try 4.3.3 and see if that helps or causes
any change.

I wonder if anybody has even certified IHS to run on 5.2, maybe
that's a problem in itself.

If this rant has provoked any thought or insight, please, do
tell.






-----Original Message-----
From: HALL, SUSAN (SBCSI)
Sent: Wednesday, May 31, 2006 11:54 AM
To: 'Gerald Richter'; MARK, STU (SBCSI)
Cc: embperl@perl.apache.org
Subject: RE: AIX/IHS and embperl build issues



Gerald,
Thanks much for the typemap, the HTML-Embperl made ok with that. We
installed and now we get a seg fault just running configtest as long as
the "PerlModule HTML::Embperl;" statement is in the httpd.conf. We are
looking into that now.

Thanks for your help and I hope we will report final success soon.

Susan

-----Original Message-----
From: Gerald Richter [mailto:richter@ecos.de]
Sent: Monday, May 29, 2006 12:51 AM
To: HALL, SUSAN (SBCSI); MARK, STU (SBCSI)
Cc: embperl@perl.apache.org
Subject: RE: AIX/IHS and embperl build issues


>
> Here it is,

Seems like you hit a bug in Perl's xsubpp which converts the XS file to
the C file.

Try to replace the typemap file in the Embperl distribution with the
attached file. This hopefully should not hit the bug

Gerald



> Thanks, Susan
>
>
>
> -----Original Message-----
> From: Gerald Richter [mailto:richter@ecos.de]
> Sent: Friday, May 19, 2006 6:37 PM
> To: HALL, SUSAN (SBCSI); MARK, STU (SBCSI)
> Cc: embperl@perl.apache.org
> Subject: RE: AIX/IHS and embperl build issues
>
>
> > Syntax error: possible missing ';'
> > or ','?
> > "Embperl.c", line 299.1: 1506-277 (S) Syntax error: possible missing
> > ';' or ','?
>
> Could you send me your Embperl.c ?
>
> Gerald
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
>
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
> !DSPAM:4471caf947842081013614!
>



** Virus checked by BB-5000 Mailfilter **

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: AIX/IHS and embperl build issues [ In reply to ]
>
> The other direction I went in for a little while, was just
> trying mod_perl. It would seem that it loads okay, but it doesn't run
> either.
> It dies here: perl_header_parser(0x20141a40), line 1017 in
> "mod_perl.c"
> which is: PERL_CALLBACK("PerlInitHandler",
> cld->PerlInitHandler);
> Great. More macros.
> Haven't had a chance to chase this one down, but I'm betting
> it's the same linker weirdness.
> So my next thing is to try 4.3.3 and see if that helps or causes
> any change.
>

I would suggest to first get mod_perl working. For this go to the mod_perl
mailing list and ask your questions there, because there are much more
mod_perl users, then Embperl users, so there is a higher chance that somebody
had run into this same linker trouble already, and maybe solved it...

Gerald

P.S. Please keep us up to date if you made any progress.


** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org