Gerald Richter wrote:
Hi Jack,
sorry for the delay...
Here are the newest version of xsbuilder and mpbuilder. The README inside of mpbuilder describes how to set it up. (I attach a copy below). Addtionaly you need the sources of Apache 2 and mod_perl 2.
The module called ModPerl::PODTemplate (inside of mpbuilder) contains a set of methods which allows to easily change the format of the generated POD. That's the only thing you should need to change for now.
NOTE that for now no docs for constants are generated, I am still working that.
Gerald
Generating pods for mod_perl 2
- Install ExtUtils::XSBuilder (at least 0.24)
- Extract mpbuilder in an empty directory
- Create a config file in mpbuilder/xsbuilder named config.pl which contains
a single line that points to your mod_perl 2 source tree e.g.
$MODPERL="/usr/msrc/cvs/modperl-2.0_bld" ;
- Create symbolic link in the directory where you have extracted mpbuilder
name xs to the xs dirorecty of your mod_perl directory e.g.
ln -s /usr/msrc/cvs/modperl-2.0_bld/xs xs
- Create symbolic link in the directory where you have extracted mpbuilder
name xsbuilder/maps to the xs/maps dirorecty of your mod_perl directory e.g.
ln -s /usr/msrc/cvs/modperl-2.0_bld/xs/maps xsbuilder/maps
- Run xsbuilder/source_scan.pl and xsbuilder/xs_generate.pl
I guess I spoke too soon. This is the error that I get after executing
$ perl xsbuilder/xs_generate.pl
Parse xsbuilder/maps/apache_types.map...
Parse xsbuilder/maps/apr_types.map...
Parse xsbuilder/maps/modperl_types.map...
unlink WrapXS/typemap
unlink WrapXS/modperl_xs_typedefs.h
unlink WrapXS/modperl_xs_sv_convert.h
rmdir WrapXS
mkdir WrapXS
writing...WrapXS//typemap
Parse xsbuilder/maps/modperl_functions.map...
DEFINE DEFINE_mpxs_ModPerl__Util_exit arg=int:status=0
Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/site_perl/5.8.0/ExtUtils/XSBuilder/FunctionMap.pm line 190, <$fh> line 8.
And then, of course, it dies.
What did I mess up?
-- Jack
- Now you should get the pod files under WrapXS directory
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
