[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[mgp-users 01382] Re: Solaris 8 build problems, some fixes, some questions
- To: mgp-users@mew.org
- Subject: [mgp-users 01382] Re: Solaris 8 build problems, some fixes, some questions
- From: "Jay W. Summet" <summetj@cc.gatech.edu>
- Date: Fri, 21 Jan 2005 17:33:36 -0500 (EST)
- Delivered-to: mailing list mgp-users@mew.org
- In-reply-to: <>
- Mailing-list: contact mgp-users-help@mew.org; run by ezmlm
- References: <>
I was able to get the path.c file to compile by commenting out the
X11/Xos.h file include line...
//#include <X11/Xos.h>
Apparently under Solaris it doesn't need anything in that file...
Jay
On Fri, 21 Jan 2005, Jay W. Summet wrote:
> I'm attempting to compile mgp-1.11b on Solaris 8.
>
> Here are the problems I've ran into so far and resolutions where I could
> get them solved:
>
> -Something didn't generate ctlwords.h correctly (not sure where it was
> supposed to..) I downloaded the code mentioned in this mailing list:
> http://www.csl.sony.co.jp/person/nishida/mgp-users/msg00026.html
>
> and used it to generate ctlwords.h from globals.c manually.
>
> In the xmkmf -a step, I got a compile error with x11.c Apparently the
> comment after the #if 1 on line 229 caused my old solaris compiler to
> barf. I modified it by moving the comment up one line as follows and it
> works now:
>
> // this method is old. we should use WM_STATE_FULLSCREEN.
> #if 1
> if (!(mgp_flag & FL_OVER)) {
> xsa.override_redirect = True;
> mask |= CWOverrideRedirect;
> }
> #endif
>
> When initally running make; It will die on mgp.c (some problem with
> signal.h not setting sigset_t). Copy the failed compilation line and paste it
> in to an xterm to execute, but use gcc instead. (Of course, remove the
> -Xc -Xf -xcg92 flags which gcc will barf on).
>
> * run make; Lots of the program will compile ok, up to ./image/path.c
>
> It appears that path.c is having LOTS of problems with include files (on
> Solaris?). Full error messages at the end of this email....
>
> Has anybody ran into this before? Know what to fix?
> Thanks,
> Jay
>
> making ./image/libmgpimage.a in ./image...
> cc -O -Xc -xF -xcg92 -I/usr/openwin/include -Dsun -Dsparc -DSVR4 -DSYSV -c path.c
> "/usr/include/strings.h", line 25: syntax error before or at: (
> "/usr/include/strings.h", line 25: function cannot return function or array
> "/usr/include/strings.h", line 25: identifier redeclared: memcpy
> current : function() returning int
> previous: function(pointer to void, pointer to const void, unsigned int) returning pointer to void : "/usr/include/iso/string_iso.h", line 61
> "/usr/include/strings.h", line 25: syntax error before or at: char
> "/usr/include/strings.h", line 25: syntax error before or at: )
> "/usr/include/strings.h", line 25: warning: old-style declaration or incorrect type for: size_t
> "/usr/include/strings.h", line 25: identifier redeclared: size_t
> current : int
> previous: unsigned int : "/usr/include/iso/stdio_iso.h", line 83
> "/usr/include/strings.h", line 25: syntax error before or at: )
> "/usr/include/strings.h", line 25: warning: syntax error: empty declaration
> "/usr/include/strings.h", line 26: syntax error before or at: (
> "/usr/include/strings.h", line 26: identifier redeclared: memset
> current : function() returning void
> previous: function(pointer to void, int, unsigned int) returning pointer to void : "/usr/include/iso/string_iso.h", line 63
> "/usr/include/strings.h", line 26: warning: old-style declaration or incorrect type for: size_t
> "/usr/include/strings.h", line 26: syntax error before or at: )
> "/usr/include/strings.h", line 26: warning: syntax error: empty declaration
> "/usr/include/unistd.h", line 260: syntax error before or at: size_t
> "/usr/include/unistd.h", line 260: warning: undefined or missing type for: size_t
> "/usr/include/unistd.h", line 334: syntax error before or at: size_t
> "/usr/include/unistd.h", line 334: warning: undefined or missing type for: size_t
> "/usr/include/unistd.h", line 355: syntax error before or at: size_t
> "/usr/include/unistd.h", line 355: warning: undefined or missing type for: size_t
> "/usr/include/unistd.h", line 355: warning: undefined or missing type for: char
> "/usr/include/unistd.h", line 360: syntax error before or at: size_t
> "/usr/include/unistd.h", line 360: warning: undefined or missing type for: size_t
> "/usr/include/unistd.h", line 360: warning: undefined or missing type for: off_t
> "/usr/include/unistd.h", line 364: syntax error before or at: size_t
> "/usr/include/unistd.h", line 364: warning: undefined or missing type for: size_t
> "/usr/include/unistd.h", line 364: warning: undefined or missing type for: unsigned
> "/usr/include/unistd.h", line 364: warning: undefined or missing type for: unsigned
> "/usr/include/unistd.h", line 377: syntax error before or at: size_t
> "/usr/include/unistd.h", line 377: warning: undefined or missing type for: size_t
> "/usr/include/unistd.h", line 377: warning: undefined or missing type for: off_t
> "/usr/include/unistd.h", line 379: syntax error before or at: size_t
> "/usr/include/unistd.h", line 379: warning: undefined or missing type for: size_t
> "/usr/include/unistd.h", line 386: syntax error before or at: size_t
> "/usr/include/unistd.h", line 386: warning: undefined or missing type for: size_t
> "/usr/include/unistd.h", line 467: syntax error before or at: size_t
> "/usr/include/unistd.h", line 467: warning: undefined or missing type for: size_t
> "path.c", line 113: cannot recover from previous errors
> cc: acomp failed for path.c
> *** Error code 2
> make: Fatal error: Command failed for target `path.o'
> Current working directory /net/ac42/public/common/src/magicpoint-1.11b/image
> *** Error code 1
> make: Fatal error: Command failed for target `image/libmgpimage.a'
>
>
>