>
>
> Hi All,
>
> It's been a long time since I used NCAR graphics for anything. But I just
> came across a reason why I might need it again. I downloaded the current
> source tarball and tried to build it on my new laptop, which is running
> Debian testing.
>
> Gack! It barfs at the first stage! [1] Now since Configure and ymake use
> the C preprocessor a lot, and since gcc has gone from 2.95 to 3.3 since I
> last used NCAR graphics, I wondered if there has been some change in cpp
> that breaks the Configure script. Debian's gcc and cpp are links to
> gcc-3.3 and cpp-3.3 and I have gcc-2.95 installed as a backup, so I
> switched the links over to the 2.95 versions and tried again. Bingo. It
> has not finished building yet, but it is making an honest attempt.
>
> Hopefully this info will be of use to someone. Does anyone have a better
> work-around for compiling with gcc-3.3 ?
>
> All the best
>
> Hugh
>
> [1] The failure looks like this -- it is apparently caused by comments in
> yMakefile that begin with # . Adding a space to the beginning of the
> offending 12 lines fixes _this_ yMakefile, but there are many others with
> the same problem.
>
> lap1-pc:/usr/local/src/ncarg-4.3.1# ./Configure -v
>
> Building top-level Makefile to determine System defaults
>
> Making ymake from Makefile.ini in ./config first
> cc -O -c -o ymake-filter.o ymake-filter.c
> cc -O -o ymake-filter ymake-filter.o
> continuing in /usr/local/src/ncarg-4.3.1
> In file included from config/Template:843,
> from <stdin>:1:
> ymake.tmp13503:58: invalid preprocessing directive #The
> .
> .
> .
> Error in <ymake>: Interrupted in /usr/local/src/ncarg-4.3.1
> - restoring Makefile
> cp: cannot stat Makefile.bak': No such file or directory
> Unable to build Makefile - fix above errors and re-run.
>
> Terminating configuration procedure
> lap1-pc:/usr/local/src/ncarg-4.3.1#
>
Dear Dr. Pumphrey,
I believe this is a result of the gcc 3.3 compiler behaving
differently than the one that this source code was last built on
(probably gcc 3.1). One of our developers came up with the following
fixes:
Edit the file $NCARG/config/ymake and change line 621 from:
set cppopt = -traditional
to:
set cppopt = -traditional-cpp
and line 629 from:
$cpp $cppopt -I. -D_COMMENT_="" -DNGCOMM=\# $defines
to:
$cpp $cppopt -I. -D_COMMENT_\#="" -DNGCOMM=\# $defines
Once you've done this, run the "make Everything" command again.
Please let me know if this doesn't work.
--Mary
> ============S=u=p=p=o=r=t===D=e=b=i=a=n===http://www.debian.org =========
> Dr. Hugh C. Pumphrey | Tel. 0131-650-6026,Fax:0131-650-5780
> School of GeoSciences | Replace 0131 with +44-131 if outside UK
> The University of Edinburgh | Email: hcp@staffmail.ed.ac.uk
> EDINBURGH EH9 3JZ, Scotland | web: www.geos.ed.ac.uk/contacts/homes/hcp
> ==========P=l=e=a=s=e==N=o=t=e==N=e=w==E=m=a=i=l==A=d=d=r=e=s=s==========
> _______________________________________________
> ncarg-talk mailing list
> ncarg-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
>
-- ------------------------------------------------- Mary Haley haley@ucar.edu NCAR/SCD/VETS 303-497-1254 (voice) 1850 Table Mesa Dr 303-497-1804 (fax) Boulder, CO 80305 ------------------------------------------------- _______________________________________________ ncarg-talk mailing list ncarg-talk@ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
This archive was generated by hypermail 2b29 : Thu Nov 13 2003 - 16:41:22 MST