[GRASS5] Re: compile errors on Linux

From: Markus Neteler <neteler@geog.uni-hannover.de>

On Thu, Nov 30, 2000 at 11:11:48PM +0900, GRASS wrote:
> Hi developers,
>
> I've experienced compilation errors in src/libes/vask and src/libes/gis
> directories on Linux.
> I succeeded to compile two modules by adding -DHAVE_TERMIO_H into
> src/libes/vask/Gmakefile and -DSETPGRP_VOID -DHAVE_TERMIO_H into
> src/libes/gis/Gmakefile.
> Where should two macros be defined? I have no clue and my life OS isn't linux
> :slight_smile:
> Please fix these bugs.
Hi Cho,

this is defined in
src/include/config.h

neteler@bermuda:~/ggg > grep HAVE_TERMIO src/include/config.h
#define HAVE_TERMIO_H 1
#define HAVE_TERMIOS_H 1
neteler@bermuda:~/ggg > grep SETPGRP_VOID src/include/config.h
#define SETPGRP_VOID 1

So the including of "config.h" is required. Please add in the files
where the error occurs. From "SUBMITTING" (added by Justin this morning):
"5. To ensure that the software system continues to work, please include

        #include "config.h"

    in your files and make use of the various system dependencies
    contained therein. As one example of this, see
    src/paint/Interface/driverlib/io.c. Please refrain from declaring
    system functions within the software; include the proper header files
    (conditionally dependent on config.h macros if necessary) instead.
"

As you can find out the files affected, may I ask you to add the statement?

Oops! Sorry for that.
configure just exited because opengl was not found. I think that opengl is not
mandatory to run grass. config.h was not generated properly, so my errors
occurred.
What about you?

Regards,
Huidae Cho

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

On Fri, Dec 01, 2000 at 12:04:47AM +0900, GRASS wrote:

From: Markus Neteler <neteler@geog.uni-hannover.de>
> On Thu, Nov 30, 2000 at 11:11:48PM +0900, GRASS wrote:
> > Hi developers,
> >
> > I've experienced compilation errors in src/libes/vask and src/libes/gis
> > directories on Linux.
> > I succeeded to compile two modules by adding -DHAVE_TERMIO_H into
> > src/libes/vask/Gmakefile and -DSETPGRP_VOID -DHAVE_TERMIO_H into
> > src/libes/gis/Gmakefile.
> > Where should two macros be defined? I have no clue and my life OS isn't linux
> > :slight_smile:
> > Please fix these bugs.
> Hi Cho,
>
> this is defined in
> src/include/config.h
>
> neteler@bermuda:~/ggg > grep HAVE_TERMIO src/include/config.h
> #define HAVE_TERMIO_H 1
> #define HAVE_TERMIOS_H 1
> neteler@bermuda:~/ggg > grep SETPGRP_VOID src/include/config.h
> #define SETPGRP_VOID 1
>
> So the including of "config.h" is required. Please add in the files
> where the error occurs. From "SUBMITTING" (added by Justin this morning):
> "5. To ensure that the software system continues to work, please include
>
> #include "config.h"
>
> in your files and make use of the various system dependencies
> contained therein. As one example of this, see
> src/paint/Interface/driverlib/io.c. Please refrain from declaring
> system functions within the software; include the proper header files
> (conditionally dependent on config.h macros if necessary) instead.
> "
>
> As you can find out the files affected, may I ask you to add the statement?
>
Oops! Sorry for that.
configure just exited because opengl was not found. I think that opengl is not
mandatory to run grass. config.h was not generated properly, so my errors
occurred.
What about you?

Yesterday I have updated "configure.in" not to stop. Obviously
Eric has reverted this change.

I agree not to make opengl mandatory to run grass and to modify
the AC_MSG_ERROR to AC_MSG_WARN related to opengl. Otherwise we
will receive many mails from struggling users.
As > 90% of GRASS don't depend on openGL, there is no need to make
the configure stop if openGL is not found.

Until this is hopefully changed, you can use
configure --enable-opengl=no

Yours

Markus

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

On Thu, Nov 30, 2000 at 05:00:39PM +0000, Markus Neteler wrote:

Yesterday I have updated "configure.in" not to stop. Obviously
Eric has reverted this change.

I agree not to make opengl mandatory to run grass and to modify
the AC_MSG_ERROR to AC_MSG_WARN related to opengl. Otherwise we
will receive many mails from struggling users.
As > 90% of GRASS don't depend on openGL, there is no need to make
the configure stop if openGL is not found.

Until this is hopefully changed, you can use
configure --enable-opengl=no

Sorry Markus, I did a lot of changes before doing an update, I thought I
got that one set to AC_MSG_WARN before I committed it (you can change
again if you like, I can't touch it for 8 or so hours, off to work....).

--
Eric G. Miller <egm2@jps.net>

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

On Thu, Nov 30, 2000 at 08:27:29AM -0800, Eric G . Miller wrote:

On Thu, Nov 30, 2000 at 05:00:39PM +0000, Markus Neteler wrote:
> Yesterday I have updated "configure.in" not to stop. Obviously
> Eric has reverted this change.
>
> I agree not to make opengl mandatory to run grass and to modify
> the AC_MSG_ERROR to AC_MSG_WARN related to opengl. Otherwise we
> will receive many mails from struggling users.
> As > 90% of GRASS don't depend on openGL, there is no need to make
> the configure stop if openGL is not found.
>
> Until this is hopefully changed, you can use
> configure --enable-opengl=no

Sorry Markus, I did a lot of changes before doing an update, I thought I
got that one set to AC_MSG_WARN before I committed it (you can change
again if you like, I can't touch it for 8 or so hours, off to work....).

Eric,

fine - I thought you would be against this change. But when looking at
it again I am not fully sure if it isn't already changed. Perhaps Huidae
missed another cvs update?

I will check it - happy working!

Markus

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