With the mod_perl2 CVS, I get this error:
modperl_filter.c: In function `modperl_run_filter_init': modperl_filter.c:363: syntax error before `extern' modperl_filter.c: In function `modperl_run_filter': modperl_filter.c:435: syntax error before `extern'
Both of those lines are MP_dINTERP_PUTBACK(interp) and I get lost in a maze of #define's. :~(
With mod_perl-2.0-current.tar.gz from one of the mirrors, or with the FreeBSD port, I get this:
...lots of successful compilations...
rm -f mod_perl.so
ld -shared -L/usr/local/lib mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo modperl_global.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo modperl_perl_global.lo modperl_perl_pp.lo modperl_sys.lo modperl_module.lo modperl_svptr_table.lo modperl_const.lo modperl_constants.lo modperl_hooks.lo modperl_directives.lo modperl_flags.lo modperl_xsinit.lo -Wl,-E -L/usr/local/lib /usr/local/lib/perl5/5.8.1/mach/auto/DynaLoader/DynaLoader.a -L/usr/local/lib/perl5/5.8.1/mach/CORE -lperl -lm -lcrypt -lutil -lc -o mod_perl.so
/usr/libexec/elf/ld: unrecognized option '-Wl,-E'
/usr/libexec/elf/ld: use the --help option for usage information
because the -Wl is the cc option that should have been stripped before passing the -E to ld. :~(
I hacked together a Perl 5.8.1 FreeBSD port so this is identical to the existing 5.8.0 port:
# perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
Platform:
osname=freebsd, osvers=4.8-release, archname=i386-freebsd
uname='freebsd website2.rlpgbooks.com 4.8-release freebsd 4.8-release #0: thu apr 3 10:53:38 gmt 2003 [EMAIL PROTECTED]:usrobjusrsrcsysgeneric i386 '
config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/perl5/5.8.1/mach -Dprivlib=/usr/local/lib/perl5/5.8.1 -Dman3dir=/usr/local/lib/perl5/5.8.1/man/man3 -Dsitearch=/usr/local/lib/perl5/site_perl/5.8.1/mach -Dsitelib=/usr/local/lib/perl5/site_perl/5.8.1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.1/BSDPAN" -Ui_gdbm -Dusemymalloc=n'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.1/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include',
optimize='-O -pipe ',
cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.1/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.95.4 20020320 [FreeBSD]', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-Wl,-E -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib
libs=-lm -lcrypt -lutil -lc
perllibs=-lm -lcrypt -lutil -lc
libc=, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Locally applied patches: MAINT21250 Built under freebsd Compiled at Sep 23 2003 12:44:58 @INC: /usr/local/lib/perl5/5.8.1/BSDPAN /usr/local/lib/perl5/5.8.1/mach /usr/local/lib/perl5/5.8.1 /usr/local/lib/perl5/site_perl/5.8.1/mach /usr/local/lib/perl5/site_perl/5.8.1 /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl/5.005 /usr/local/lib/perl5/site_perl .
John
-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748