[GRASS5] Known Solaris 7 issues with beta 11]

Hello,

I built GRASS last week on Solaris 7 and have put together a few notes
on the build. It was built on an Ultra Spac II w/ 500 MB mem, gcc v.
2.95.1.

I built grass with ... --prefix=/some_other_dir --with-socks (now
sockets)

Here are my notes:

- I was able to build it as myself (not root) and specify the build
directory.

- the first problem I encountered was the script to build the man pages
is a perl script which looks for perl in /usr/bin. My perl is in
/usr/local/bin. I corrected the script an the and pages were created
correctly.

- I changed the order of the CFLAGs defined in CMD/generic/make.mid so
the "-I(INCLUDE_DIR)" was in front of "$(EXTRA_CFLAGS)". This fixed the
problem where another config.h was read instead of the GRASS one in
INCLUDE_DIR. The rogue config.h from some other program should not have
been there in the first place. Changing the flags order ensured that the
correct config.h was picked up.

- I had trouble with the unix_sock.c in libes/gis with PF_LOCAL not
recognized by the version of solaris sockets installed. Eric has since
corrected this problem.

- The sockets lib was not getting included (-lsocket) in the build. It
was defined under CMD/head/head.arch with the flag "XEXTRALIBS" however
this was not being picked up by the necessary build. I added a
"-lsocket" to XDRLIB which corrcted the problem.

- After the build finished, make install failed because of unrecognized
flags (?) in the Sun tar. Fortunately, I have encountered this problem
before and I also had a version of gnu-tar which was able to install the
programs.

- NVIZ failed to install because it claimed there were no TK TCL libs.
When I examined the head.arch file the TCLTKLIBS line was empty. I added
-ltk and -ltcl and NVIZ built cleanly.

If there are any questions please let me know.
--
Bob Covill

Tekmap Consulting
P.O. Box 2016
Fall River, NS
Canada
B2T 1K6

Hi,

On Wed, Feb 21, 2001 at 12:11:37PM -0400, Bob Covill wrote:

Hello,

I built GRASS last week on Solaris 7 and have put together a few notes
on the build. It was built on an Ultra Spac II w/ 500 MB mem, gcc v.
2.95.1.

I built grass with ... --prefix=/some_other_dir --with-socks (now
sockets)

Here are my notes:

- I was able to build it as myself (not root) and specify the build
directory.

- the first problem I encountered was the script to build the man pages
is a perl script which looks for perl in /usr/bin. My perl is in
/usr/local/bin. I corrected the script an the and pages were created
correctly.

just added a perl search routine into "configure[.in]" which sets
PERL in /src/CMD/head/head

Can we utilize this somehow for the
./src/scripts/contrib/g.html2man/g.html2man
script?

- I changed the order of the CFLAGs defined in CMD/generic/make.mid so
the "-I(INCLUDE_DIR)" was in front of "$(EXTRA_CFLAGS)". This fixed the
problem where another config.h was read instead of the GRASS one in
INCLUDE_DIR. The rogue config.h from some other program should not have
been there in the first place. Changing the flags order ensured that the
correct config.h was picked up.

I will change
src/CMD/generic/make.mid
accordingly. Hope it's o.k. for all platforms. Tested on Linux
and Solaris (by Bob).

- I had trouble with the unix_sock.c in libes/gis with PF_LOCAL not
recognized by the version of solaris sockets installed. Eric has since
corrected this problem.

- The sockets lib was not getting included (-lsocket) in the build. It
was defined under CMD/head/head.arch with the flag "XEXTRALIBS" however
this was not being picked up by the necessary build. I added a
"-lsocket" to XDRLIB which corrcted the problem.

I guess this is a "configure" thing, Solaris specific?

- After the build finished, make install failed because of unrecognized
flags (?) in the Sun tar. Fortunately, I have encountered this problem
before and I also had a version of gnu-tar which was able to install the
programs.

SUN tar is rather odd.

- NVIZ failed to install because it claimed there were no TK TCL libs.
When I examined the head.arch file the TCLTKLIBS line was empty. I added
-ltk and -ltcl and NVIZ built cleanly.

Will be a "configure" thing as well.

Thanks for your notes,

Markus

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

> - The sockets lib was not getting included (-lsocket) in the build. It
> was defined under CMD/head/head.arch with the flag "XEXTRALIBS" however
> this was not being picked up by the necessary build. I added a
> "-lsocket" to XDRLIB which corrcted the problem.
I guess this is a "configure" thing, Solaris specific?

Hmm... my Solaris build (11/99) picks up the sockets lib. What patch level are
you
using? I think that could be it. I'm checking now.

Bruce

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

On Wed, Feb 21, 2001 at 12:11:37PM -0400, Bob Covill wrote:

- I had trouble with the unix_sock.c in libes/gis with PF_LOCAL not
recognized by the version of solaris sockets installed. Eric has since
corrected this problem.

I was not aware of this separate socket library (it is part of libc
here).

- The sockets lib was not getting included (-lsocket) in the build. It
was defined under CMD/head/head.arch with the flag "XEXTRALIBS" however
this was not being picked up by the necessary build. I added a
"-lsocket" to XDRLIB which corrcted the problem.

That would do it..

- NVIZ failed to install because it claimed there were no TK TCL libs.
When I examined the head.arch file the TCLTKLIBS line was empty. I added
-ltk and -ltcl and NVIZ built cleanly.

What, no version numbers? At least the inconsistency is consistent...

Linux => -ltk8.? -ltcl8.?
CygWin => -ltk8? -ltcl8?
Solaris => -ltk -ltcl

Was configure able to find the headers?

--
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'

"Eric G. Miller" wrote:

On Wed, Feb 21, 2001 at 12:11:37PM -0400, Bob Covill wrote:
> - I had trouble with the unix_sock.c in libes/gis with PF_LOCAL not
> recognized by the version of solaris sockets installed. Eric has since
> corrected this problem.

I was not aware of this separate socket library (it is part of libc
here).

> - The sockets lib was not getting included (-lsocket) in the build. It
> was defined under CMD/head/head.arch with the flag "XEXTRALIBS" however
> this was not being picked up by the necessary build. I added a
> "-lsocket" to XDRLIB which corrcted the problem.

That would do it..

> - NVIZ failed to install because it claimed there were no TK TCL libs.
> When I examined the head.arch file the TCLTKLIBS line was empty. I added
> -ltk and -ltcl and NVIZ built cleanly.

What, no version numbers? At least the inconsistency is consistent...

Linux => -ltk8.? -ltcl8.?
CygWin => -ltk8? -ltcl8?
Solaris => -ltk -ltcl

Was configure able to find the headers?

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

Eric,

Configure did pick up the headers and the lib directory, only the actual libs
line was empty. It should have picked up 8.0 for the version number.

--
Bob Covill

Tekmap Consulting
P.O. Box 2016
Fall River, NS
Canada
B2T 1K6

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