>From: "Luis A. Lopez" <address@hidden> >Organization: UPR >Keywords: 200403112135.i2BLZbrV022391 McIDAS gcc Solaris SPARC Hi Luis, >When I do make all VENDOR=-gcc to compile Mcidas (after setting all the >respective variables), I'm getting this error (I cut the output, is so >long) obvioulsy is a problem compiling tk. I'll appreciate any help. >Thanks in advance. Hmm... I just built my latest release of McIDAS, v2003b, on a Sun Solaris SPARC 5.9 system using the gcc/g77 compiler combination and got a different result than the one you sent. For instance: logging from your machine at the point of build failure: >cd ../tk/unix && make >gcc -pipe -c -O -Wall -Wconversion -Wno-implicit-int -fPIC >-I/data1/mcidas/mcidas2003/tk/unix >-I/data1/mcidas/mcidas2003/tk/unix/../generic >-I/data1/mcidas/mcidas2003/tk/unix/../bitmaps -I/generic >-DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTCL_WIDE_INT_TYPE=long\ long >-DHAVE_STRUCT_DIRENT64=1 -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 >-D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -DSTDC_HEADERS=1 >-DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 >-Dstrtod=fixstrtod -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS >-DTK_LIBRARY=\"/usr/local/lib/tk8.4\" \ > /data1/mcidas/mcidas2003/tk/unix/tkUnixInit.c >In file included from /data1/mcidas/mcidas2003/tk/unix/../generic/tkInt.h:21, > from /data1/mcidas/mcidas2003/tk/unix/tkUnixInit.c:15: >/data1/mcidas/mcidas2003/tk/unix/../generic/tk.h:72: #error Tk 8.4 must be >compiled with tcl.h from Tcl 8.4 ... Note that the error is one of a tcl.h file that is different from the distribution of Tcl/Tk!? Here is the same part of the build on my Sun Solaris SPARC system: cd ../tk/unix && make gcc -pipe -c -O -O -Wall -Wconversion -Wno-implicit-int -fPIC -I/upc/mcidas/mcidas2003/tk/unix -I/upc/mcidas/mcidas2003/tk/unix/../generic -I/upc/mcidas/mcidas2003/tk/unix/../bitmaps -I/upc/mcidas/mcidas2003/tcl/generic -I/usr/openwin/include -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_DIRENT64=1 -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 -DSTATIC_BUILD=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 -Dstrtod=fixstrtod -DTCL_NO_DEPRECATED\ /upc/mcidas/mcidas2003/tk/unix/../generic/tk3d.c In file included from /upc/mcidas/mcidas2003/tk/unix/../generic/tk.h:96, from /upc/mcidas/mcidas2003/tk/unix/../generic/tkInt.h:21, from /upc/mcidas/mcidas2003/tk/unix/../generic/tk3d.h:18, from /upc/mcidas/mcidas2003/tk/unix/../generic/tk3d.c:16: /usr/openwin/include/X11/Xlib.h:32: warning: ignoring pragma: "@(#)Xlib.h 1.9 00/07/05 SMI ... NOTEs: - I do not get the tch.h version mismatch error that is being reported in your build attempt - the include line for 'generic' differs between your build and mine: yours: -I/generic mine: -I/upc/mcidas/mcidas2003/tcl/generic - my build is explicitly static; yours is not etc. I am most concerned about the second bullet in the list above. In my build there is an explicit include search in the tcl subdirectory of the McIDAS disribution, but in yours there is not (i.e., -I/upc/mcidas/mcidas2003/tcl/generic versus -I/generic). I think that this is where the incorrect version of tcl.h is being searched. I saw that someone at UPR downloaded Unidata McIDAS on March 12. Was this you? If yes, is this the version you are using in the build? Did you alter anything in the build in any way? Did you start with a clean build: 1) remove the mcidas2003/src, mcidas2003/tcl, mcidas2003/tk, etc. directories 2) cd ~mcidas (cd /data1/mcidas ?) 3) define McINST_ROOT to be /data1/mcidas 4) ./mcinstall 5) cd ~mcidas/mcidas2003/src 6) make all VENDOR=-gcc Again, the VENDOR=-gcc flag tells the build script that gcc and f2c are to be used in the build. It is likely that if you have gcc you also have g77. If this is true, I recommend using the gcc/g77 compiler combination: CC=gcc CFLAGS=-O CPPFLAGS='-DNDEBUG -Df2cFortran' FC=g77 FFLAGS='-O -Wuninitialized -fno-automatic' CXX= F90= Is there any possibility that I could get a logon to your machine as the user building McIDAS? With this login, I could poke around to make sure that there is nothing amiss on things I have not mentioned above or in my previous email. Cheers, Tom -- NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publically available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us. >From address@hidden Tue Mar 16 04:39:17 2004 Hi Tom: Thank you for taking the time to check my problem., Yes, I downloaded macidas2003 on friday march 12, I'll rebuild the application becuase I change something on the Make file that referenced to the gcc ompiler (for strange reason it try to use a sigle letter c program to compile instead of gcc). I'll be working on the compilation on the morning. Luis >From address@hidden Wed Mar 17 04:34:15 2004 Hi Tom: I want to thank you for your support in compiling mcidas2003 on our solaris box. We really appreciate the time that you dedicated to help us. Have a nice day. Luis
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.