[Mono-bugs] [Bug 61752][Blo] Changed - compiler fails to build, but only issues warnings (HPUX/Itanium)
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 21 Jul 2004 15:10:07 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bebark2@uky.edu.
http://bugzilla.ximian.com/show_bug.cgi?id=61752
--- shadow/61752 2004-07-21 13:09:50.000000000 -0400
+++ shadow/61752.tmp.24640 2004-07-21 15:10:07.000000000 -0400
@@ -1,12 +1,12 @@
Bug#: 61752
Product: Mono: Compilers
Version: unspecified
OS: HP-UX 11.22
OS Details: HP-UX 11.23 running on an Itanium SuperDome
-Status: NEW
+Status: RESOLVED
Resolution:
Severity: Unknown
Priority: Blocker
Component: C#
AssignedTo: mono-bugs@ximian.com
ReportedBy: bebark2@uky.edu
@@ -235,6 +235,37 @@
------- Additional Comments From miguel@ximian.com 2004-07-21 13:09 -------
It seems like the compiler is too strict.
And your GCC setup is broken (it can not compile `hello world').
+
+------- Additional Comments From bebark2@uky.edu 2004-07-21 15:10 -------
+Bernie Solomon has fixed this bug:
+
+I also do build on HPUX (PARISC) using HP's C compiler.
+
+Most of the problems below are warnings which you get out
+of non-GCC compilers. I'd just suggest setting CFLAGS to
+switch the warning off by number to remove all the noise (warning
+942 is the main one that creates many messages in your output).
+
+The only error is:
+
+> Error 201: "reflection.c", line 1424 # Pointer operands must be of
+the
+same
+> type for operator ':'; comparison of 'unsigned char *' and 'const
+char *'.
+> ta->aname.public_key_token [0] ? ta->aname.
+> public_key_token : "null");
+
+which I have just fixed in cvs. The ?: operator doesn't type check.
+Inserting
+as cast:
+
+ ta->aname.public_key_token [0] ? (char
+*)ta->aname.public_key_token : "null");
+
+fixes it.
+
+Bernie Solomon