[GRASS5] error on make r3.showdspf

Thank you, Clements.
I just delete /GL header file in /usr/X11R6/GL and recompile again. but it
has another error on "../r3.showdspf.opengl/new_init_graphic.c:569:undefined
reference to 'GLwCreateMDrawingArea' "
Is the IIRC problem? and How to install IIRC? I am linux beginner and i know
a little bit about linux.

sincerely yours,

------Original Message------
From: Glynn Clements <glynn.clements@virgin.net>
To: grass5@geog.uni-hannover.de
Sent: April 7, 2001 7:28:27 AM GMT
Subject: Re: [GRASS5] error on make r3.showdspf

Panoot Suwanwiwattana wrote:

I try to compile grass5.b12 on my redhat 6.2. I had already installed Mesa
3.4.1, LessTif 0.92.26 ,zlib, jpeg-6b and tif 3.5.6.
After i configure grass, it show me almost 'yes' but
GLwCreateMDrawingArea in -IGLwM .. no

Do you have this library? IIRC, Mesa doesn't build it by default; you
have to build it separately.

Also, whilst recent versions of XFree86 provide the correct
functionality, the Motif versions are included in libGLw, rather than
being in a separate library. Furthermore, the "configure" test won't
find the necessary function (GLwCreateMDrawingArea) because it is a
macro.

and sql.h .. no

Do you have UnixODBC installed? iODBC won't work.

And then i compiled grass, there is no error message now, but when i

compile

G3d by using gmake5 /src.contrib/GMSL/g3d, it has error on
r3.showdspf.opengl (detail on attached file)

You have two conflicting sets of OpenGL headers installed, in
/usr/local/include/GL and /usr/X11R6/include/GL.

This is coupled with a bug in r3.showdspf.openGL, in that it includes
OpenGL headers without using the "GL/" prefix, and a complementary bug
in the build process, which is using /usr/local/include/GL as the
include path.

So how can i solve it?

Either temporarily remove one of the sets of OpenGL headers, or don't
try to build GMSL.

and if sql.h is not exits, do i have problem with postgresql?

No; PostgreSQL doesn't provide an sql.h file.

--
Glynn Clements <glynn.clements@virgin.net>

Mr.Panoot Suwanwiwattana
        Research Assistance
Geotechnical Engineering R&D Center.
Kasetsart University, Thailand.
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Panoot Suwanwiwattana wrote:

I just delete /GL header file in /usr/X11R6/GL and recompile again. but it
has another error on "../r3.showdspf.opengl/new_init_graphic.c:569:undefined
reference to 'GLwCreateMDrawingArea' "

This indicates that it isn't linking against the correct library.

Mesa's libGLwM should define this symbol. Recent versions of XFree86
include a libGLw (which contains both Motif and non-Motif versions of
the widget), BUT it doesn't define the symbol GLwCreateMDrawingArea.
Instead, it defines two different symbols, GLwCreateM1DrawingArea and
GLwCreateM2DrawingArea, for Motif 1.x and 2.x respectively.

The header file /usr/X11R6/include/GL/GLwDrawA.h (included by
GLwMDrawA.h) defines GLwCreateMDrawingArea as a macro which expands to
one of these two symbols depending upon which version of Motif is
installed.

If the compiler used the OpenGL header files from Mesa (you say that
you deleted the XFree86 ones), but the linker is trying to link
against the XFree86 library, this would create the problem which you
describe.

Is the IIRC problem? and How to install IIRC? I am linux beginner and i know
a little bit about linux.

"IIRC" is an abbreviation for "If I Recall Correctly".

--
Glynn Clements <glynn.clements@virgin.net>

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'