[OPEN-ILS-DEV] typedef off64_t apr_off_t in apr.h

Don McMorris don.mcmorris at gmail.com
Mon Feb 5 00:44:34 EST 2007


Heya Grace.  Wish there were a (simple) way to make the "over my head"
gesture in an e-mail!

Searching for "apr" on the wiki (
http://www.open-ils.org/dokuwiki/doku.php?do=search&id=apr ), it
appears that (at least at the time of documentation), Evergreen was
built against APR 0.x.  I'm sure Bill (or Mike... or Jason...) will
clarify and elaborate.

If there's anything additional you need, please do not hesitate to
contact the list!

--Don

On 2/4/07, Grace Liu <gyliu86 at hotmail.com> wrote:
>
> Hi
>
> As Bill said, adding the following to httpd.conf should solve the make install problem:
> LoadModule mod_xmlent /usr/lib/apache2/modules/mod_xmlent.so
>
> But this LoadModule is mentioned in configuring Apache after the make install step (Building and Installing The Source, make config, make, make install). It belongs to the content in  next step. My simple solution is, before make install step, put a commented Dummy LoadModule directive in httpd.conf file, i,e, put following 2 commented lines (or just the second line):
> # Dummy LoadModule directive to aid module installations
> #LoadModule dummy_module /usr/lib/apache2/modules/mod_dummy.so
>
>
> As to the versions Don asked, I am using Debian Etch testing, Apache2.2, Postgresql 8.1.5. I am wondering what versions of these have passed the test and what versions you are using now, including Debian Kernel, GCC, etc.
>
>
> Another issue is, in Building and Installing The Source, after make config step, I tried to make and got the error:
>
> /usr/include/apr-1.0/apr.h:270: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apr_off_t'
>
> line 270 in file apr.h
> typedef  off64_t           apr_off_t;
>
> I changed to :
> typedef  __off64_t           apr_off_t;
>
> Then passed the make and make install. The thing is I am not sure if it may have bad behaviors. The apr.h may have this error but it is also possible a bug in the ILS source code, or some configurations I did not correctly set.
>
> Detailed error message is:
>
> /usr/include/apr-1.0/apr.h:270: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apr_off_t'
> In file included from /usr/include/apr-1.0/apr_file_io.h:29,
>                  from /usr/include/apr-1.0/apr_network_io.h:26,
>                  from /usr/include/apache2/httpd.h:53,
>                  from apachetools.h:1,
>                  from apachetools.c:1:
> /usr/include/apr-1.0/apr_file_info.h:210: error: expected specifier-qualifier-list before 'apr_off_t'
> In file included from /usr/include/apr-1.0/apr_network_io.h:26,
>                  from /usr/include/apache2/httpd.h:53,
>                  from apachetools.h:1,
>                  from apachetools.c:1:
> /usr/include/apr-1.0/apr_file_io.h:548: error: expected declaration specifiers or '...' before 'apr_off_t'
> /usr/include/apr-1.0/apr_file_io.h:740: error: expected declaration specifiers or '...' before 'apr_off_t'
> In file included from /usr/include/apache2/httpd.h:53,
>                  from apachetools.h:1,
>                  from apachetools.c:1:
> /usr/include/apr-1.0/apr_network_io.h:545: error: expected declaration specifiers or '...' before 'apr_off_t'
> In file included from /usr/include/apr-1.0/apr_buckets.h:32,
>                  from /usr/include/apache2/httpd.h:54,
>                  from apachetools.h:1,
>                  from apachetools.c:1:
> /usr/include/apr-1.0/apr_mmap.h:134: error: expected declaration specifiers or '...' before 'apr_off_t'
> /usr/include/apr-1.0/apr_mmap.h:161: error: expected declaration specifiers or '...' before 'apr_off_t'
> In file included from /usr/include/apache2/httpd.h:54,
>                  from apachetools.h:1,
>                  from apachetools.c:1:
> /usr/include/apr-1.0/apr_buckets.h:242: error: expected specifier-qualifier-list before 'apr_off_t'
> /usr/include/apr-1.0/apr_buckets.h:706: error: expected declaration specifiers or '...' before 'apr_off_t'
> /usr/include/apr-1.0/apr_buckets.h:718: error: expected declaration specifiers or '...' before 'apr_off_t'
> /usr/include/apr-1.0/apr_buckets.h:754: error: expected declaration specifiers or '...' before 'apr_off_t'
> /usr/include/apr-1.0/apr_buckets.h:890: error: expected declaration specifiers or '...' before 'apr_off_t'
> /usr/include/apr-1.0/apr_buckets.h:891: error: expected declaration specifiers or '...' before 'apr_off_t'
> /usr/include/apr-1.0/apr_buckets.h:1168: error: expected declaration specifiers or '...' before 'apr_off_t'
> /usr/include/apr-1.0/apr_buckets.h:1367: error: expected declaration specifiers or '...' before 'apr_off_t'
> /usr/include/apr-1.0/apr_buckets.h:1381: error: expected declaration specifiers or '...' before 'apr_off_t'
> /usr/include/apr-1.0/apr_buckets.h:1431: error: expected declaration specifiers or '...' before 'apr_off_t'
> /usr/include/apr-1.0/apr_buckets.h:1447: error: expected declaration specifiers or '...' before 'apr_off_t'
> In file included from apachetools.h:1,
>                  from apachetools.c:1:
> /usr/include/apache2/httpd.h:826: error: expected specifier-qualifier-list before 'apr_off_t'
> In file included from /usr/include/apache2/http_core.h:32,
>                  from apachetools.h:3,
>                  from apachetools.c:1:
> /usr/include/apache2/util_filter.h:142: error: expected declaration specifiers or '...' before 'apr_off_t'
> /usr/include/apache2/util_filter.h:299: error: expected declaration specifiers or '...' before 'apr_off_t'
> In file included from apachetools.h:3,
>                  from apachetools.c:1:
> /usr/include/apache2/http_core.h:229: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ap_get_limit_req_body'
> /usr/include/apache2/http_core.h:672: error: expected declaration specifiers or '...' before 'apr_off_t'
> In file included from apachetools.h:4,
>                  from apachetools.c:1:
> /usr/include/apache2/http_protocol.h:111: error: expected declaration specifiers or '...' before 'apr_off_t'
> /usr/include/apache2/http_protocol.h:203: error: expected declaration specifiers or '...' before 'apr_off_t'
> In file included from apachetools.h:6,
>                  from apachetools.c:1:
> /usr/include/apr-1.0/apr_strings.h:297: error: expected declaration specifiers or '...' before 'apr_off_t'
> /usr/include/apr-1.0/apr_strings.h:313: error: expected ')' before '*' token
> /usr/include/apr-1.0/apr_strings.h:349: error: expected ')' before 'size'
> apachetools.c: In function 'apacheParseParms':
> apachetools.c:7: error: 'request_rec' has no member named 'args'
> make[2]: *** [apachetools.o] Error 1
> make[1]: *** [gateway] Error 2
>
> Thanks.
>
> Grace
>
> _________________________________________________________________
> Live Search: Better results, fast
> http://get.live.com/search/overview


More information about the Open-ils-dev mailing list