#43893: clamav-0.98.3 / MacOS X 10.7.4 / Xcode 4.6.3 : build fails ----------------------------+-------------------------------- Reporter: dan+macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Keywords: build | Port: 0.98.3 ----------------------------+-------------------------------- The following steps: {{{ $ port clean --all clamav $ port configure clamav $ port -vs build clamav build.jobs=1 }}} produces the following errors: {{{ [...] mv -f .deps/clamdcom.Tpo .deps/clamdcom.Po /usr/bin/clang -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I.. -I/opt/include -I.. -I../shared -I../libclamav -I/opt/include -I/opt/include -pipe -Os -arch x86_64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -MT freshclam.o -MD -MP -MF .deps/freshclam.Tpo -c -o freshclam.o freshclam.c In file included from freshclam.c:57: In file included from ../libclamav/others.h:21: In file included from ../libclamav/matcher.h:28: ../libclamav/others.h:154:5: error: unknown type name 'stats_section_t' stats_section_t *sections; ^ ../libclamav/others.h:323:5: error: unknown type name 'clcb_stats_add_sample' clcb_stats_add_sample cb_stats_add_sample; ^ ../libclamav/others.h:324:5: error: unknown type name 'clcb_stats_remove_sample' clcb_stats_remove_sample cb_stats_remove_sample; ^ ../libclamav/others.h:325:5: error: unknown type name 'clcb_stats_decrement_count' clcb_stats_decrement_count cb_stats_decrement_count; ^ ../libclamav/others.h:326:5: error: unknown type name 'clcb_stats_submit' clcb_stats_submit cb_stats_submit; ^ ../libclamav/others.h:327:5: error: unknown type name 'clcb_stats_flush' clcb_stats_flush cb_stats_flush; ^ ../libclamav/others.h:328:5: error: unknown type name 'clcb_stats_get_num' clcb_stats_get_num cb_stats_get_num; ^ ../libclamav/others.h:329:5: error: unknown type name 'clcb_stats_get_size' clcb_stats_get_size cb_stats_get_size; ^ ../libclamav/others.h:330:5: error: unknown type name 'clcb_stats_get_hostid' clcb_stats_get_hostid cb_stats_get_hostid; ^ ../libclamav/others.h:380:5: error: unknown type name 'clcb_stats_add_sample' clcb_stats_add_sample cb_stats_add_sample; ^ ../libclamav/others.h:381:5: error: unknown type name 'clcb_stats_remove_sample' clcb_stats_remove_sample cb_stats_remove_sample; ^ ../libclamav/others.h:382:5: error: unknown type name 'clcb_stats_decrement_count' clcb_stats_decrement_count cb_stats_decrement_count; ^ ../libclamav/others.h:383:5: error: unknown type name 'clcb_stats_submit' clcb_stats_submit cb_stats_submit; ^ ../libclamav/others.h:384:5: error: unknown type name 'clcb_stats_flush' clcb_stats_flush cb_stats_flush; ^ ../libclamav/others.h:385:5: error: unknown type name 'clcb_stats_get_num' clcb_stats_get_num cb_stats_get_num; ^ ../libclamav/others.h:386:5: error: unknown type name 'clcb_stats_get_size' clcb_stats_get_size cb_stats_get_size; ^ ../libclamav/others.h:387:5: error: unknown type name 'clcb_stats_get_hostid' clcb_stats_get_hostid cb_stats_get_hostid; ^ freshclam.c:762:5: warning: implicit declaration of function 'cl_engine_stats_enable' is invalid in C99 [-Wimplicit-function- declaration] cl_engine_stats_enable(engine); ^ freshclam.c:781:9: warning: implicit declaration of function 'cl_engine_set_clcb_stats_get_hostid' is invalid in C99 [-Wimplicit- function-declaration] cl_engine_set_clcb_stats_get_hostid(engine, NULL); ^ 2 warnings and 17 errors generated. make[2]: *** [freshclam.o] Error 1 make[2]: Leaving directory `/opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_clamav/clamav/work/clamav-0.98.3/freshclam' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_clamav/clamav/work/clamav-0.98.3' make: *** [all] Error 2 make: Leaving directory `/opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_clamav/clamav/work/clamav-0.98.3' Command failed: cd "/opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_clamav/clamav/work/clamav-0.98.3" && /usr/bin/make -w all Exit code: 2 Error: org.macports.build for port clamav returned: command execution failed Warning: targets not executed for clamav: org.macports.build Please see the log file for port clamav for details: /opt/var/macports/logs/_opt_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_clamav/clamav/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port clamav failed }}} -- Ticket URL: <https://trac.macports.org/ticket/43893> MacPorts <http://www.macports.org/> Ports system for OS X