Re: modperl-2.0 make Error on Solaris

2002-07-09 Thread Stas Bekman


/users/webuser/src/modperl-2.0/xs/APR/Table/APR__Table.h:73: dereferencing
pointer to incomplete type
make[3]: *** [Table.o] Error 1

please either apply this patch or use the cvs version (which now 
contains this patch) and it will work.

Index: xs/APR/Table/APR__Table.h
===
RCS file: /home/cvs/modperl-2.0/xs/APR/Table/APR__Table.h,v
retrieving revision 1.7
diff -u -r1.7 APR__Table.h
--- xs/APR/Table/APR__Table.h   12 Nov 2001 22:14:36 -  1.7
+++ xs/APR/Table/APR__Table.h   9 Jul 2002 06:51:29 -
@@ -70,7 +70,7 @@
  char *filter_entry;
  STRLEN len;

-tdata.filter = apr_hash_make(table-a.pool);
+tdata.filter = apr_hash_make(apr_table_elts(table)-pool);

  while (MARK = SP) {
  filter_entry = SvPV(*MARK, len);


__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




RE: modperl-2.0 make Error on Solaris

2002-07-09 Thread Kent, Mr. John

Thank you Stas and Randy,

For replying.  Stas's patch indeed fixed the problem and modperl-2.0
installed
fine on Solaris 2.7

Thank you,

John Kent
Webmaster
Naval Research Laboratory
Monterey CA

-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 7:56 AM
To: Randy Kobes
Cc: Kent, Mr. John; modperl (E-mail); [EMAIL PROTECTED]
Subject: Re: modperl-2.0 make Error on Solaris



/users/webuser/src/modperl-2.0/xs/APR/Table/APR__Table.h:73: dereferencing
pointer to incomplete type
make[3]: *** [Table.o] Error 1

please either apply this patch or use the cvs version (which now 
contains this patch) and it will work.

Index: xs/APR/Table/APR__Table.h
===
RCS file: /home/cvs/modperl-2.0/xs/APR/Table/APR__Table.h,v
retrieving revision 1.7
diff -u -r1.7 APR__Table.h
--- xs/APR/Table/APR__Table.h   12 Nov 2001 22:14:36 -  1.7
+++ xs/APR/Table/APR__Table.h   9 Jul 2002 06:51:29 -
@@ -70,7 +70,7 @@
  char *filter_entry;
  STRLEN len;

-tdata.filter = apr_hash_make(table-a.pool);
+tdata.filter = apr_hash_make(apr_table_elts(table)-pool);

  while (MARK = SP) {
  filter_entry = SvPV(*MARK, len);


__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



modperl-2.0 make Error on Solaris

2002-07-08 Thread Kent, Mr. John

Greetings,

Following:
Create the build environment
   % cd modperl-2.0
   % perl Makefile.PL MP_AP_PREFIX=/home/stas/src/httpd-2.0.xx
   % make

on Solaris 2.7

got:
make[3]: Entering directory
`/users/webuser/src/modperl-2.0/WrapXS/APR/Table'
gcc -c -I/users/webuser/src/modperl-2.0/src/modules/perl
-I/users/webuser/src/modperl-2.0/xs
-I/users/webuser/apache_heavy_test/include -I/usr/local/include  -DMOD_PERL
-O   -DVERSION=\0.01\ -DXS_VERSION=\0.01\ -fPIC
-I/users/webuser/perl/lib/5.6.1/sun4-solaris-thread-multi/CORE  Table.c
In file included from
/users/webuser/src/modperl-2.0/src/modules/perl/modperl_perl_includes.h:42,
 from
/users/webuser/src/modperl-2.0/src/modules/perl/mod_perl.h:5,
 from Table.xs:18:
/users/webuser/perl/lib/5.6.1/sun4-solaris-thread-multi/CORE/perl.h:23:
warning: `VOIDUSED' redefined
/users/webuser/perl/lib/5.6.1/sun4-solaris-thread-multi/CORE/config.h:3118:
warning: this is the location of the previous definition
/users/webuser/src/modperl-2.0/xs/APR/Table/APR__Table.h: In function
`mpxs_apr_table_do':
In file included from Table.xs:26:
/users/webuser/src/modperl-2.0/xs/APR/Table/APR__Table.h:73: dereferencing
pointer to incomplete type
make[3]: *** [Table.o] Error 1
make[3]: Leaving directory `/users/webuser/src/modperl-2.0/WrapXS/APR/Table'
make[2]: *** [subdirs] Error 2
make[2]: Leaving directory `/users/webuser/src/modperl-2.0/WrapXS/APR'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/users/webuser/src/modperl-2.0/WrapXS'
make: *** [subdirs] Error 2

Thanks,

John Kent
Webmaster
Naval Research Laboratory,
Monterey, CA




Re: modperl-2.0 make Error on Solaris

2002-07-08 Thread Randy Kobes

On Mon, 8 Jul 2002, Kent, Mr. John wrote:

 Greetings,

 Following:
 Create the build environment
% cd modperl-2.0
% perl Makefile.PL MP_AP_PREFIX=/home/stas/src/httpd-2.0.xx
% make

 on Solaris 2.7

 got:
 make[3]: Entering directory
 `/users/webuser/src/modperl-2.0/WrapXS/APR/Table'
 gcc -c -I/users/webuser/src/modperl-2.0/src/modules/perl
 -I/users/webuser/src/modperl-2.0/xs
 -I/users/webuser/apache_heavy_test/include -I/usr/local/include  -DMOD_PERL
 -O   -DVERSION=\0.01\ -DXS_VERSION=\0.01\ -fPIC
 -I/users/webuser/perl/lib/5.6.1/sun4-solaris-thread-multi/CORE  Table.c
 In file included from
 /users/webuser/src/modperl-2.0/src/modules/perl/modperl_perl_includes.h:42,
  from
 /users/webuser/src/modperl-2.0/src/modules/perl/mod_perl.h:5,
  from Table.xs:18:
 /users/webuser/perl/lib/5.6.1/sun4-solaris-thread-multi/CORE/perl.h:23:
 warning: `VOIDUSED' redefined
 /users/webuser/perl/lib/5.6.1/sun4-solaris-thread-multi/CORE/config.h:3118:
 warning: this is the location of the previous definition
 /users/webuser/src/modperl-2.0/xs/APR/Table/APR__Table.h: In function
 `mpxs_apr_table_do':
 In file included from Table.xs:26:
 /users/webuser/src/modperl-2.0/xs/APR/Table/APR__Table.h:73: dereferencing
 pointer to incomplete type
 make[3]: *** [Table.o] Error 1

I'm not sure if this is related, but with the cvs httpd-2.0 I get
an error in about the same place. If one places the definition of
apr_table_t in httpd-2.0/srclib/apr/tables/apr_tables.c:

struct apr_table_t {
  apr_array_header_t a;
#ifdef MAKE_TABLE_PROFILE
  void *creator;
#endif
};

into MP_AP_PREFIX/include/apr_tables.h, just after the
struct apr_array_header_t declaration, then things compiled
for me, and all tests pass.

best regards,
randy kobes