[MacPorts] #43893: clamav-0.98.3 / MacOS X 10.7.4 / Xcode 4.6.3 : build fails
#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
#43893: clamav-0.98.3 / MacOS X 10.7.4 / Xcode 4.6.3 : build fails -----------------------------+--------------------- Reporter: dan+macports@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: clamav | -----------------------------+--------------------- Changes (by mf2k@…): * keywords: build => * owner: macports-tickets@… => dluke@… * port: 0.98.3 => clamav Comment: In the future, please fill in the Port field with the name of the port and Cc the port maintainers ({{{port info --maintainers clamav}}}). -- Ticket URL: <https://trac.macports.org/ticket/43893#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43893: clamav-0.98.3 / MacOS X 10.7.4 / Xcode 4.6.3 : build fails -----------------------------+--------------------- Reporter: dan+macports@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: clamav | -----------------------------+--------------------- Comment (by pixilla@…): dan+macports: Do you have an older version of clamav installed? There is [https://www.mail-archive.com/freebsd- ports@freebsd.org/msg57861.html this issue] on FreeBSD building clamav 0.98.3 with an older clamav installed. -- Ticket URL: <https://trac.macports.org/ticket/43893#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#43893: clamav-0.98.3 / MacOS X 10.7.4 / Xcode 4.6.3 : build fails -----------------------------+--------------------- Reporter: dan+macports@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: clamav | -----------------------------+--------------------- Comment (by dan+macports@…): Replying to [comment:2 pixilla@…]:
dan+macports: Do you have an older version of clamav installed?
{{{ # port installed clamav The following ports are currently installed: clamav @0.98.1_0 (active) # }}}
There is [https://www.mail-archive.com/freebsd-
ports@freebsd.org/msg57861.html this issue] on FreeBSD building clamav 0.98.3 with an older clamav installed. Thank you. I read it prior to investigate, reproduce my build problem, and fill a ticket. -- Ticket URL: <https://trac.macports.org/ticket/43893#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#43893: clamav-0.98.3 / MacOS X 10.7.4 / Xcode 4.6.3 : build fails -----------------------------+--------------------- Reporter: dan+macports@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: clamav | -----------------------------+--------------------- Comment (by dan+macports@…): Workaround: {{{ # port uninstall clamav ---> Deactivating clamav @0.98.1_0 ---> Cleaning clamav ---> Uninstalling clamav @0.98.1_0 ---> Cleaning clamav # port install clamav ---> Computing dependencies for clamav ---> Building clamav ---> Staging clamav into destroot ---> Installing clamav @0.98.3_1 ---> Activating clamav @0.98.3_1 ---> Cleaning clamav ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found. # }}} -- Ticket URL: <https://trac.macports.org/ticket/43893#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#43893: clamav-0.98.3 / MacOS X 10.7.4 / Xcode 4.6.3 : build fails -----------------------------+--------------------- Reporter: dan+macports@… | Owner: dluke@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: wontfix | Keywords: Port: clamav | -----------------------------+--------------------- Changes (by dluke@…): * status: new => closed * resolution: => wontfix Comment: This is probably something best addressed upstream (and/or will maybe eventually be fixed by being able to run macports in trace mode all the time). -- Ticket URL: <https://trac.macports.org/ticket/43893#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#43893: clamav-0.98.3 / MacOS X 10.7.4 / Xcode 4.6.3 : build fails -----------------------------+--------------------- Reporter: dan+macports@… | Owner: dluke@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: wontfix | Keywords: Port: clamav | -----------------------------+--------------------- Comment (by dan+macports@…): Replying to [comment:5 dluke@…]:
This is probably something best addressed upstream (and/or will maybe eventually be fixed by being able to run macports in trace mode all the time).
Which trace should I get? I have downloaded back clamav @0.98.1_0, build and installed it. -- Ticket URL: <https://trac.macports.org/ticket/43893#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#43893: clamav-0.98.3 / MacOS X 10.7.4 / Xcode 4.6.3 : build fails -----------------------------+--------------------- Reporter: dan+macports@… | Owner: dluke@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: wontfix | Keywords: Port: clamav | -----------------------------+--------------------- Comment (by dluke@…): No, I was referring to trace mode in macports which can prevent the 'new' build from seeing stuff from the installed port (which could fix this issue). It's something that may eventually be part of the default macports build process. As far as this specific issue, since it works if you uninstall the old clamav and then build the new one, it's really an issue with the upstream build process - and should be fixed there. -- Ticket URL: <https://trac.macports.org/ticket/43893#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts