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

[McIDAS #LOB-532260]: Error building McIDAS-X 2016



Hi Kwan,

re:
> The system administrator installed byacc (as well as the other packages in
> your last email) before the weekend.  So I tried recompiling McIDAS 2016
> this morning.  First, I did 'make clobber' and then 'make mcx'.  But it
> ended with an error similar to my last attempt.  I am attaching 'makelog'
> for you to check.

The error reported in 'makelog' shows that the environment in which you
are trying to build v2016 is not correct:

/bin/sh ./libtool  --tag=CC   --mode=link gcc  -O -no-undefined -export-dynamic 
-version-number 16:21:0  -Wl,--version-script=libpng.vers  -L/awips2/python/lib 
-L/export-5/ncosrvnfs-cp/nawips2/os/linux2.6.32_x86_64/lib -s 
-L/usr/X11R6/lib64 -L/export/wpc-lw-fobdev5/kkong/mcidas/mcidas2016/src/../zlib 
-lz -o libpng16.la -rpath /export/wpc-lw-fobdev5/kkong/mcidas/lib png.lo 
pngerror.lo pngget.lo pngmem.lo pngpread.lo pngread.lo pngrio.lo pngrtran.lo 
pngrutil.lo pngset.lo pngtrans.lo pngwio.lo pngwrite.lo pngwtran.lo pngwutil.lo 
   -lm -lz -lm 
libtool: link: gcc -shared  -fPIC -DPIC  .libs/png.o .libs/pngerror.o 
.libs/pngget.o .libs/pngmem.o .libs/pngpread.o .libs/pngread.o .libs/pngrio.o 
.libs/pngrtran.o .libs/pngrutil.o .libs/pngset.o .libs/pngtrans.o 
.libs/pngwio.o .libs/pngwrite.o .libs/pngwtran.o .libs/pngwutil.o   
-L/awips2/python/lib -L/export-5/ncosrvnfs-cp/nawips2/os/linux2.6.32_x86_64/lib 
-L/usr/X11R6/lib64 -L/export/wpc-lw-fobdev5/kkong/mcidas/mcidas2016/src/../zlib 
-lz -lm  -O -Wl,--version-script=libpng.vers   -Wl,-soname -Wl,libpng16.so.16 
-o .libs/libpng16.so.16.21.0
/usr/bin/ld: 
/export-5/ncosrvnfs-cp/nawips2/os/linux2.6.32_x86_64/lib/libz.a(crc32.o): 
relocation R_X86_64_32 against `.rodata' can not be used when making a shared 
object; recompile with -fPIC
/export-5/ncosrvnfs-cp/nawips2/os/linux2.6.32_x86_64/lib/libz.a: could not read 
symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libpng16.la] Error 1
make[2]: Leaving directory 
`/export/wpc-lw-fobdev5/kkong/mcidas/mcidas2016/libpng'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/export/wpc-lw-fobdev5/kkong/mcidas/mcidas2016/libpng'
make    /export/wpc-lw-fobdev5/kkong/mcidas/mcidas2016/libpng:  FAILED

The attempt to use the system-installed libz.a instead of the version that is 
included
as part of the McIDAS-X distribution indicates the environment problem.

Question:

- did you login using the McIDAS-specific .cshrc file when you tried to do the 
build?

Cheers,

Tom
--
****************************************************************************
Unidata User Support                                    UCAR Unidata Program
(303) 497-8642                                                 P.O. Box 3000
address@hidden                                   Boulder, CO 80307
----------------------------------------------------------------------------
Unidata HomePage                       http://www.unidata.ucar.edu
****************************************************************************


Ticket Details
===================
Ticket ID: LOB-532260
Department: Support McIDAS
Priority: Normal
Status: Closed
===================
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.