Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#43893 closed defect (wontfix)

clamav-0.98.3 / MacOS X 10.7.4 / Xcode 4.6.3 : build fails

Reported by: dazuelos (dan) Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 2.3.0
Keywords: Cc:
Port: clamav

Description

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

Attachments (1)

main.log (825.6 KB) - added by dazuelos (dan) 10 years ago.
Complete main.log of the build step.

Download all attachments as: .zip

Change History (8)

Changed 10 years ago by dazuelos (dan)

Attachment: main.log added

Complete main.log of the build step.

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Keywords: build removed
Owner: changed from macports-tickets@… to dluke@…
Port: clamav added; 0.98.3 removed

In the future, please fill in the Port field with the name of the port and Cc the port maintainers (port info --maintainers clamav).

comment:2 Changed 10 years ago by pixilla (Bradley Giesbrecht)

dan+macports: Do you have an older version of clamav installed?

There is this issue on FreeBSD building clamav 0.98.3 with an older clamav installed.

comment:3 in reply to:  2 Changed 10 years ago by dazuelos (dan)

Replying to 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 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.

comment:4 Changed 10 years ago by dazuelos (dan)

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.                             
#

comment:5 Changed 10 years ago by danielluke (Daniel J. Luke)

Resolution: wontfix
Status: newclosed

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).

comment:6 in reply to:  5 Changed 10 years ago by dazuelos (dan)

Replying to 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.

Version 0, edited 10 years ago by dazuelos (dan) (next)

comment:7 Changed 10 years ago by danielluke (Daniel J. Luke)

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.

Note: See TracTickets for help on using tickets.