======Troubleshooting: Problems compiling Evergreen====== =====apr.h error (apr_off_t)===== ====Problem==== Error message returned during make: 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/include/apr-1/apr.h:270: error exprected '=', ',',':', 'asm' or '__attribute__' before 'apr_off_t' ====Solution==== On February 22nd (1), Bill committed a patch to the 1_0 and HEAD branches that respects CFLAGS settings for x86-32 platforms, specifically to address this problem on 32-bit Debian. A similar problem has been reported on Fedora Core 5. To avoid this error, use the following command to make Evergreen: CFLAGS=-D_LARGEFILE64_SOURCE make *1 See http://list.georgialibraries.org/pipermail/open-ils-dev/2007-February/000362.html =====Problem with autogen.sh: Can't call method "opac_visible" ===== ====Problem==== When running ''autogen.sh'' to generate the required catalogue files, you receive the following output: Updating fieldmapper Updating web_fieldmapper Updating OrgTree removing OrgTree from the cache... Updating OrgTree HTML Can't call method "opac_visible" on an undefined value at org_tree_html_options.pl line 28. Done ====Solution==== Open your ''opensrf.xml'' file and ensure that the value of the '''' elements in the ''/opensrf/default/apps/open-ils.cstore/app_settings'' and the ''/opensrf/default/apps/open-ils.reporter-store/app_settings'' sections is ''pgsql'', not ''Pg''. The driver for any applications with ''C'' must be ''pgsql'', which specifies the corresponding libdbi / libdbdpgsql drivers written in C.