OK, I've rebuilt my perl using the following options ...

./Configure -de -Duse64bitint -Doptimize=-O2 -Dman3ext=3pm

(to try to keep as similar as possible to packaged perl, but without the
threads stuff).  I also tried with simply

./Configure -des

With exactly the same result.

Now, make (of mod-perl) gives the following errors ...
modperl_env.lo(.text+0x89e):modperl_env.c: variable '_PL_vtbl_env' can't
be auto-imported. Please read the documentation for ld's
--enable-auto-import for details.
:
Creating library file: libmod_perl.dll.a
mod_perl.lo(.text+0x2f9):mod_perl.c: undefined reference to
`_apr_pool_cleanup_null'
mod_perl.lo(.text+0x2fe):mod_perl.c: undefined reference to
`_apr_pool_cleanup_register'
mod_perl.lo(.text+0x4e9):mod_perl.c: undefined reference to
`_ap_log_error'
mod_perl.lo(.text+0x52b):mod_perl.c: undefined reference to
`_ap_mpm_query'
:
modperl_directives.lo(.text+0x4e7):modperl_directives.c: more undefined
references to `_apr_pstrcat' follow
collect2: ld returned 1 exit status
perlld: *** system() failed to execute
gcc -shared -o  cygperl5_8_0.dll -Wl,--out-implib=libmod_perl.dll.a
-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
-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 -L/usr/local/lib
/usr/local/lib/perl5/5.8.0/cygwin/auto/DynaLoader/DynaLoader.a
-L/usr/local/lib/perl5/5.8.0/cygwin/CORE -lperl -lcrypt -lutil 

make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory
`/cygdrive/d/Downloads/mod_perl-1.99_08/src/modules/perl'
make: *** [modperl_lib] Error 2

Here's my new output from perl -V ...

[mod_perl-1.99_08]$ perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=cygwin, osvers=1.3.19(0.7132), archname=cygwin
    uname='cygwin_nt-5.1 au-stb-mobile 1.3.19(0.7132) 2003-01-23 21:31
i686 unkn
own unknown cygwin '
    config_args='-de -Duse64bitint -Doptimize=-O2 -Dman3ext=3pm'
    hint=previous, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=unde
f
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=y, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing',
    optimize='-O2',
    cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-DPERL_USE_SAFE_PUTENV
 -fno-strict-aliasing'
    ccversion='', gccversion='3.2 20020927 (prerelease)',
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
=4
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld2', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /lib
    libs=-lgdbm -ldb -lcrypt -lutil
    perllibs=-lcrypt -lutil
    libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under cygwin
  Compiled at Feb 18 2003 20:15:28
  %ENV:
    CYGWIN=""
  @INC:
    /cygdrive/d/perldev
    /usr/local/lib/perl5/5.8.0/cygwin
    /usr/local/lib/perl5/5.8.0
    /usr/local/lib/perl5/site_perl/5.8.0/cygwin
    /usr/local/lib/perl5/site_perl/5.8.0
    /usr/local/lib/perl5/site_perl
    .

-----Original Message-----
From: Stas Bekman [mailto:[EMAIL PROTECTED]] 
Sent: Monday, 17 February 2003 8:58 PM
To: Steve Baldwin
Cc: [EMAIL PROTECTED]
Subject: Re: Building mod-perl 2 for cygwin


Steve Baldwin wrote:
> Thanks very much for your reply Stas.  Pardon my ignorance, but are 
> you saying I need to rebuild Perl with different options.

Unfortunately (at least for a time being) yes.

> The version of
> Perl I'm using is the packaged one I installed with the cygwin install

> utility.  If this is the case, could you please a little more 
> information as to the arguments you recommend to build a version of 
> Perl that works fine 'standalone', as well as embedded (which I 
> presume is the case with mod-perl) if that is possible.

Currently mod_perl 2.0 supports the multiple Perl interpreters only if
perl 
has been built with -Dusethreads. This may change in the future, or may
be not.

For now please build with:

./Configure -des -Dusethreads [...]

or (assuming that perl automatically turns on this option, which I
doubt):

./Configure -des -Uusemultiplicity [...]

I think if you build by yourself, all you need is:

./Configure -des

(-des picks all the defaults)

what's important is that when your perl has been built, it should either
have:

usethreads=define useithreads=define usemultiplicity=define

or

usethreads=undef useithreads=undef usemultiplicity=undef

in the output of:

% perl -V | grep usethreads


Reply via email to