NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/59221: Build failure on Solaris-11.4 for src/external/bsd/file/dist/src/softmagic.c
>Number: 59221
>Category: bin
>Synopsis: Build failure on Solaris-11.4 for src/external/bsd/file/dist/src/softmagic.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 26 17:20:00 +0000 2025
>Originator: Sad Clouds
>Release: NetBSD-10
>Organization:
>Environment:
SunOS t4-node1 5.11 11.4.42.111.0 sun4v sparc sun4v non-virtualized
>Description:
Building NetBSD-10 with build.sh fails:
/opt/netbsd/netbsd-10-src/tools/file/../../external/bsd/file/dist/src/softmagic.c: In function 'do_ops':
/opt/netbsd/netbsd-10-src/tools/file/../../external/bsd/file/dist/src/softmagic.c:1463:20: error: 'INT_MAX' undeclared (first use in this function)
1463 | if (lhs >= INT_MAX || lhs <= INT_MIN ||
| ^~~~~~~
>How-To-Repeat:
>Fix:
diff -u src/external/bsd/file/dist/src/softmagic.c.orig src/external/bsd/file/dist/src/softmagic.c
--- src/external/bsd/file/dist/src/softmagic.c.orig 2025-03-26 08:39:46.505975906 +0000
+++ src/external/bsd/file/dist/src/softmagic.c 2025-03-26 08:40:02.858070764 +0000
@@ -47,6 +47,7 @@
#include <ctype.h>
#include <stdlib.h>
#include <time.h>
+#include <limits.h>
#include "der.h"
private int match(struct magic_set *, struct magic *, file_regex_t **, size_t,
Home |
Main Index |
Thread Index |
Old Index