pkgsrc-Users archive

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

Re: Another build failure - security/clamav



		Hi Uwe, pkgsrc-users@,

On 08/07/2017 09:04, Uwe Klaus wrote:
On Sat, 8 Jul 2017, Paul Goyette wrote:

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

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.

For mail/hypermail here are two patches (attached), however I am afraid it will break functionality. Can you test them?

BTW, the code in this software wraps a lot of libc functions in macros. Quite ugly :(

Cheers,
--
khorben
$NetBSD$

Fix build with FORTIFY.

--- src/file.c.orig	2004-02-17 18:48:19.000000000 +0000
+++ src/file.c
@@ -48,7 +48,7 @@
 #endif
 #endif /* HAVE_LIBFNV */
 
-extern int snprintf(char *str, size_t size, const  char  *format, ...);
+#include <stdio.h>
 
 
 /*
$NetBSD$

Fix build with FORTIFY.

--- src/hypermail.h.orig	2004-05-25 18:49:01.000000000 +0000
+++ src/hypermail.h
@@ -100,7 +100,9 @@
 /*
 * this redefines the standard *printf() to use ours 
 */
+#if 0
 #define TRIO_REPLACE_STDIO
+#endif
 #define HAVE_SSCANF  /* avoid problems in setup.c with trio_sscanf */
 #include "trio.h"
 


Home | Main Index | Thread Index | Old Index