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 ticha <ti...@i.am> on 2002/12/20 13:36:12 UTC

libapreq install - ignore previous

All,

Apologies for the last email ... finger trouble.

I am at my wits end, hence the email to this development list.

I am trying to install libapreq (Apache::Request perl module actually
for use with HTML::Mason) without success and I have been trying for the
best part of 2 days and am falling behind on my project ... anyway, I
digress and I am not new to perl, but I am NOT a developer.

The system config and problem details are below.

NOTE: The non-Perl option does not work either with Apache 2, but does with 1.3.27 
	(the Perl module does not compile then either, though.)

Thank you for your time and assistance. Apologies for the size of this message.

Ticha

--------------------------------------------------------------------------------
*****************
Server Details
*****************
	RedHat Linux 8.0
	Apache 2.0.40 - httpd-devel rpm installed (mod_perl 1.27 - built using EVERTHING=1 as per libapreq
readme)
	GCC 3.27
        gcc -v
        Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
        Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
        Thread model: posix
        gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
        
	Perl 5.8.0
        perl -V
        Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
          Platform:
            osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi
            uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15 06:41:59 edt 2002 i686 i686 i386 gnulinux '
            config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun
        -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr'
            hint=recommended, useposix=true, d_sigaction=define
            usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
            useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
            use64bitint=undef use64bitall=undef uselongdouble=undef
            usemymalloc=n, bincompat5005=undef
          Compiler:
            cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
            optimize='-O2 -march=i386 -mcpu=i686',
            cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/include/gdbm'
            ccversion='', gccversion='3.2 20020822 (Red Hat Linux Rawhide 3.2-5)', 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='gcc', ldflags =' -L/usr/local/lib'
            libpth=/usr/local/lib /lib /usr/lib
            libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
            perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
            libc=/lib/libc-2.2.92.so, so=so, useshrplib=true, libperl=libperl.so
            gnulibc_version='2.2.92'
          Dynamic Linking:
            dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'
            cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
        
        
        Characteristics of this binary (from libperl):
          Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
          Built under linux
          Compiled at Sep  1 2002 23:56:49
          @INC:
            /usr/lib/perl5/5.8.0/i386-linux-thread-multi
            /usr/lib/perl5/5.8.0
            /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
            /usr/lib/perl5/site_perl/5.8.0
            /usr/lib/perl5/site_perl
            /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
            /usr/lib/perl5/vendor_perl/5.8.0
            /usr/lib/perl5/vendor_perl
            .
--------------------------------------------------------------------------------
*****************************
THE PROBLEM
*****************************

root@server # perl Makefile.PL && make install
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
Writing Makefile for Apache::Request
Writing Makefile for Apache::Cookie
Writing Makefile for libapreq
cp lib/Apache/libapreq.pm blib/lib/Apache/libapreq.pm
cp libapreq.pod blib/lib/libapreq.pod
make[1]: Entering directory `/root/source/libapreq-1.0/c'
gcc -c  -I/usr/include/httpd -I/usr/include/httpd -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i386 -mcpu=i686   -DVERSION=\"\" -DXS_VERSION=\"\" -fpic "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"   apache_request.c
In file included from apache_request.c:59:
apache_request.h:38: parse error before "table"
apache_request.h:38: warning: no semicolon at end of struct or union
apache_request.h:48: parse error before '}' token
apache_request.h:48: warning: data definition has no type or storage class
apache_request.h:55: parse error before "table"
apache_request.h:55: warning: no semicolon at end of struct or union
apache_request.h:58: parse error before '*' token
apache_request.h:58: warning: data definition has no type or storage class
apache_request.h:59: parse error before '}' token
apache_request.h:89: parse error before '*' token
apache_request.h:89: warning: data definition has no type or storage class
apache_request.h:90: parse error before '*' token
apache_request.h:91: parse error before '*' token
apache_request.h:92: parse error before '*' token
apache_request.h:93: parse error before '*' token
apache_request.h:94: parse error before '*' token
apache_request.h:95: parse error before '*' token
apache_request.h:95: parse error before '*' token
apache_request.h:95: warning: data definition has no type or storage class
apache_request.h:96: parse error before '*' token
apache_request.h:97: parse error before '*' token
apache_request.h:101: parse error before '*' token
apache_request.h:102: parse error before '*' token
apache_request.h:120: parse error before '*' token
apache_request.h:123: parse error before '*' token
In file included from apache_request.c:60:
apache_multipart_buffer.h:33: parse error before '*' token
apache_multipart_buffer.h:33: warning: data definition has no type or storage class
apache_request.c:69: parse error before '*' token
apache_request.c: In function `util_read':
apache_request.c:71: request for member `r' in something not a structure or union
apache_request.c:83: request for member `post_max' in something not a structure or union
apache_request.c:83: request for member `post_max' in something not a structure or union
apache_request.c:84: request for member `r' in something not a structure or union
apache_request.c:85: request for member `post_max' in something not a structure or union
apache_request.c:85: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
apache_request.c:85: warning: passing arg 6 of `ap_log_rerror' makes pointer from integer without a cast
apache_request.c:89: `rbuf' undeclared (first use in this function)
apache_request.c:89: (Each undeclared identifier is reported only once
apache_request.c:89: for each function it appears in.)
apache_request.c: At top level:
apache_request.c:111: parse error before '*' token
apache_request.c: In function `ApacheRequest_script_name':
apache_request.c:113: request for member `r' in something not a structure or union
apache_request.c:118: warning: assignment makes pointer from integer without a cast
apache_request.c: At top level:
apache_request.c:127: parse error before '*' token
apache_request.c: In function `ApacheRequest_script_path':
apache_request.c:129: request for member `r' in something not a structure or union
apache_request.c: At top level:
apache_request.c:132: parse error before '*' token
apache_request.c: In function `ApacheRequest_param':
apache_request.c:134: request for member `status' in something not a structure or union
apache_request.c:134: request for member `parsed' in something not a structure or union
apache_request.c:134: request for member `status' in something not a structure or union
apache_request.c:135: request for member `parms' in something not a structure or union
apache_request.c:135: `key' undeclared (first use in this function)
apache_request.c:135: warning: return makes pointer from integer without a cast
apache_request.c: In function `make_params':
apache_request.c:140: `array_header' undeclared (first use in this function)
apache_request.c:140: `arr' undeclared (first use in this function)
apache_request.c:140: parse error before ')' token
apache_request.c: At top level:
apache_request.c:145: parse error before '*' token
apache_request.c:145: parse error before '*' token
apache_request.c: In function `ApacheRequest_params':
apache_request.c:147: `array_header' undeclared (first use in this function)
apache_request.c:147: `values' undeclared (first use in this function)
apache_request.c:147: request for member `r' in something not a structure or union
apache_request.c:148: request for member `status' in something not a structure or union
apache_request.c:148: request for member `parsed' in something not a structure or union
apache_request.c:148: request for member `status' in something not a structure or union
apache_request.c:149: request for member `parms' in something not a structure or union
apache_request.c:149: `key' undeclared (first use in this function)
apache_request.c: At top level:
apache_request.c:153: parse error before '*' token
apache_request.c: In function `ApacheRequest_params_as_string':
apache_request.c:156: `array_header' undeclared (first use in this function)
apache_request.c:156: `values' undeclared (first use in this function)
apache_request.c:156: `key' undeclared (first use in this function)
apache_request.c:160: request for member `r' in something not a structure or union
apache_request.c:164: warning: assignment makes pointer from integer without a cast
apache_request.c: At top level:
apache_request.c:170: parse error before '*' token
apache_request.c: In function `ApacheUpload_new':
apache_request.c:173: request for member `r' in something not a structure or union
apache_request.c:173: sizeof applied to an incomplete type
apache_request.c:175: dereferencing pointer to incomplete type
apache_request.c:176: dereferencing pointer to incomplete type
apache_request.c:177: dereferencing pointer to incomplete type
apache_request.c:178: dereferencing pointer to incomplete type
apache_request.c:179: dereferencing pointer to incomplete type
apache_request.c:180: dereferencing pointer to incomplete type
apache_request.c: In function `ApacheUpload_find':
apache_request.c:189: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c:190: dereferencing pointer to incomplete type
apache_request.c: At top level:
apache_request.c:198: parse error before '*' token
apache_request.c: In function `ApacheRequest_new':
apache_request.c:200: invalid operands to binary *
apache_request.c:200: parse error before ')' token
apache_request.c:203: request for member `status' in something not a structure or union
apache_request.c:204: request for member `parms' in something not a structure or union
apache_request.c:205: request for member `upload' in something not a structure or union
apache_request.c:206: request for member `post_max' in something not a structure or union
apache_request.c:207: request for member `disable_uploads' in something not a structure or union
apache_request.c:208: request for member `upload_hook' in something not a structure or union
apache_request.c:209: request for member `hook_data' in something not a structure or union
apache_request.c:210: request for member `temp_dir' in something not a structure or union
apache_request.c:211: request for member `parsed' in something not a structure or union
apache_request.c:212: request for member `r' in something not a structure or union
apache_request.c: At top level:
apache_request.c:219: parse error before '*' token
apache_request.c: In function `my_urlword':
apache_request.c:225: `line' undeclared (first use in this function)
apache_request.c:231: `p' undeclared (first use in this function)
apache_request.c:231: warning: assignment makes pointer from integer without a cast
apache_request.c:238: warning: assignment makes pointer from integer without a cast
apache_request.c: At top level:
apache_request.c:252: parse error before '*' token
apache_request.c: In function `split_to_parms':
apache_request.c:254: request for member `r' in something not a structure or union
apache_request.c:257: `data' undeclared (first use in this function)
apache_request.c:265: request for member `parms' in something not a structure or union
apache_request.c: At top level:
apache_request.c:270: parse error before '*' token
apache_request.c: In function `ApacheRequest___parse':
apache_request.c:272: request for member `r' in something not a structure or union
apache_request.c:280: warning: initialization makes pointer from integer without a cast
apache_request.c:288: request for member `r' in something not a structure or union
apache_request.c:289: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
apache_request.c:297: request for member `parsed' in something not a structure or union
apache_request.c: At top level:
apache_request.c:302: parse error before '*' token
apache_request.c: In function `ApacheRequest_parse_urlencoded':
apache_request.c:304: request for member `r' in something not a structure or union
apache_request.c:310: warning: assignment makes pointer from integer without a cast
apache_request.c: In function `remove_tmpfile':
apache_request.c:328: invalid operands to binary *
apache_request.c:328: dereferencing pointer to incomplete type
apache_request.c:330: request for member `r' in something not a structure or union
apache_request.c:330: dereferencing pointer to incomplete type
apache_request.c:331: request for member `r' in something not a structure or union
apache_request.c:332: dereferencing pointer to incomplete type
apache_request.c:332: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
apache_request.c:334: dereferencing pointer to incomplete type
apache_request.c:335: request for member `r' in something not a structure or union
apache_request.c:336: dereferencing pointer to incomplete type
apache_request.c:336: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
apache_request.c:339: dereferencing pointer to incomplete type
apache_request.c: At top level:
apache_request.c:342: parse error before '*' token
apache_request.c: In function `ApacheRequest_tmpfile':
apache_request.c:344: request for member `r' in something not a structure or union
apache_request.c:352: request for member `temp_dir' in something not a structure or union
apache_request.c:354: `O_BINARY' undeclared (first use in this function)
apache_request.c:361: warning: assignment makes pointer from integer without a cast
apache_request.c:362: request for member `r' in something not a structure or union
apache_request.c:362: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
apache_request.c:362: too few arguments to function `ap_log_rerror'
apache_request.c:367: dereferencing pointer to incomplete type
apache_request.c:368: dereferencing pointer to incomplete type
apache_request.c:370: `ap_null_cleanup' undeclared (first use in this function)
apache_request.c: At top level:
apache_request.c:375: parse error before '*' token
apache_request.c: In function `ApacheRequest_parse_multipart':
apache_request.c:377: request for member `r' in something not a structure or union
apache_request.c:379: warning: initialization makes pointer from integer without a cast
apache_request.c:386: request for member `r' in something not a structure or union
apache_request.c:386: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
apache_request.c:386: too few arguments to function `ap_log_rerror'
apache_request.c:398: request for member `post_max' in something not a structure or union
apache_request.c:398: request for member `post_max' in something not a structure or union
apache_request.c:399: request for member `r' in something not a structure or union
apache_request.c:400: request for member `post_max' in something not a structure or union
apache_request.c:400: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
apache_request.c:400: warning: passing arg 6 of `ap_log_rerror' makes pointer from integer without a cast
apache_request.c:412: `table' undeclared (first use in this function)
apache_request.c:412: `header' undeclared (first use in this function)
apache_request.c:429: warning: assignment makes pointer from integer without a cast
apache_request.c:450: request for member `parms' in something not a structure or union
apache_request.c:455: request for member `disable_uploads' in something not a structure or union
apache_request.c:456: request for member `r' in something not a structure or union
apache_request.c:456: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
apache_request.c:456: too few arguments to function `ap_log_rerror'
apache_request.c:460: request for member `parms' in something not a structure or union
apache_request.c:463: dereferencing pointer to incomplete type
apache_request.c:464: dereferencing pointer to incomplete type
apache_request.c:468: request for member `upload' in something not a structure or union
apache_request.c:471: request for member `upload_hook' in something not a structure or union
apache_request.c:475: dereferencing pointer to incomplete type
apache_request.c:476: dereferencing pointer to incomplete type
apache_request.c:476: request for member `r' in something not a structure or union
apache_request.c:477: dereferencing pointer to incomplete type
apache_request.c:477: request for member `r' in something not a structure or union
apache_request.c:488: request for member `upload_hook' in something not a structure or union
apache_request.c:489: request for member `upload_hook' in something not a structure or union
apache_request.c:489: request for member `hook_data' in something not a structure or union
apache_request.c:491: dereferencing pointer to incomplete type
apache_request.c:496: dereferencing pointer to incomplete type
apache_request.c:499: dereferencing pointer to incomplete type
apache_request.c:499: dereferencing pointer to incomplete type
apache_request.c:500: dereferencing pointer to incomplete type
apache_request.c: At top level:
apache_request.c:566: parse error before '*' token
apache_request.c: In function `ApacheUtil_expires':
apache_request.c:570: `type' undeclared (first use in this function)
apache_request.c:572: `time_str' undeclared (first use in this function)
apache_request.c:579: `p' undeclared (first use in this function)
apache_request.c:579: warning: return makes pointer from integer without a cast
apache_request.c:585: `ap_day_snames' undeclared (first use in this function)
apache_request.c:586: `ap_month_snames' undeclared (first use in this function)
apache_request.c:588: warning: return makes pointer from integer without a cast
apache_request.c: At top level:
apache_request.c:591: parse error before '*' token
apache_request.c: In function `ApacheRequest_expires':
apache_request.c:593: request for member `r' in something not a structure or union
apache_request.c:593: `time_str' undeclared (first use in this function)
make[1]: *** [apache_request.o] Error 1
make[1]: Leaving directory `/root/source/libapreq-1.0/c'
make: *** [subdirs] Error 2



Re: libapreq install - ignore previous

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On 20 Dec 2002, Joe Schaefer wrote:

> ticha <ti...@i.am> writes:
> 
> [...]
> 
> > *****************
> > Server Details
> > *****************
> > 	RedHat Linux 8.0
> > 	Apache 2.0.40 - 
>         ^^^^^^^^^^^^^^^
> 
> libapreq (the C API upon which Apache::Request and Apache::Cookie) 
> has not yet been ported to Apache2.  You need to stick with apache-1
> and mod_perl-1 for the immediate future.

Just to add a bit - if you have to, or want, to use Apache2 (with
mod_perl-2), it's possible to configure Mason to use CGI.pm to
handle form processing, rather than Apache::Request - see the
archives of the Mason mailing list for details.

-- 
best regards,
randy kobes


Re: libapreq install - ignore previous

Posted by Joe Schaefer <jo...@sunstarsys.com>.
ticha <ti...@i.am> writes:

[...]

> *****************
> Server Details
> *****************
> 	RedHat Linux 8.0
> 	Apache 2.0.40 - 
        ^^^^^^^^^^^^^^^

libapreq (the C API upon which Apache::Request and Apache::Cookie) 
has not yet been ported to Apache2.  You need to stick with apache-1
and mod_perl-1 for the immediate future.

Also, for a production site you might need to avoid 5.8.0 as well.
Apache::Request appears to produce a segfault, and we have not figured
out the root cause.

-- 
Joe Schaefer