Bug 235002 - mail/cyrus-imapd30: build fails with undeclared identifier 'CL_SCAN_STDOPT'
Summary: mail/cyrus-imapd30: build fails with undeclared identifier 'CL_SCAN_STDOPT'
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Hajimu UMEMOTO
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-16 16:23 UTC by albert.shih
Modified: 2019-02-03 02:52 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (ume)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description albert.shih 2019-01-16 16:23:12 UTC
Hi, 

On poudriere the ports didn't build anymore with 

------------------------------------------------------------------------------
/bin/sh ./libtool  --tag=CC   --mode=link cc -DPIC -fPIC  -O2 -pipe  -fstack-protector -fno-strict-aliasing   -L/usr/local/lib -licuuc -licudata   -L/usr/local/lib -Wl,-rpath,/usr/local/lib   -fstack-protector  -L/usr/lib -o imap/cyr_userseen imap/cli_fatal.o imap/cyr_userseen.o imap/mutex_fake.o imap/libcyrus_imap.la lib/libcyrus.la lib/libcyrus_min.la -L/usr/lib -lgssapi -lkrb5 -lasn1 -lroken -lcrypt  -lcom_err -lhx509  -L/usr/local/lib  -lpcre -lpcreposix -lz -L/usr/local/lib  -Wl,-rpath,/usr/local/lib -lsqlite3 -L/usr/local/lib  -Wl,-rpath,/usr/local/lib -lsasl2 -L/usr/lib  -Wl,-rpath,/usr/lib -lssl -lcrypto   com_err/et/libcyrus_com_err.la -L/usr/lib -lgssapi -lkrb5 -lasn1 -lroken -lcrypt  -lcom_err -lhx509  -L/usr/local/lib  -lpcre -lpcreposix -lz -L/usr/local/lib  -Wl,-rpath,/usr/local/lib -lsqlite3
libtool: link: cc -DPIC -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -Wl,-rpath -Wl,/usr/local/lib -fstack-protector -o imap/.libs/cyr_userseen imap/cli_fatal.o imap/cyr_userseen.o imap/mutex_fake.o -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/lib -Wl,-rpath -Wl,/usr/local/lib  -L/usr/local/lib -licuuc -licudata -L/usr/lib imap/.libs/libcyrus_imap.so lib/.libs/libcyrus.so lib/.libs/libcyrus_min.so /usr/local/lib/libsasl2.so -lssl -lcrypto com_err/et/.libs/libcyrus_com_err.so -lgssapi -lkrb5 -lasn1 -lroken -lcrypt -lcom_err -lhx509 -lpcre -lpcreposix -lz -lsqlite3 -Wl,-rpath -Wl,/usr/local/lib
depbase=`echo imap/cyr_virusscan.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DHAVE_CONFIG_H -I.  -I./com_err/et -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/local/cyrus/libexec\" -DSBIN_DIR=\"/usr/local/cyrus/sbin\" -DSYSCONF_DIR=\"/usr/local/etc\" -DHAVE_CONFIG_H  -I/usr/local/include -I/usr/include -I/usr/local/include    -I/usr/local/include -I/usr/local/include -I/usr/include -DKRB5_HEIMDAL -DPIC -fPIC  -O2 -pipe  -fstack-protector -fno-strict-aliasing  -MT imap/cyr_virusscan.o -MD -MP -MF $depbase.Tpo -c -o imap/cyr_virusscan.o imap/cyr_virusscan.c &&\
mv -f $depbase.Tpo $depbase.Po
imap/cyr_virusscan.c:197:21: error: use of undeclared identifier 'CL_SCAN_STDOPT'
                    CL_SCAN_STDOPT);
                    ^
1 error generated.
gmake[3]: *** [Makefile:4506: imap/cyr_virusscan.o] Error 1
gmake[3]: Leaving directory '/wrkdirs/usr/ports/mail/cyrus-imapd30/work/cyrus-imapd-3.0.8'
gmake[2]: *** [Makefile:6096: all-recursive] Error 1
gmake[2]: Leaving directory '/wrkdirs/usr/ports/mail/cyrus-imapd30/work/cyrus-imapd-3.0.8'
gmake[1]: *** [Makefile:2678: all] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/mail/cyrus-imapd30/work/cyrus-imapd-3.0.8'
*** Error code 1

Stop.
make: stopped in /usr/ports/mail/cyrus-imapd30
=>> Cleaning up wrkdir
===>  Cleaning for cyrus-imapd30-3.0.8_2
build of mail/cyrus-imapd30 | cyrus-imapd30-3.0.8_2 ended at Wed Jan 16 17:04:03 CET 2019
build time: 00:02:53
!!! build failure encountered ------------------------------------------------------------------------------


with those options:


------------------------------------------------------------------------------


_FILE_COMPLETE_OPTIONS_LIST=AUTOCREATE BACKUP CLAMAV DOCS HTTP IDLED LDAP LMDB MURDER MYSQL NNTP PGSQL REPLICATION SNMP SQLITE SQUAT XAPIAN GSSAPI_HEIMDAL GSSAPI_MIT GSSAPI_BASE READLINE_GNU READLINE_PERL
OPTIONS_FILE_SET+=AUTOCREATE
OPTIONS_FILE_SET+=BACKUP
OPTIONS_FILE_SET+=CLAMAV
OPTIONS_FILE_UNSET+=DOCS
OPTIONS_FILE_UNSET+=HTTP
OPTIONS_FILE_SET+=IDLED
OPTIONS_FILE_UNSET+=LDAP
OPTIONS_FILE_UNSET+=LMDB
OPTIONS_FILE_UNSET+=MURDER
OPTIONS_FILE_UNSET+=MYSQL
OPTIONS_FILE_UNSET+=NNTP
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_SET+=REPLICATION
OPTIONS_FILE_UNSET+=SNMP
OPTIONS_FILE_SET+=SQLITE
OPTIONS_FILE_SET+=SQUAT
OPTIONS_FILE_SET+=XAPIAN
OPTIONS_FILE_UNSET+=GSSAPI_HEIMDAL
OPTIONS_FILE_UNSET+=GSSAPI_MIT
OPTIONS_FILE_SET+=GSSAPI_BASE
OPTIONS_FILE_UNSET+=READLINE_GNU
OPTIONS_FILE_UNSET+=READLINE_PERL

------------------------------------------------------------------------------


Regards
Comment 1 commit-hook freebsd_committer 2019-01-16 17:41:26 UTC
A commit references this bug:

Author: ume
Date: Wed Jan 16 17:40:27 UTC 2019
New revision: 490494
URL: https://svnweb.freebsd.org/changeset/ports/490494

Log:
  Mark BROKEN with CLAMAV option.
  It is not buildable with latest clamav.

  PR:		235002
  Reported by:	albert.shih

Changes:
  head/mail/cyrus-imapd30/Makefile
Comment 2 albert.shih 2019-01-16 18:05:17 UTC
Ok thanks for the quick answer.

Do you have any idea if that's can be solve or not ?

Regards
Comment 3 commit-hook freebsd_committer 2019-01-17 13:15:38 UTC
A commit references this bug:

Author: ume
Date: Thu Jan 17 13:15:24 UTC 2019
New revision: 490560
URL: https://svnweb.freebsd.org/changeset/ports/490560

Log:
  Make it buildable with clamav-0.101.X.

  PR:		235002
  Obtained from:	https://github.com/cyrusimap/cyrus-imapd/commit/09b5bf11e12185727d53a6ae06d71a767952a537#diff-e162ed934ed89d2014e496fc1961be01

Changes:
  head/mail/cyrus-imapd30/Makefile
  head/mail/cyrus-imapd30/files/patch-imap__cyr_virusscan.c