enigma-devel@nongnu.org
[Top] [All Lists]

Re: [Enigma-devel] Compiling Enigma on Solaris 10 x86

Subject: Re: [Enigma-devel] Compiling Enigma on Solaris 10 x86
From: Moinak Ghosh
Date: Mon, 01 Aug 2005 16:23:26 +0530
Hi,

  I apologise for a confusion. I was working on building/porting more
than 200 open-source packages on Solaris and messed up with the bug
reporting!

This compilation issue with Enigma occurs while using gcc 3.4.3 and Not
Studio 10. I am not sure whether this happens due to a preprocessor define.
Maybe it is clashing with the predefined register name. I scanned through
the Solaris headers in /usr/include/sys and only regset.h contains a
"#define GS        0" along with other register names.

I tried the build again with the original sources to get the exact error
messages from gcc:

bash-3.00# gmake video.o
if g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I/opt/gnome2_10/include/SDL -D_REENTRANT -g -O2 -I/op t/gnome2_10/include/SDL -D_REENTRANT -g -MT video.o -MD -MP -MF ".deps/video.Tpo" \
 -c -o video.o `test -f 'video.cc' || echo './'`video.cc; \
then mv -f ".deps/video.Tpo" ".deps/video.Po"; \
else rm -f ".deps/video.Tpo"; exit 1; \
fi
In file included from video.cc:20:
video.hh:76: error: expected unqualified-id before numeric constant
video.hh:76: error: expected `,' or `;' before numeric constant
video.hh:90: error: expected `,' or `...' before numeric constant

"GS" is being treated as a numeric constant ?


Finally I reconfigured Enigma to build with Studio 10 I can see the errors listed below. I now remember this is what prevented me from building Enigma using Studio
10 sometime back in the dim past:

"directory.h", line 238: Error: Could not find a match for<no tag>.
"directory.h", line 238: Error: No match found to do explicit instantation of type bool(const boost:
:filesystem::dir_it&).
"directory.h", line 241: Error: Could not find a match for<no tag>.
"directory.h", line 241: Error: No match found to do explicit instantation of type bool(const boost:
:filesystem::dir_it&).
"directory.h", line 244: Error: Could not find a match for<no tag>.
"directory.h", line 244: Error: No match found to do explicit instantation of type bool(const boost:
:filesystem::dir_it&).
"directory.h", line 247: Error: Could not find a match for<no tag>.
"directory.h", line 247: Error: No match found to do explicit instantation of type bool(const boost:
:filesystem::dir_it&).
"directory.h", line 250: Error: Could not find a match for<no tag>.
"directory.h", line 250: Error: No match found to do explicit instantation of type bool(const boost:
:filesystem::dir_it&).
...
...


Regards,
Moinak.

Daniel Heck wrote:

Moinak,

thanks for your help with a Solaris port of Enigma.  Do you know whether
the Studio 10 compiler defines "GS" as a preprocessor macro? If so, we
might get away with a simple "#undef GS".

On the other hand, GS is only used as an abbreviation in the Enigma
code, so I wouldn't mind using "_GS" or even "GraphicsState" instead.

Thanks,
Daniel






_______________________________________________
Enigma-devel mailing list
Enigma-devel@xxxxxxxxxx
http://lists.nongnu.org/mailman/listinfo/enigma-devel

<Prev in Thread] Current Thread [Next in Thread>