pkgsrc-Users archive

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

Re: Another build failure - security/clamav



		Hi Paul, pkgsrc-users@,

On 08/07/2017 00:36, Paul Goyette wrote:
Well, the issue with memtestplus is resolved, but now I'm getting the
following errors with clamav.

Looks like a problem with the 'gets' macro? [...]

This is because of FORTIFY indeed. I have an (ugly) patch for that (attached). Thoughts?

Cheers,
--
khorben
$NetBSD$

Fix build with PKGSRC_USE_FORTIFY.

--- libclamav/fmap.h.orig	2016-04-22 15:02:19.000000000 +0000
+++ libclamav/fmap.h
@@ -74,6 +74,9 @@ struct cl_fmap {
     void        (*unmap)(fmap_t*);
     const void* (*need)(fmap_t*, size_t at, size_t len, int lock);
     const void* (*need_offstr)(fmap_t*, size_t at, size_t len_hint);
+#ifdef gets /* XXX ugly hack for FORTIFY */
+# undef gets
+#endif
     const void* (*gets)(fmap_t*, char *dst, size_t *at, size_t max_len);
     void        (*unneed_off)(fmap_t*, size_t at, size_t len);
 #ifdef _WIN32


Home | Main Index | Thread Index | Old Index