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

Dan Scott denials at gmail.com
Wed Jan 9 15:35:38 EST 2008


On 09/01/2008, Niles Ingalls <nilesi at zionsville.lib.in.us> 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!
>

Hi Niles:

/usr/local/apr/include/apr-1 looks like a weird location for the Apache
header files - I wouldn't expect to find an include directory inside another
include directory - but I don't know Slackware, so that could just be me.

What output do you get from:

ls -d /usr/include/apr*
ls -d /usr/local/include/apr*

In most distros, you'll find a directory like "/usr/include/apr-1" or
"/usr/include/apr-0". If you compiled Apache from source, it might be in
"/usr/local/include/apr-something" instead. You'll need to update
install.conf with the correct location for the APR directory on your system.

Apologies if this is way off-base.

-- 
Dan Scott
Laurentian University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.georgialibraries.org/pipermail/open-ils-dev/attachments/20080109/ce114515/attachment-0001.html


More information about the Open-ils-dev mailing list