[ncl-install] compiling wrapit

Alexander Petkov greenkov at gmail.com
Fri Jan 4 10:02:10 MST 2008


On Jan 4, 2008 9:31 AM, Mary Haley <haley at ucar.edu> wrote:
>
>
> On Fri, 4 Jan 2008, Alexander Petkov wrote:
>
> > OK--I don't get multiple definition errors anymore :-)
> >
> > My second problem still persists, any idea as to what else I should be
> > linking to?
>
> I think your wrapit.c got clobbered again.
>
> It contains the definitions that are undefined below. Can you recopy
> the wrapit.c I gave you, and run "make" again?  Don't do a "make
> clean" or anything like that, because I think one of the commands
> below is clobbering your wrapit.c, and that command probably won't be
> run again if you leave everything else alone.
>
> If the new wrapit.c works this time, then we need to figure
> out which command is clobbering it.
>
> Let me know if you get the above working, and then we can work offline
> to see what's happening to wrapit.c.
>
> --Mary

Hi Mary,

This time I compiled the wrapit.c you sent me by hand, after which
wrapit77 linked without a problem.
Something in the generated makefile overwrites wrapit.c, which in my
understanding should be a static source file.

This time I executed these commands by hand, to avoid using the Makefile:
gcc -ansi -fPIC  -O  -I../../.././include -I/usr/X11R6/include
-I/opt/netcdf-3.6.2/gnu/include -I/opt/hdf4/include   -DLinux
-DMAJOR=2 -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped
-DNeedFuncProto    -c -o wrapit.o wrapit.c
gcc -ansi -fPIC  -O    -o wrapit77 y.tab.o lex.yy.o Symbol.o wrapit.o
-L/opt/ncl_ncarg-5.0.0/lib -L/usr/X11R6/lib64
-L/opt/netcdf-3.6.2/gnu/lib -L/opt/hdf4/lib  -lfl

Thanks again for your help,
Alex


More information about the ncl-install mailing list