[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

19991025: : McIDAS-X build on Linux (cont.)



>From: Ricky Irving <address@hidden>
>Organization: SATEPS
>Keywords: 199910251755.LAA07454 McIDAS-X Linux

Ricky,

>Thanks for the help. It appears that I was still using SSEC's mccomp.
>Corrected that error and I got a good chunk of it compiled until I hit
>the TCL stuff. 

OK.

>Again, I have attached the makelog file (abbreviated version) showing my 
>progress (or lack thereof). I ask for you patience since this is my first
>crack at this.

My comments can be located at the problem area.

>Appreciate the help you have given me thus far.

>./tclcomp ./mccomp -g -I. -I../netcdf/libsrc -I../tcl -I../tcl/generic -I../tk 
>-I../tk/generic -c wishcrex.c
>gcc -c -O -ansi -D_GNU_SOURCE -I/usr/X11R6/include -g -DHAVE_GETCWD=1 -DHAVE_UN
>ISTD_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_Z
>ONE=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADE
>RS=1 -DNEED_MATHERR=1 -DRETSIGTYPE=void -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H
>=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DT
>IME_WITH_SYS_TIME=1 -I. -I../netcdf/libsrc -I../tcl -I../tcl/generic -I../tk -I
>../tk/generic wishcrex.c
>compile wishcrex.c:             done

 (deleted makelog output before problem area)

>./tclcomp ./mccomp -g -I. -I../netcdf/libsrc -I../tcl -I../tcl/generic -I../tk
>  -I../tk/generic -c tkAppInit.c
>gcc -c -O -ansi -D_GNU_SOURCE -I/usr/X11R6/include -g -DHAVE_GETCWD=1 -DHAVE_U
> NISTD_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_T
> M_ZONE=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_
> HEADERS=1 -DNEED_MATHERR=1 -DRETSIGTYPE=void -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_
> IOCTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIM
> E_H=1 -DTIME_WITH_SYS_TIME=1 -I. -I../netcdf/libsrc -I../tcl -I../tcl/generic
>  -I../tk -I../tk/generic tkAppInit.c
>compile        tkAppInit.c:            done
>./tclcomp ./mccomp -g -o mcwish wishcrex.o wisherrh.o wishinit.o wishmcid.o wi
> shrglb.o wishutil.o wishxinf.o wishxwin.o tkAppInit.o -L. -lmcidas
>mcfc -g -Wl,-rpath,/home/mcidas/tcl/lib -o mcwish wishcrex.o wisherrh.o wishin
> it.o wishmcid.o wishrglb.o wishutil.o wishxinf.o wishxwin.o tkAppInit.o -L. -
> L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11R6/lib -lmcidas -lX11 -ldl -lm -ld
> l -lm -lf2c -ldl -lm
>wishcrex.o: In function `Tk_CreateWindowFromExisting':
>/home/mcidas/mcidas7.6/src/wishcrex.c:371: undefined reference to `Tk_CreateWi
> ndowFromPath'
>/home/mcidas/mcidas7.6/src/wishcrex.c:386: undefined reference to `Tk_MakeWind
> owExist'
>/home/mcidas/mcidas7.6/src/wishcrex.c:457: undefined reference to `TkWmAddToCo
> lormapWindows'
>wisherrh.o: In function `handler_error_message':

 ...

>collect2: ld returned 1 exit status
>link   mcwish:                 FAILED

The problem I see in the 'mcfc -g -Wl,-rpath,/home/mcidas/tcl/lib ...' line
is that there is no linker references to:

/home/mcidas/mcidas7.6/tk/unix
/home/mcidas/mcidas7.6/tcl/unix
/home/mcidas/tcl/lib

Here is what the output looks like from one of my site's RedHat 6.0 build:

./tclcomp ./mccomp -O -s -vendor -o mcwish wishcrex.o wisherrh.o wishinit.o 
wishmcid.o wishrglb.o wishutil.o wishxinf.o wishxwin.o tkAppInit.o -L. -lmcidas
mcfc -s -Wl,-rpath,/home/mcidas/tcl/lib -O -o mcwish wishcrex.o wisherrh.o 
wishinit.o wishmcid.o wishrglb.o wishutil.o wishxinf.o wishxwin.o tkAppInit.o 
-L. -L/home/mcidas/mcidas7.6/tk/unix -L/home/mcidas/mcidas7.6/tcl/unix 
-L/home/mcidas/tcl/lib -L/home/mcidas/tcl/lib -L/usr/X11R6/lib -L/usr/local/lib 
-L/usr/X11R6/lib -lmcidas -ltk8.0 -ltcl8.0 -lX11 -ldl -lm -ldl -lm -lf2c -ldl 
-lm
link    mcwish:                 done

So, the question becomes one of why your build is missing the references to
the above directories;  they should be included from tclcomp.sh.  Are you
using the tclcomp.sh file that I sent you?  If so, did you remember to
make a new copy of tclcomp from it (needed if you tried the build once
before installing my modified version)?

>##########################################
>Mon Oct 25 16:31:04 EDT 1999: BUILD BEGIN
>##########################################
>
>./tclcomp ./mccomp -g -I. -I../netcdf/libsrc -I../tcl -I../tcl/generic -I../tk
>  -I../tk/generic -c wishcrex.c
>Usage: tclcomp tcldir tclsrc tksrc target
>compile        wishcrex.c:             FAILED

  (repeated)

The failure of this compile is unexpected since wishcrex.c built successfully
in the first pass through.  I think that your problem lies in tclcomp.sh.

I hope that the above gives you some clues.

Tom

>From address@hidden  Tue Oct 26 10:15:13 1999
>From: Gilbert Sebenste <address@hidden>

Gilbert,

>I noticed you are logged in as McIDAS and doing a "vi logfile" on my
>machine. What's up?

I have been getting support questions from a fellow at SATEPS (formerly
VDUC of NESDIS) regarding building McIDAS on RedHat 6.0 Linux (I provided
my modifications to McIDAS that makes this possible).  The person was
sending me snippits from his ~mcidas/mcidas7.6/src/makelog file that
showed the problems he was running into.  Since I don't have a current
build on Linux here (meaning that I don't have the makelog file available
anymore), and since I needed the makelog output from a clean build, and
since the most recent RH Linux build I was involved in was on your
machine, I decided to logon and clip out the lines that show what
a clean build should look like.

Sorry for not OKing this with you before hand.

Tom

>From address@hidden  Tue Oct 26 10:21:30 1999

re: not OKing
>No! That's fine. Was just curious to see if a problem had developed. Log
>in anytime!