No subject

Abdel-rahman Abdel-rahman aa511704 at longs.lance.colostate.edu
Tue Sep 29 18:46:08 EDT 1992


Dear Grass users;
Dear Mr. David Baumgartner;
Dear Mr. David J. Icove;

I am trying to run xgrass on the SILICON GRAPHICS INDIGO OS 4.0.1, i think i'm
at the end although i need help to find a reference to "DoHotWord" (error3). I
coud'nt find the ucb libraries on the Indigo(see README FILE), although after
 contacting the SGI 
people they direct me to libPW.a and libbsd.a. which  resolved the regcmp
and regex (error2). Also , they advice me to use the -cckr flage for compilation which resolved  alot of ansi error messages either for xgrass or for compiling
grass4.0(which i already compiled it successfuly).

    Attached is the readme file  and the error messages(1,2 & 3)  concerning the
"msl lib" for ucb,  which gives the compilation steps. 
thanks for your help.
my e-mail address is;  aa511704 at longs.lance.colostate.edu
phone; 303-491-8202 

                                       Abdel-rahman A. A.
                                       CSU
                                       GW PROGRAM

README.SVR4
***************************************
When building for SVR4:

1.  Make sure your are compiling with the /usr/lib and /usr/bin/cc
	stuff.  In other words, make sure that /usr/ucb is after /usr/bin
	and /usr/sbin in your path.  The typical way to compile using the
	ucb libraries and includes is to place /usr/ucb first in your
	path.  Make sure you don't do this.  On some machines, /usr/ucb/cc
	is called /usr/ucb/cc-bsd, but don't use that one either.  If you
	compile somehow using /usr/ucb/cc[-bsd], then the compile phase
	will probably choke on the Berkeley include files.  Verify which
	C compiler you are using by typing 

	/usr/ucb/which cc

	you should not see

	/usr/ucb/cc

2.  When Setup asks for a machine type, enter svr4.

3.  When Setup asks for any additional libraries, type

	-lnsl /usr/ucblib/libucb.a

    The nsl lib is needed for network support for X.  If you forget it,
    you will get lots of link errors about missing routines, such as
    t_alloc.

    The libucb entry is needed because the Motif library uses the BSD
    regex routines, which are found only in the ucb library.  If you
    forget this, the link phase will complain about the absence of
    re_comp and re_exec.

4.  If you get a lot of warnings during compile, don't worry too much
	about them.  The ANSI C compiler for SVR4 complains a lot.



C**************
error1 
C**************
when trying to compile using the -lnsl library, without the existing of
/usr/ucblib/libucb.a

        cc -o /dev/nfs/usrG/xgrass/xgrass/install/bin/xgrass.exe -O -cckr  main.o  callbacks.o  client.o  create.o  error.o  exec.o  exit.o  history.o  link.o  warning.o  xgdbset.o  parse.o  grammar.o  lex.o  strdup.o xc.main.o  xc.grammar.o  xc.lex.o  xc..error.o  xc.parse.o  xc.client.o  xc.modify.o  xc.verify.o  xc.name.o  xc.assign.o  xc.exit.o  xc.comstr.o  xc.require.o  xc.create.o -ll -L/dev/nfs/usrG/xgrass/xgrass/install/lib -lXg -L/usr/lib/X11 -lXm -L/usr/lib/X11 -lXt -L/usr/lib/X11 -lX11 -L/dev/nfs/usrG/xgrass/xgrass/src/libes/LIB.svr4 -lgis -lm -lnsl /usr/ucblib/libucb.a
/usr/bin/ld:
Can't locate file for: -lnsl
*** Error code 1
Stop.
*** Error code 1

c***********************************
error2 
c***********************************
when taking out the -lnsl lib from the compilation flages.


        cc -o /dev/nfs/usrG/xgrass/xgrass/install/bin/xclip.exe -O -cckr  xc.topmain.o  xc.main.o  xc.grammar.o  xc.lex.o  xc.error.o  xc.parse.o  xc.client.o  xc.modify.o  xc.verify.o  xc.name.o  xc.assign.o  xc.exit.o  xc.comstr.o  xc.require.o  xc.create2.o -ll -L/dev/nfs/usrG/xgrass/xgrass/install/lib -lXg -L/usr/lib/X11 -lXm -L/usr/lib/X11 -lXt -L/usr/lib/X11 -lX11 -L/dev/nfs/usrG/xgrass/xgrass/src/libes/LIB.svr4 -lgis -lm 
/usr/bin/ld:
Undefined:
DoHotWord
regcmp
regex
*** Error code 1

Stop.
*** Error code 1

Stop.

c***********************************
error3 
c***********************************
when using the libbsd.a & libPW.a

        cc -o /dev/nfs/usrG/xgrass/xgrass/install/bin/xgrass.exe -O -cckr  main.o  callbacks.o  client.o  create.o  error.o  exec.o  exit.o  history.o  link.o  warning.o  xgdbset.o  parse.o  grammar.o  lex.o  strdup.o xc.main.o  xc.grammar.o  xc.lex.o  xc..error.o  xc.parse.o  xc.client.o  xc.modify.o  xc.verify.o  xc.name.o  xc.assign.o  xc.exit.o  xc.comstr.o  xc.require.o  xc.create.o -ll -L/dev/nfs/usrG/xgrass/xgrass/install/lib -lXg -L/usr/lib/X11 -lXm -L/usr/lib/X11 -lXt -L/usr/lib/X11 -lX11 -L/dev/nfs/usrG/xgrass/xgrass/src/libes/LIB.svr4 -lgis -lm -L/usr/lib -lPW -L/usr/lib -lbsd -s -lc_s
/usr/bin/ld:
Undefined:
DoHotWord
*** Error code 1





More information about the grass-dev mailing list