[Mono-bugs] [Bug 76850][Wis] New - Problem running mono make on
solaris 9
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Nov 29 13:29:52 EST 2005
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 godfrey.anderson at cibc.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76850
--- shadow/76850 2005-11-29 13:29:52.000000000 -0500
+++ shadow/76850.tmp.3465 2005-11-29 13:29:52.000000000 -0500
@@ -0,0 +1,334 @@
+Bug#: 76850
+Product: Mono: Compilers
+Version: 1.1
+OS: Solaris [Other]
+OS Details: SunOS 5.9 Generic 118558-04
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: godfrey.anderson at cibc.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Problem running mono make on solaris 9
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+I am trying to compile mono-1.1.9.2 on my solaris sparc version 9 system
+and after bypassing numerous problems, I am stuck at the compile
+step in subirectory ../.../mono/utils.
+
+The compile ends with the following error during the make command:
+
+if /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -
+I. -I. -I../.. -I../.. -I../../mono -I../../libgc/include -threads -
+I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -
+I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -
+DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS -D_REENTRANT -
+D_POSIX_PTHREAD_SEMANTICS -DUSE_MMAP -DUSE_MUNMAP -D_FILE_OFFSET_BITS=64 -
+D_XOPEN_SOURCE=500 -D__EXTENSIONS__ -D_XOPEN_SOURCE_EXTENDED=1 -
+DNO_UNALIGNED_ACCESS -g -O2 -fno-strict-aliasing -Wdeclaration-after-
+statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -
+Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -
+Wno-cast-qual -Wcast-align -Wwrite-strings -Wno-char-subscripts -Wno-cast-
+align -MT mono-hash.lo -MD -MP -MF ".deps/mono-hash.Tpo" -c -o mono-
+hash.lo mono-hash.c; \
+then mv -f ".deps/mono-hash.Tpo" ".deps/mono-hash.Plo"; else rm -
+f ".deps/mono-hash.Tpo"; exit 1; fi
+ gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../mono -
+I../../libgc/include -threads -I/usr/local/include/glib-2.0 -
+I/usr/local/lib/glib-2.0/include -I/usr/local/include/glib-2.0 -
+I/usr/local/lib/glib-2.0/include -DGC_SOLARIS_THREADS -
+DGC_SOLARIS_PTHREADS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_MMAP -
+DUSE_MUNMAP -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ -
+D_XOPEN_SOURCE_EXTENDED=1 -DNO_UNALIGNED_ACCESS -g -O2 -fno-strict-
+aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-
+prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-
+prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -
+Wwrite-strings -Wno-char-subscripts -Wno-cast-align -MT mono-hash.lo -MD -
+MP -MF .deps/mono-hash.Tpo -c mono-hash.c -fPIC -DPIC -o .libs/mono-hash.o
+In file included from /usr/local/include/glib-2.0/glib/galloca.h:30,
+ from /usr/local/include/glib-2.0/glib.h:30,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/gtypes.h:68:1: warning: "G_MININT64"
+redefined
+In file included from /usr/local/include/glib-2.0/glib/gtypes.h:30,
+ from /usr/local/include/glib-2.0/glib/galloca.h:30,
+ from /usr/local/include/glib-2.0/glib.h:30,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/glibconfig.h:32:1: warning: this is the
+location of the previous definition
+In file included from /usr/local/include/glib-2.0/glib/galloca.h:30,
+ from /usr/local/include/glib-2.0/glib.h:30,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/gtypes.h:69:1: warning: "G_MAXINT64"
+redefined
+In file included from /usr/local/include/glib-2.0/glib/gtypes.h:30,
+ from /usr/local/include/glib-2.0/glib/galloca.h:30,
+ from /usr/local/include/glib-2.0/glib.h:30,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/glibconfig.h:33:1: warning: this is the
+location of the previous definition
+In file included from /usr/local/include/glib-2.0/glib/galloca.h:30,
+ from /usr/local/include/glib-2.0/glib.h:30,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/gtypes.h:70:1: warning: "G_MAXUINT64"
+redefined
+In file included from /usr/local/include/glib-2.0/glib/gtypes.h:30,
+ from /usr/local/include/glib-2.0/glib/galloca.h:30,
+ from /usr/local/include/glib-2.0/glib.h:30,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/glibconfig.h:34:1: warning: this is the
+location of the previous definition
+In file included from /usr/local/include/glib-2.0/glib/giochannel.h:31,
+ from /usr/local/include/glib-2.0/glib.h:45,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/gmain.h:35: error: parse error
+before "pid"
+/usr/local/include/glib-2.0/glib/gmain.h:37: warning: function declaration
+isn't a prototype
+/usr/local/include/glib-2.0/glib/gmain.h:251: error: parse error
+before "pid"
+/usr/local/include/glib-2.0/glib/gmain.h:251: warning: function
+declaration isn't a prototype
+/usr/local/include/glib-2.0/glib/gmain.h:296: error: parse error
+before "GPid"
+/usr/local/include/glib-2.0/glib/gmain.h:299: warning: function
+declaration isn't a prototype
+/usr/local/include/glib-2.0/glib/gmain.h:300: error: parse error
+before "pid"
+/usr/local/include/glib-2.0/glib/gmain.h:302: warning: function
+declaration isn't a prototype
+In file included from /usr/local/include/glib-2.0/glib.h:52,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/gmessages.h:109: error: parse error
+before "G_GNUC_INTERNAL"
+In file included from /usr/local/include/glib-2.0/glib.h:65,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/gspawn.h:80: error: parse error
+before "GPid"
+/usr/local/include/glib-2.0/glib/gspawn.h:81: warning: function
+declaration isn't a prototype
+/usr/local/include/glib-2.0/glib/gspawn.h:93: error: parse error
+before "GPid"
+/usr/local/include/glib-2.0/glib/gspawn.h:97: warning: function
+declaration isn't a prototype
+/usr/local/include/glib-2.0/glib/gspawn.h:123: error: parse error
+before "pid"
+/usr/local/include/glib-2.0/glib/gspawn.h:123: warning: function
+declaration isn't a prototype
+In file included from ../../libgc/include/gc.h:33,
+ from ../../mono/os/gc_wrapper.h:33,
+ from mono-hash.c:40:
+../../libgc/include/gc_config_macros.h:9:1: warning: "GC_SOLARIS_THREADS"
+redefined
+<command line>:4:1: warning: this is the location of the previous
+definition
+make: *** [mono-hash.lo] Error 1
+
+
+I have insured that that I am using the latest version of gmake.
+
+make -v
+GNU Make 3.80
+Copyright (C) 2002 Free Software Foundation, Inc.
+This is free software; see the source for copying conditions.
+There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
+PARTICULAR PURPOSE.
+
+I have the "ar" and "sed" commands in my PATH
+
+I have installed the pre-requisite SMC products:
+
+# pkginfo |grep SMC
+application SMCbison bison
+application SMCflex flex
+application SMCgcc342 gcc
+application SMCglib glib
+application SMCiconv libiconv
+application SMCm4 m4
+application SMCmake make
+application SMCpkgc pkgconfig
+application SMCtar tar
+
+Steps to reproduce the problem:
+1. Download mono from the internet: http://go-mono.com/sources/mono-1/mono-
+1.1.9.2.tar.gz
+2. tar xzvf mono-1.1.9.2.tar.gz
+3. cd mono-1.1.9.2
+4. export PATH=/usr/local/bin:/usr/sbin:/usr/bin:/usr/ccs/bin/:.
+5. ./configure
+6. cd /opt/mono/mono-1.1.9.2/mcs/build/profiles
+ vi basic.make
+In vi you will see a line similar to:
+
+0x* | 0X*) monolite_corlib_version=`echo $$monolite_corlib_version | sed
+s,^0[xX],,`; \
+You will need to quote the parameters to sed as follows do not copy and
+paste this:
+
+0x* | 0X*) monolite_corlib_version=`echo $$monolite_corlib_version |
+sed s,^0[xX],,`; \
+
+cd /opt/mono/mono-1.1.9.2/mcs/jay/
+vi Makefile
+Inside vi you should see lines similar to (at bottom):
+jay: $(sources:.c=.o)
+ $(CCOMPILE) -o $@ $^
+%.o: %.c
+ $(CCOMPILE) -c -o $@ $^
+Comment out the cc lines and add new lines to use GCC and pass in the
+flags:
+jay: $(sources:.c=.o)
+ gcc -o $@ $^ $(LOCAL_CFLAGS)
+# $(CCOMPILE) -o $@ $^
+%.o: %.c
+ gcc -c -o $@ $^ $(LOCAL_CFLAGS)
+# $(CCOMPILE) -c -o $@ $^
+
+
+6. cd /opt/mono/mono-1.9.1.2/
+make
+
+Actual Results:
+
+The product compiles correctly for a long while, then it fails in the
+../../mono/utils directory with the following error:
+
+make[3]: Entering directory `/opt/mono/mono-1.1.9.2/mono/utils'
+if /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -
+I. -I. -I../.. -I../.. -I../../mono -I../../libgc/include -threads -
+I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -
+I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -
+DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS -D_REENTRANT -
+D_POSIX_PTHREAD_SEMANTICS -DUSE_MMAP -DUSE_MUNMAP -D_FILE_OFFSET_BITS=64 -
+D_XOPEN_SOURCE=500 -D__EXTENSIONS__ -D_XOPEN_SOURCE_EXTENDED=1 -
+DNO_UNALIGNED_ACCESS -g -O2 -fno-strict-aliasing -Wdeclaration-after-
+statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -
+Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -
+Wno-cast-qual -Wcast-align -Wwrite-strings -Wno-char-subscripts -Wno-cast-
+align -MT mono-hash.lo -MD -MP -MF ".deps/mono-hash.Tpo" -c -o mono-
+hash.lo mono-hash.c; \
+then mv -f ".deps/mono-hash.Tpo" ".deps/mono-hash.Plo"; else rm -
+f ".deps/mono-hash.Tpo"; exit 1; fi
+ gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../mono -
+I../../libgc/include -threads -I/usr/local/include/glib-2.0 -
+I/usr/local/lib/glib-2.0/include -I/usr/local/include/glib-2.0 -
+I/usr/local/lib/glib-2.0/include -DGC_SOLARIS_THREADS -
+DGC_SOLARIS_PTHREADS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_MMAP -
+DUSE_MUNMAP -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ -
+D_XOPEN_SOURCE_EXTENDED=1 -DNO_UNALIGNED_ACCESS -g -O2 -fno-strict-
+aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-
+prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-
+prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -
+Wwrite-strings -Wno-char-subscripts -Wno-cast-align -MT mono-hash.lo -MD -
+MP -MF .deps/mono-hash.Tpo -c mono-hash.c -fPIC -DPIC -o .libs/mono-hash.o
+In file included from /usr/local/include/glib-2.0/glib/galloca.h:30,
+ from /usr/local/include/glib-2.0/glib.h:30,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/gtypes.h:68:1: warning: "G_MININT64"
+redefined
+In file included from /usr/local/include/glib-2.0/glib/gtypes.h:30,
+ from /usr/local/include/glib-2.0/glib/galloca.h:30,
+ from /usr/local/include/glib-2.0/glib.h:30,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/glibconfig.h:32:1: warning: this is the
+location of the previous definition
+In file included from /usr/local/include/glib-2.0/glib/galloca.h:30,
+ from /usr/local/include/glib-2.0/glib.h:30,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/gtypes.h:69:1: warning: "G_MAXINT64"
+redefined
+In file included from /usr/local/include/glib-2.0/glib/gtypes.h:30,
+ from /usr/local/include/glib-2.0/glib/galloca.h:30,
+ from /usr/local/include/glib-2.0/glib.h:30,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/glibconfig.h:33:1: warning: this is the
+location of the previous definition
+In file included from /usr/local/include/glib-2.0/glib/galloca.h:30,
+ from /usr/local/include/glib-2.0/glib.h:30,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/gtypes.h:70:1: warning: "G_MAXUINT64"
+redefined
+In file included from /usr/local/include/glib-2.0/glib/gtypes.h:30,
+ from /usr/local/include/glib-2.0/glib/galloca.h:30,
+ from /usr/local/include/glib-2.0/glib.h:30,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/glibconfig.h:34:1: warning: this is the
+location of the previous definition
+In file included from /usr/local/include/glib-2.0/glib/giochannel.h:31,
+ from /usr/local/include/glib-2.0/glib.h:45,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/gmain.h:35: error: parse error
+before "pid"
+/usr/local/include/glib-2.0/glib/gmain.h:37: warning: function declaration
+isn't a prototype
+/usr/local/include/glib-2.0/glib/gmain.h:251: error: parse error
+before "pid"
+/usr/local/include/glib-2.0/glib/gmain.h:251: warning: function
+declaration isn't a prototype
+/usr/local/include/glib-2.0/glib/gmain.h:296: error: parse error
+before "GPid"
+/usr/local/include/glib-2.0/glib/gmain.h:299: warning: function
+declaration isn't a prototype
+/usr/local/include/glib-2.0/glib/gmain.h:300: error: parse error
+before "pid"
+/usr/local/include/glib-2.0/glib/gmain.h:302: warning: function
+declaration isn't a prototype
+In file included from /usr/local/include/glib-2.0/glib.h:52,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/gmessages.h:109: error: parse error
+before "G_GNUC_INTERNAL"
+In file included from /usr/local/include/glib-2.0/glib.h:65,
+ from mono-hash.c:39:
+/usr/local/include/glib-2.0/glib/gspawn.h:80: error: parse error
+before "GPid"
+/usr/local/include/glib-2.0/glib/gspawn.h:81: warning: function
+declaration isn't a prototype
+/usr/local/include/glib-2.0/glib/gspawn.h:93: error: parse error
+before "GPid"
+/usr/local/include/glib-2.0/glib/gspawn.h:97: warning: function
+declaration isn't a prototype
+/usr/local/include/glib-2.0/glib/gspawn.h:123: error: parse error
+before "pid"
+/usr/local/include/glib-2.0/glib/gspawn.h:123: warning: function
+declaration isn't a prototype
+In file included from ../../libgc/include/gc.h:33,
+ from ../../mono/os/gc_wrapper.h:33,
+ from mono-hash.c:40:
+../../libgc/include/gc_config_macros.h:9:1: warning: "GC_SOLARIS_THREADS"
+redefined
+<command line>:4:1: warning: this is the location of the previous
+definition
+make[3]: *** [mono-hash.lo] Error 1
+make[3]: Leaving directory `/opt/mono/mono-1.1.9.2/mono/utils'
+make[2]: *** [all-recursive] Error 1
+make[2]: Leaving directory `/opt/mono/mono-1.1.9.2/mono'
+make[1]: *** [all-recursive] Error 1
+make[1]: Leaving directory `/opt/mono/mono-1.1.9.2'
+make: *** [all] Error 2
+
+
+
+Expected Results:
+
+The comiple should complete without errors, since all the documented
+pre-requisistes have been installed.
+
+How often does this happen?
+
+This happens every time I attempt to compile the code.
+
+Additional Information:
+
+
+I have also downloaded mono 1.1.10 and it also aborts in the exact same
+place.
+
+I am also using gcc 3.4.2
More information about the mono-bugs
mailing list