[OPEN-ILS-DEV] Issue building OpenSRF-0.9

Jason Zou qzou at lakeheadu.ca
Wed Jan 9 15:58:23 EST 2008


Niles Ingalls wrote:
>
> Hello,
>
> I'm having an issue building OpenSRF, and google isn't shedding light 
> on the
> issue.  The problem lies somewhere with apr, and I'm using apr 1.2.12 on
> slackware(12).
> Here's the error when I attempt to do make:
>
> root at dl380:/usr/src/evergreen/OpenSRF-0.9# make
>
>  * Run 'make verbose' to see full make output
>
> source install.conf && make -s -C src all
> objson/libobjson.so
> opensrf
> router
> srfsh
> jserver
> gateway
> In file included from /usr/include/httpd/ap_config.h:25,
>                  from /usr/include/httpd/httpd.h:43,
>                  from apachetools.h:1,
>                  from apachetools.c:1:
> /usr/local/apr/include/apr-1/apr.h:273: error: expected '=', ',', ';', 
> 'asm'
> or '__attribute__' before 'apr_off_t'
> In file included from /usr/local/apr/include/apr-1/apr_file_io.h:29,
>                  from /usr/local/apr/include/apr-1/apr_network_io.h:26,
>                  from /usr/include/httpd/httpd.h:53,
>                  from apachetools.h:1,
>                  from apachetools.c:1:
> /usr/local/apr/include/apr-1/apr_file_info.h:206: error: expected
> specifier-qualifier-list before 'apr_off_t'
> In file included from /usr/local/apr/include/apr-1/apr_network_io.h:26,
>                  from /usr/include/httpd/httpd.h:53,
>                  from apachetools.h:1,
>                  from apachetools.c:1:
> /usr/local/apr/include/apr-1/apr_file_io.h:551: error: expected 
> declaration
> specifiers or '...' before 'apr_off_t'
> /usr/local/apr/include/apr-1/apr_file_io.h:749: error: expected 
> declaration
> specifiers or '...' before 'apr_off_t'
> In file included from /usr/include/httpd/httpd.h:53,
>                  from apachetools.h:1,
>                  from apachetools.c:1:
> /usr/local/apr/include/apr-1/apr_network_io.h:549: error: expected
> declaration specifiers or '...' before 'apr_off_t'
> In file included from /usr/local/apr/include/apr-1/apr_buckets.h:32,
>                  from /usr/include/httpd/httpd.h:54,
>                  from apachetools.h:1,
>                  from apachetools.c:1:
> /usr/local/apr/include/apr-1/apr_mmap.h:134: error: expected declaration
> specifiers or '...' before 'apr_off_t'
> /usr/local/apr/include/apr-1/apr_mmap.h:161: error: expected declaration
> specifiers or '...' before 'apr_off_t'
> In file included from /usr/include/httpd/httpd.h:54,
>                  from apachetools.h:1,
>                  from apachetools.c:1:
> /usr/local/apr/include/apr-1/apr_buckets.h:242: error: expected
> specifier-qualifier-list before 'apr_off_t'
> /usr/local/apr/include/apr-1/apr_buckets.h:706: error: expected 
> declaration
> specifiers or '...' before 'apr_off_t'
> /usr/local/apr/include/apr-1/apr_buckets.h:718: error: expected 
> declaration
> specifiers or '...' before 'apr_off_t'
> /usr/local/apr/include/apr-1/apr_buckets.h:754: error: expected 
> declaration
> specifiers or '...' before 'apr_off_t'
> /usr/local/apr/include/apr-1/apr_buckets.h:890: error: expected 
> declaration
> specifiers or '...' before 'apr_off_t'
> /usr/local/apr/include/apr-1/apr_buckets.h:891: error: expected 
> declaration
> specifiers or '...' before 'apr_off_t'
> /usr/local/apr/include/apr-1/apr_buckets.h:1168: error: expected 
> declaration
> specifiers or '...' before 'apr_off_t'
> /usr/local/apr/include/apr-1/apr_buckets.h:1367: error: expected 
> declaration
> specifiers or '...' before 'apr_off_t'
> /usr/local/apr/include/apr-1/apr_buckets.h:1381: error: expected 
> declaration
> specifiers or '...' before 'apr_off_t'
> /usr/local/apr/include/apr-1/apr_buckets.h:1431: error: expected 
> declaration
> specifiers or '...' before 'apr_off_t'
> /usr/local/apr/include/apr-1/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/httpd/httpd.h:848: error: expected specifier-qualifier-list
> before 'apr_off_t'
> In file included from /usr/include/httpd/http_core.h:32,
>                  from apachetools.h:3,
>                  from apachetools.c:1:
> /usr/include/httpd/util_filter.h:142: error: expected declaration 
> specifiers
> or '...' before 'apr_off_t'
> /usr/include/httpd/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/httpd/http_core.h:229: error: expected '=', ',', ';', 
> 'asm' or
> '__attribute__' before 'ap_get_limit_req_body'
> /usr/include/httpd/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/httpd/http_protocol.h:111: error: expected declaration
> specifiers or '...' before 'apr_off_t'
> /usr/include/httpd/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/local/apr/include/apr-1/apr_strings.h:299: error: expected 
> declaration
> specifiers or '...' before 'apr_off_t'
> /usr/local/apr/include/apr-1/apr_strings.h:315: error: expected ')' before
> '*' token
> /usr/local/apr/include/apr-1/apr_strings.h:351: 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
> make: *** [all] Error 2
>
> Please advise.
> Thanks!
>
> Niles Ingalls
> UNIX & Web Administrator
> Hussey-Mayfield Memorial Public Library
> 250 N. Fifth Street
> P.O. Box 840
> Zionsville, IN. 46077
>
> Phone   317-873-3149 x13280
> Fax     317-873-8339
>
> "Confidence is what you have before you understand the problem." - Woody
> Allen
>
>
Just in case, have you tried the following?

CFLAGS=-D_LARGEFILE64_SOURCE make


Jason Zou

-- 
Lakehead University Library 



More information about the Open-ils-dev mailing list