[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ddd-3.3.10 HP-UX 11.11 with aCC
From: |
Paul Ackersviller |
Subject: |
ddd-3.3.10 HP-UX 11.11 with aCC |
Date: |
Thu, 26 Apr 2007 20:47:40 +0000 |
User-agent: |
Mutt/1.4.2.2i |
You said you'd like to hear about this, so here goes. Configuring with
CC=aCC CXXFLAGS=-AA worked fine, but the compile failed early with:
Error 24: "/usr/include/strings.h", line 54 # '<type name>' expected
instead of '0'.
extern void bzero(void *, size_t);
^^^^^
Error 497: "/usr/include/strings.h", line 54 # There can be only one
function 'memset'
with "C" linkage; previous declaration was at ["/usr/include/string.h",
line 204].
extern void bzero(void *, size_t);
^^^^^
This can be alleviated by hacking ddd/config.h after configure, like so:
--- ddd/config.h 2007/04/20 15:08:11 1.1
+++ ddd/config.h 2007/04/20 16:35:00
@@ -427,7 +427,7 @@
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
-
+#undef HAVE_STRINGS_H /* aCC doesn't like both this and next */
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
An even easier way is to fake out the header file to think it's already
been used by CPPFLAGS=-D_STRINGS_INCLUDED (or there may be a better
macro to use to specify certain standards-compliancy, I haven't tried
much else). After one of these, ddd compiles and links fine, and I haven't
encountered any runtime problems yet, but haven't tested extensively.
A couple of other things to note:
1. 32-bit compiles seem to require the flag +Onolimit, which requires
optimization level at least +O2.
2. 64-bit compiles don't have the above problem, however the HP-UX link
has has the 32-bit static /usr/lib/libXm.a hard-coded. Needless to
say this needs changing, and I have no apparent problems with the
shared 64-bit Motif library.
Is the static 32-bit Motif library required for current HP-UX version,
or does that really only apply to older ones?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ddd-3.3.10 HP-UX 11.11 with aCC,
Paul Ackersviller <=