You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Eric Martin <em...@ams.org> on 2004/10/14 17:24:11 UTC
libapreq-1.3 Build Error
For anyone that has the time to respond, I'm having a compilation
problem with libapreq-1.3 on Solaris9/Apache/1.3.29 (Unix)
mod_ssl/2.8.16 OpenSSL/0.9.6h mod_perl/1.29, and was hoping to get some
advice. Upon downloading and unpacking libapreq-1.3.tar.gz, I run 'perl
Makefile.PL && make':
# perl Makefile.PL && make
[ info] generating script t/TEST
Checking if your kit is complete...
Looks good
Writing Makefile for libapreq
mkdir ../blib
mkdir ../blib/arch
mkdir ../blib/arch/auto
mkdir ../blib/arch/auto/libapreq
Warning: -L../blib/arch/auto/libapreq changed to
-L/.cpan/build/libapreq-1.3/Request/../blib/arch/auto/libapreq
Writing Makefile for Apache::Request
Warning: -L../blib/arch/auto/libapreq changed to
-L/.cpan/build/libapreq-1.3/Cookie/../blib/arch/auto/libapreq
Writing Makefile for Apache::Cookie
Writing Makefile for libapreq
cp libapreq.pod blib/lib/libapreq.pod
cp lib/Apache/libapreq.pm blib/lib/Apache/libapreq.pm
gcc -c
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/modules/perl
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/include
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/regex
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/os/unix
-I/usr/local/stow/apache-1.3.29/apache/include -fno-strict-aliasing
-I/usr/local/include -O -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC
"-I/usr/local/lib/perl5/sun4-solaris/CORE" apache_request.c
gcc -c
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/modules/perl
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/include
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/regex
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/os/unix
-I/usr/local/stow/apache-1.3.29/apache/include -fno-strict-aliasing
-I/usr/local/include -O -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC
"-I/usr/local/lib/perl5/sun4-solaris/CORE" apache_cookie.c
gcc -c
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/modules/perl
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/include
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/regex
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/os/unix
-I/usr/local/stow/apache-1.3.29/apache/include -fno-strict-aliasing
-I/usr/local/include -O -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC
"-I/usr/local/lib/perl5/sun4-solaris/CORE" apache_multipart_buffer.c
rm -rf ../blib/arch/auto/libapreq/libapreq.a
/usr/ccs/bin/ar cr ../blib/arch/auto/libapreq/libapreq.a
apache_request.o apache_cookie.o apache_multipart_buffer.o && :
../blib/arch/auto/libapreq/libapreq.a
chmod 755 ../blib/arch/auto/libapreq/libapreq.a
cp apache_cookie.h ../blib/arch/auto/libapreq/include/apache_cookie.h
cp apache_multipart_buffer.h
../blib/arch/auto/libapreq/include/apache_multipart_buffer.h
cp apache_request.h ../blib/arch/auto/libapreq/include/apache_request.h
cp Request.pm ../blib/lib/Apache/Request.pm
/bin/perl /usr/local/stow/perl-5.6.0/lib/perl5/ExtUtils/xsubpp -typemap
/usr/local/lib/perl5/ExtUtils/typemap -typemap
/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/typemap
Request.xs > Request.xsc && mv Request.xsc Request.c
gcc -c -I../c
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/modules/perl
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/include
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/regex
-I/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/os/unix
-I/usr/local/stow/apache-1.3.29/apache/include -fno-strict-aliasing
-I/usr/local/include -O -DVERSION=\"1.3\" -DXS_VERSION=\"1.3\" -fPIC
"-I/usr/local/lib/perl5/sun4-solaris/CORE" Request.c
In file included from /usr/local/lib/perl5/sun4-solaris/CORE/perl.h:1433,
from
/usr/local/stow/perl-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/Apache/include/modules/perl/mod_perl.h:80,
from Request.xs:41:
/usr/local/lib/perl5/sun4-solaris/CORE/handy.h:226:1: warning: "strEQ"
redefined
In file included from Request.xs:1:
../c/apache_request.h:63:1: warning: this is the location of the
previous definition
Request.xs: In function `upload_hook':
Request.xs:225: parse error before "fwrite"
Request.xs: In function `XS_Apache__Upload_fh':
Request.xs:525: warning: assignment from incompatible pointer type
*** Error code 1
make: Fatal error: Command failed for target `Request.o'
Current working directory /.cpan/build/libapreq-1.3/Request
*** Error code 1
make: Fatal error: Command failed for target `subdirs'
The make seems to fail in Request.xs. I can make Apache::Cookie by
itself without error, just Apache::Request appears to fail at this
point. Here is 'perl -V' for my environment:
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=solaris, osvers=2.8, archname=sun4-solaris
uname='sunos odin 5.8 generic_108528-12 sun4u sparc sunw,ultra-60 '
config_args='-de -Dcc=gcc -Dld=gcc -Dlddlflags=-shared
-Duseshrplib=true -Ubincompat5005 -Uuselargefiles -Duseperlio
-Dprefix=/usr/local -Dinstallprefix=/usr/local/stow/perl-5.6.0
-Dinstallprivlib=/usr/local/stow/perl-5.6.0/lib/perl5
-Dprivlib=/usr/local/lib/perl5'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=undef
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='gcc', optimize='-O', gccversion=2.95.2 19991024 (release)
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccflags ='-fno-strict-aliasing -I/usr/local/include'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=4
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldb -ldl -lm -lc -lcrypt -lsec
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -R
/usr/local/lib/perl5/sun4-solaris/CORE'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options:
Built under solaris
Compiled at Jan 4 2002 14:20:24
@INC:
/usr/local/lib/perl5/sun4-solaris
/usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/site_perl
.
TIA to anyone able to provide assistance regarding this error!!!
Re: libapreq-1.3 Build Error
Posted by Stas Bekman <st...@stason.org>.
Eric Martin wrote:
[...]
> In file included from Request.xs:1:
> ../c/apache_request.h:63:1: warning: this is the location of the
> previous definition
> Request.xs: In function `upload_hook':
> Request.xs:225: parse error before "fwrite"
> Request.xs: In function `XS_Apache__Upload_fh':
> Request.xs:525: warning: assignment from incompatible pointer type
> *** Error code 1
> make: Fatal error: Command failed for target `Request.o'
> Current working directory /.cpan/build/libapreq-1.3/Request
> *** Error code 1
> make: Fatal error: Command failed for target `subdirs'
>
> The make seems to fail in Request.xs. I can make Apache::Cookie by
> itself without error, just Apache::Request appears to fail at this
> point. Here is 'perl -V' for my environment:
>
> Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Not promising you that the problem will go away, but 5.6.0 is buggy as
hell, so I won't be surprised if that has something to do with the
problem. In either case you don't want to use that version. 5.6.1 or
higher is the preferred choice.
But normally this kind of problems happens when your install of Apache,
perl or mod_perl is incomplete or messed up (usually the case when someone
installed precompiled binary packages and not building them on the machine
where they need to run).
--
__________________________________________________________________
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