pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/44910: gmake-3.82 failed to build on systems without inttypes.h
>Number: 44910
>Category: pkg
>Synopsis: gmake-3.82 failed to build on systems without inttypes.h
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 27 09:50:00 +0000 2011
>Originator: Dr. W. Stukenbrock
>Release: pkgsrc-2010Q4
>Organization:
Dr. Nagler & Company GmbH
>Environment:
System: NetBSD test-s0 4.0 NetBSD 4.0 (NSW-WS) #0: Tue Aug 17 17:28:09 CEST
2010 wgstuken@test-s0:/usr/src/sys/arch/amd64/compile/NSW-WS amd64
Architecture: x86_64
Machine: amd64
>Description:
If a systems defines uintmax_t in stdint.h and not in inttypes.h,
the header file make.h failes to include the required files.
There is a check for inttypes.h but the check for stdint.h is simply
missing.
>How-To-Repeat:
Try to build on on (e.g.) Interix.
There is no inttypes.h but stdint.h is present.
>Fix:
The following patch seems to fix the problem.
remark: I cannot garantie that this will run on every architecture
- sorry - no way to test this for me
But I think there is a very good chance that it would build
everywhere - at least for all architectures that have an
inttypes.h nothing changes ...
--- make.h.ooo 2011-04-27 11:36:50.000000000 +0200
+++ make.h 2011-04-27 11:42:34.000000000 +0200
@@ -248,6 +248,9 @@
#if HAVE_INTTYPES_H
# include <inttypes.h>
+#elif HAVE_STDINT_H
+# include <stdint.h>
+#endif
#endif
#define FILE_TIMESTAMP uintmax_t
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index