pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Another build failure - security/clamav



On Sat, 8 Jul 2017, Uwe Klaus wrote:

On Sat, 8 Jul 2017, Paul Goyette wrote:

Looks like a problem with the 'gets' macro?

...
--- libclamav_internal_utils_nothreads_la-regcomp.lo ---
*** [libclamav_internal_utils_nothreads_la-regcomp.lo] Error code 1

make[4]: stopped in /tmp/pkgs/security/clamav/work.x86_64/clamav-0.99.2/libclamav
--- libclamav_internal_utils_nothreads_la-regerror.lo ---
In file included from ./filetypes.h:29:0,
                from ./matcher.h:28,
                from ./others.h:22,
                from regex/regerror.c:46:
./fmap.h: In function 'fmap_gets':
./fmap.h:159:39: error: macro "gets" passed 4 arguments, but takes just 1
    return m->gets(m, dst, at, max_len);
                                      ^
*** [libclamav_internal_utils_nothreads_la-regerror.lo] Error code 1

make[4]: stopped in /tmp/pkgs/security/clamav/work.x86_64/clamav-0.99.2/libclamav
--- libclamav_internal_utils_nothreads_la-regexec.lo ---
In file included from ./filetypes.h:29:0,
                from ./matcher.h:28,
                from ./others.h:22,
                from regex/regexec.c:53:
./fmap.h: In function 'fmap_gets':
./fmap.h:159:39: error: macro "gets" passed 4 arguments, but takes just 1
    return m->gets(m, dst, at, max_len);
                                      ^
*** [libclamav_internal_utils_nothreads_la-regexec.lo] Error code 1

make[4]: stopped in /tmp/pkgs/security/clamav/work.x86_64/clamav-0.99.2/libclamav
7 errors
For this package only I used the following settings in /etc/mk.conf
PKGSRC_USE_SSP=no
PKGSRC_USE_FORTIFY=no

Same setting I had to use in mail/hypermail, textproc/icu and
textproc/php-int.

Ah, more fall-out from the SSP/FORTIFY ! I would not have suspected it based on the failure mode.

Thanks for the clue!


FWIW, I have already hard-coded sysutils/memtestplus to disable both SSP and FORTIFY. It seems that stand-alone utilities probably cannot use either of these tools.


+------------------+--------------------------+----------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:          |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
+------------------+--------------------------+----------------------------+


Home | Main Index | Thread Index | Old Index