You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tom Murphy <tm...@netchemistry.com> on 2004/08/13 00:29:47 UTC

RE: Apache::SubProcess build problem

Resurrecting an old one here, but I am running into the same issue.  Has
anyone successfully ported Apache::SubProcess to work with Perl 5.8.x and
MP1?  If not, a pointer to anything that will help with the transition.  

Thanks,

Tom Murphy

> -----Original Message-----
> From: Stas Bekman [mailto:stas@stason.org]
> Sent: Tuesday, November 25, 2003 3:12 PM
> To: Rafael Garcia-Suarez
> Cc: modperl@perl.apache.org
> Subject: Re: Apache::SubProcess build problem
> 
> 
> Rafael Garcia-Suarez wrote:
> > I can't build Apache::SubProcess 0.03 on AIX 5.2 with perl 5.8.2,
> > mod_perl 1.29 and apache 1.3.29. The error (pasted below) 
> puzzles me ;
> > any clues ?
> > 
> > 
> > $ make 
> > cp SubProcess.pm blib/lib/Apache/SubProcess.pm
> >         /opt/hexaflux/perl/bin/perl -e 'use 
> ExtUtils::Mksymlists;  Mksymlists("NAME" => 
> "Apache::SubProcess", "DL_FUNCS" => {  }, "FUNCLIST" => [], 
> "DL_VARS" => []);'
> >         /opt/hexaflux/perl/bin/perl 
> /opt/hexaflux/perl/lib/5.8.2/ExtUtils/xsubpp  -typemap 
> /opt/hexaflux/perl/lib/5.8.2/ExtUtils/typemap -typemap 
> /opt/hexaflux/perl/lib/site_perl/5.8.2/aix/auto/Apache/typemap
>   SubProcess.xs > SubProcess.xsc && mv SubProcess.xsc SubProcess.c
> >         cc -c  
> -I/opt/hexaflux/perl/lib/site_perl/5.8.2/aix/auto/Apache/inclu
> de 
> -I/opt/hexaflux/perl/lib/site_perl/5.8.2/aix/auto/Apache/inclu
> de/modules/perl 
> -I/opt/hexaflux/perl/lib/site_perl/5.8.2/aix/auto/Apache/inclu
> de/include 
> -I/opt/hexaflux/perl/lib/site_perl/5.8.2/aix/auto/Apache/inclu
> de/regex 
> -I/opt/hexaflux/perl/lib/site_perl/5.8.2/aix/auto/Apache/inclu
> de/os/unix  -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE 
> -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNO_LOCALE 
> -q32 -D_LARGE_FILES -qlonglong -O    -DVERSION=\"0.03\"  
> -DXS_VERSION=\"0.03\"  
> "-I/opt/hexaflux/perl/lib/5.8.2/aix/CORE"  -g SubProcess.c
> > "SubProcess.xs", line 15.28: 1506-280 (W) Function argument 
> assignment between types "struct _PerlIO**" and "struct 
> {...}*" is not allowed.
> > "SubProcess.xs", line 19.18: 1506-068 (W) Operation between 
> types "struct {...}*" and "struct _PerlIO**" is not allowed.
> > "SubProcess.xs", line 36.26: 1506-068 (W) Operation between 
> types "struct _PerlIO**" and "struct {...}*" is not allowed.
> > "SubProcess.xs", line 40.26: 1506-068 (W) Operation between 
> types "struct _PerlIO**" and "struct {...}*" is not allowed.
> > "SubProcess.xs", line 137.25: 1506-280 (W) Function 
> argument assignment between types "struct {...}*" and "struct 
> _PerlIO**" is not allowed.
> > Running Mkbootstrap for Apache::SubProcess ()
> 
> It seems that that module needs to be updated to support 
> 5.8.x IO, I get 
> similar problems:
> 
> perl-5.8.2 Makefile.PL && make
> Writing Makefile for Apache::SubProcess
> cc -c 
> -I/home/stas/perl/5.8.2/lib/site_perl/5.8.2/i686-linux/auto/Ap
> ache/include 
> -I/home/stas/perl/5.8.2/lib/site_perl/5.8.2/i686-linux/auto/Ap
> ache/include/modules/perl 
> -I/home/stas/perl/5.8.2/lib/site_perl/5.8.2/i686-linux/auto/Ap
> ache/include/include 
> -I/home/stas/perl/5.8.2/lib/site_perl/5.8.2/i686-linux/auto/Ap
> ache/include/regex 
> -I/home/stas/perl/5.8.2/lib/site_perl/5.8.2/i686-linux/auto/Ap
> ache/include/os/unix 
> -DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
> -D_LARGEFILE_SOURCE 
> -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -g   -DVERSION=\"0.03\" 
> -DXS_VERSION=\"0.03\" -fpic 
> "-I/home/stas/perl/5.8.2/lib/5.8.2/i686-linux/CORE"  -g SubProcess.c
> SubProcess.xs: In function `io_dup':
> SubProcess.xs:15: warning: passing arg 1 of `Perl_PerlIO_fileno' from 
> incompatible pointer type
> SubProcess.xs:19: warning: assignment from incompatible pointer type
> SubProcess.xs: In function `io_hook':
> SubProcess.xs:36: warning: assignment from incompatible pointer type
> SubProcess.xs:40: warning: assignment from incompatible pointer type
> SubProcess.xs: In function `XS_Apache_pfclose':
> SubProcess.xs:137: warning: passing arg 2 of `ap_pfclose' 
> from incompatible 
> pointer type
> Running Mkbootstrap for Apache::SubProcess ()
> chmod 644 SubProcess.bs
> rm -f blib/arch/auto/Apache/SubProcess/SubProcess.so
> LD_RUN_PATH="" cc  -shared -L/usr/local/lib SubProcess.o  -o 
> blib/arch/auto/Apache/SubProcess/SubProcess.so
> chmod 755 blib/arch/auto/Apache/SubProcess/SubProcess.so
> cp SubProcess.bs blib/arch/auto/Apache/SubProcess/SubProcess.bs
> chmod 644 blib/arch/auto/Apache/SubProcess/SubProcess.bs
> 
> It builds fine with 5.6.x. I ported it to mp2 (it's now part 
> of the core), so 
> I guess parts can be re-used from there. I had to reimplement 
> the IO part for 
> 5.8+.
> 
> >         chmod 644 SubProcess.bs
> >         rm -f blib/arch/auto/Apache/SubProcess/SubProcess.so
> >         LD_RUN_PATH="" ld  -bhalt:4 -bM:SRE 
> -bI:/opt/hexaflux/perl/lib/5.8.2/aix/CORE/perl.exp 
> -bE:SubProcess.exp -bnoentry -lc SubProcess.o  -o 
> blib/arch/auto/Apache/SubProcess/SubProcess.so      
> > ld: 0711-317 ERROR: Undefined symbol: .sv2request_rec
> > ld: 0711-317 ERROR: Undefined symbol: .ap_cleanup_for_exec
> > ld: 0711-317 ERROR: Undefined symbol: .ap_pfclose
> > ld: 0711-317 ERROR: Undefined symbol: .ap_create_environment
> > ld: 0711-317 ERROR: Undefined symbol: .ap_error_log2stderr
> > ld: 0711-317 ERROR: Undefined symbol: .ap_call_exec
> > ld: 0711-317 ERROR: Undefined symbol: .ap_log_error
> > ld: 0711-317 ERROR: Undefined symbol: .ap_pcalloc
> > ld: 0711-317 ERROR: Undefined symbol: .ap_spawn_child
> > ld: 0711-317 ERROR: Undefined symbol: .perl_bless_request_rec
> > ld: 0711-317 ERROR: Undefined symbol: .perl_eval_ok
> > ld: 0711-317 ERROR: Undefined symbol: .mod_perl_gensym
> > ld: 0711-345 Use the -bloadmap or -bnoquiet option to 
> obtain more information.
> > make: The error code from the last command is 8.
> 
> Seems like it's trying to resolve symbols at linking time. (I 
> think AIX always 
> does)
> 
> You either need to tell it to ignore any linking problems by 
> adding this 
> linker flag:
> 
> -berok # I think you don't need -Wl, prefix as your uses ld directly
> 
> and hope that it'll resolve everything at the loading time, 
> or give it the 
> path to the symbol table export lists:
> 
>           -bI:$path/httpd.exp
>           -bI:$path/modperl.exp
> 
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
> 
> 
> -- 
> Reporting bugs: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> 
> 

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: Apache::SubProcess build problem

Posted by Stas Bekman <st...@stason.org>.
Tom Murphy wrote:
> Resurrecting an old one here, but I am running into the same issue.  Has
> anyone successfully ported Apache::SubProcess to work with Perl 5.8.x and
> MP1?  If not, a pointer to anything that will help with the transition.  

As this email mentions, I've ported A-SP to mp2 and it uses APR::PerlIO, 
which is part of mp2.

May be you could take a peek at Apache-Peek, I've ported it to run with 
5.8, also using a local PerlIO layer implementation (for mp1 too).

Also have you tried using perl w/ perlio disabled? that may do the trick 
as well.

> Thanks,
> 
> Tom Murphy
> 
> 
>>-----Original Message-----
>>From: Stas Bekman [mailto:stas@stason.org]
>>Sent: Tuesday, November 25, 2003 3:12 PM
>>To: Rafael Garcia-Suarez
>>Cc: modperl@perl.apache.org
>>Subject: Re: Apache::SubProcess build problem
>>
>>
>>Rafael Garcia-Suarez wrote:
>>
>>>I can't build Apache::SubProcess 0.03 on AIX 5.2 with perl 5.8.2,
>>>mod_perl 1.29 and apache 1.3.29. The error (pasted below) 
>>
>>puzzles me ;
>>
>>>any clues ?
>>>
>>>
>>>$ make 
>>>cp SubProcess.pm blib/lib/Apache/SubProcess.pm
>>>        /opt/hexaflux/perl/bin/perl -e 'use 
>>
>>ExtUtils::Mksymlists;  Mksymlists("NAME" => 
>>"Apache::SubProcess", "DL_FUNCS" => {  }, "FUNCLIST" => [], 
>>"DL_VARS" => []);'
>>
>>>        /opt/hexaflux/perl/bin/perl 
>>
>>/opt/hexaflux/perl/lib/5.8.2/ExtUtils/xsubpp  -typemap 
>>/opt/hexaflux/perl/lib/5.8.2/ExtUtils/typemap -typemap 
>>/opt/hexaflux/perl/lib/site_perl/5.8.2/aix/auto/Apache/typemap
>>  SubProcess.xs > SubProcess.xsc && mv SubProcess.xsc SubProcess.c
>>
>>>        cc -c  
>>
>>-I/opt/hexaflux/perl/lib/site_perl/5.8.2/aix/auto/Apache/inclu
>>de 
>>-I/opt/hexaflux/perl/lib/site_perl/5.8.2/aix/auto/Apache/inclu
>>de/modules/perl 
>>-I/opt/hexaflux/perl/lib/site_perl/5.8.2/aix/auto/Apache/inclu
>>de/include 
>>-I/opt/hexaflux/perl/lib/site_perl/5.8.2/aix/auto/Apache/inclu
>>de/regex 
>>-I/opt/hexaflux/perl/lib/site_perl/5.8.2/aix/auto/Apache/inclu
>>de/os/unix  -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE 
>>-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNO_LOCALE 
>>-q32 -D_LARGE_FILES -qlonglong -O    -DVERSION=\"0.03\"  
>>-DXS_VERSION=\"0.03\"  
>>"-I/opt/hexaflux/perl/lib/5.8.2/aix/CORE"  -g SubProcess.c
>>
>>>"SubProcess.xs", line 15.28: 1506-280 (W) Function argument 
>>
>>assignment between types "struct _PerlIO**" and "struct 
>>{...}*" is not allowed.
>>
>>>"SubProcess.xs", line 19.18: 1506-068 (W) Operation between 
>>
>>types "struct {...}*" and "struct _PerlIO**" is not allowed.
>>
>>>"SubProcess.xs", line 36.26: 1506-068 (W) Operation between 
>>
>>types "struct _PerlIO**" and "struct {...}*" is not allowed.
>>
>>>"SubProcess.xs", line 40.26: 1506-068 (W) Operation between 
>>
>>types "struct _PerlIO**" and "struct {...}*" is not allowed.
>>
>>>"SubProcess.xs", line 137.25: 1506-280 (W) Function 
>>
>>argument assignment between types "struct {...}*" and "struct 
>>_PerlIO**" is not allowed.
>>
>>>Running Mkbootstrap for Apache::SubProcess ()
>>
>>It seems that that module needs to be updated to support 
>>5.8.x IO, I get 
>>similar problems:
>>
>>perl-5.8.2 Makefile.PL && make
>>Writing Makefile for Apache::SubProcess
>>cc -c 
>>-I/home/stas/perl/5.8.2/lib/site_perl/5.8.2/i686-linux/auto/Ap
>>ache/include 
>>-I/home/stas/perl/5.8.2/lib/site_perl/5.8.2/i686-linux/auto/Ap
>>ache/include/modules/perl 
>>-I/home/stas/perl/5.8.2/lib/site_perl/5.8.2/i686-linux/auto/Ap
>>ache/include/include 
>>-I/home/stas/perl/5.8.2/lib/site_perl/5.8.2/i686-linux/auto/Ap
>>ache/include/regex 
>>-I/home/stas/perl/5.8.2/lib/site_perl/5.8.2/i686-linux/auto/Ap
>>ache/include/os/unix 
>>-DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
>>-D_LARGEFILE_SOURCE 
>>-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -g   -DVERSION=\"0.03\" 
>>-DXS_VERSION=\"0.03\" -fpic 
>>"-I/home/stas/perl/5.8.2/lib/5.8.2/i686-linux/CORE"  -g SubProcess.c
>>SubProcess.xs: In function `io_dup':
>>SubProcess.xs:15: warning: passing arg 1 of `Perl_PerlIO_fileno' from 
>>incompatible pointer type
>>SubProcess.xs:19: warning: assignment from incompatible pointer type
>>SubProcess.xs: In function `io_hook':
>>SubProcess.xs:36: warning: assignment from incompatible pointer type
>>SubProcess.xs:40: warning: assignment from incompatible pointer type
>>SubProcess.xs: In function `XS_Apache_pfclose':
>>SubProcess.xs:137: warning: passing arg 2 of `ap_pfclose' 
>>from incompatible 
>>pointer type
>>Running Mkbootstrap for Apache::SubProcess ()
>>chmod 644 SubProcess.bs
>>rm -f blib/arch/auto/Apache/SubProcess/SubProcess.so
>>LD_RUN_PATH="" cc  -shared -L/usr/local/lib SubProcess.o  -o 
>>blib/arch/auto/Apache/SubProcess/SubProcess.so
>>chmod 755 blib/arch/auto/Apache/SubProcess/SubProcess.so
>>cp SubProcess.bs blib/arch/auto/Apache/SubProcess/SubProcess.bs
>>chmod 644 blib/arch/auto/Apache/SubProcess/SubProcess.bs
>>
>>It builds fine with 5.6.x. I ported it to mp2 (it's now part 
>>of the core), so 
>>I guess parts can be re-used from there. I had to reimplement 
>>the IO part for 
>>5.8+.
>>
>>
>>>        chmod 644 SubProcess.bs
>>>        rm -f blib/arch/auto/Apache/SubProcess/SubProcess.so
>>>        LD_RUN_PATH="" ld  -bhalt:4 -bM:SRE 
>>
>>-bI:/opt/hexaflux/perl/lib/5.8.2/aix/CORE/perl.exp 
>>-bE:SubProcess.exp -bnoentry -lc SubProcess.o  -o 
>>blib/arch/auto/Apache/SubProcess/SubProcess.so      
>>
>>>ld: 0711-317 ERROR: Undefined symbol: .sv2request_rec
>>>ld: 0711-317 ERROR: Undefined symbol: .ap_cleanup_for_exec
>>>ld: 0711-317 ERROR: Undefined symbol: .ap_pfclose
>>>ld: 0711-317 ERROR: Undefined symbol: .ap_create_environment
>>>ld: 0711-317 ERROR: Undefined symbol: .ap_error_log2stderr
>>>ld: 0711-317 ERROR: Undefined symbol: .ap_call_exec
>>>ld: 0711-317 ERROR: Undefined symbol: .ap_log_error
>>>ld: 0711-317 ERROR: Undefined symbol: .ap_pcalloc
>>>ld: 0711-317 ERROR: Undefined symbol: .ap_spawn_child
>>>ld: 0711-317 ERROR: Undefined symbol: .perl_bless_request_rec
>>>ld: 0711-317 ERROR: Undefined symbol: .perl_eval_ok
>>>ld: 0711-317 ERROR: Undefined symbol: .mod_perl_gensym
>>>ld: 0711-345 Use the -bloadmap or -bnoquiet option to 
>>
>>obtain more information.
>>
>>>make: The error code from the last command is 8.
>>
>>Seems like it's trying to resolve symbols at linking time. (I 
>>think AIX always 
>>does)
>>
>>You either need to tell it to ignore any linking problems by 
>>adding this 
>>linker flag:
>>
>>-berok # I think you don't need -Wl, prefix as your uses ld directly
>>
>>and hope that it'll resolve everything at the loading time, 
>>or give it the 
>>path to the symbol table export lists:
>>
>>          -bI:$path/httpd.exp
>>          -bI:$path/modperl.exp
>>
>>__________________________________________________________________
>>Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
>>http://stason.org/     mod_perl Guide ---> http://perl.apache.org
>>mailto:stas@stason.org http://use.perl.org http://apacheweek.com
>>http://modperlbook.org http://apache.org   http://ticketmaster.com
>>
>>
>>-- 
>>Reporting bugs: http://perl.apache.org/bugs/
>>Mail list info: http://perl.apache.org/maillist/modperl.html
>>
>>
> 
> 


-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: Modperl and Distance Education

Posted by Chris Winters <ch...@gmail.com>.
On Fri, 13 Aug 2004 09:46:27 +1000, Alfred Vahau <al...@upng.ac.pg> wrote:
>  Hi,
>  Are there any major distance education sites powered by modperl technology?
>  I work for a University with 7 campuses scattered around the country. Provision of distance
>  education through online access to teaching material and academic transcripts are among the long
>  term goals of the university.

Dicole MimerDesk is built on top of OpenInteract (pure-Perl
application serveR) and seems to serve this purpose:

http://www.dicole.fi/en/community/about/overview

Chris

-- 
Chris Winters (chris.winters@gmail.com)
Building enterprise-capable snack solutions since 1988.

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Modperl and Distance Education

Posted by Alfred Vahau <al...@upng.ac.pg>.
Hi,
Are there any major distance education sites powered by modperl technology?
I work for a University with 7 campuses scattered around the country. 
Provision of distance
education through online access to teaching material and academic 
transcripts are among the long
term goals of the university.

I find it challenging to develop a site to meet the university's 
requirements. It has been proposed
that I consider Java or PHP applications to develop the site to include 
online directory for all
staff and students connected to the university. However, I am confident 
that I can meet the same
objectives using modperl technology. Somewhere I think I can use 
Bricolage or Mason and I am
wondering whether these are appropriate technologies to consider. Or are 
there other applications of
modperl relating to delivery of distance education that I am not aware of.

Coming from a traditional Unix background in connection with academic 
research, I turned to Perl in
2000 to survive in an environment dominated by Windows operating system. 
I continue to work on my
own Breeze Project <http://www.oreillynet.com/pub/wlg/2075> for which an 
early account was posted on the Oreilly site in 2002. Since then I have
been following developments and have tested modperl and apache on trial 
basis.

Any pointers to help in broadening my options would be highly appreciated.

Many thanks in advance,

Alfred Vahau
Director
Information Technology Services
University of Papua New Guinea
Information Resources Centre