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

20040709: ldm-mcidas compile problem



>From: Mark Tucker <address@hidden>
>Organization: Lyndon State
>Keywords: 200407091612.i69GCbaW003665 ldm-mcidas Slackware

Hi Mark,

Instead of trying to troubleshoot your build on Slackware -- an OS we
do not have in-house --, why not try using the binary ldm-mcidas
distribution I have provided for RedHat 8.  I believe that it will work
with no problems for you:

machine:   ftp.unidata.ucar.edu
directory: pub/binary/linux8_2.4-i686
file:      ldm-mcidas-2003.tar.Z

Please let me know if this does not work for you.

Cheers,

Tom

>I'm trying to build ldm-mcidas on Linux (slackware) and have run into some 
>problems.  I've built current versions of ldm, gempak, mcidas, netcdf, and 
>udunits on this system without any problems.
>
>When I run "make all", it stops with an error linking the png libs:
>
>---------------------------SNIP-------------------------------------
>/usr/bin/gcc -o area2png alarm.o commonsubs.o imgsubs.o pngsubs.o rtesubs.o 
>area
>2png.o -L/software/ldm/lib -lldm -L/usr/X11/lib -lX11 ../port/misc/libudport.a
>  
>-
>L/software/mcidas/mcidas2003/netcdf/libsrc -lnetcdf -L../libpng -lpng 
>-L../zlib
>-lz     || (rm -f area2png; exit 1)
>../libpng/libpng.a(pngrtran.o)(.text+0xf53): In function 
>`png_init_read_transfor
>mations':
>: undefined reference to `pow'
>../libpng/libpng.a(pngrtran.o)(.text+0xfa4): In function 
>`png_init_read_transfor
>mations':
>: undefined reference to `pow'
>../libpng/libpng.a(pngrtran.o)(.text+0xff8): In function 
>`png_init_read_transfor
>mations':
>: undefined reference to `pow'
>../libpng/libpng.a(pngrtran.o)(.text+0x1048): In function 
>`png_init_read_transfo
>rmations':
>: undefined reference to `pow'
>../libpng/libpng.a(pngrtran.o)(.text+0x1095): In function 
>`png_init_read_transfo
>rmations':
>: undefined reference to `pow'
>../libpng/libpng.a(pngrtran.o)(.text+0x10e5): more undefined references to 
>`pow'
> follow
>collect2: ld returned 1 exit status
>make[2]: *** [area2png] Error 1
>--------------------------END---------------------------------
>
>If I'm not mistaken, pow should be found in the libm library.  I tried adding 
>"-lm" to the CFLAGS env variable.  Here are the environment variables I've 
>set for the build.
>--------------------------SNIP--------------------------------
>CC=/usr/bin/gcc
>NAWIPS=/software/gempak/GEMPAK5.6m
>CPP_MCIDAS=-I/software/mcidas/inc
>LD_MCIDAS=-L/software/mcidas/lib -lmcidas
>CPP_NETCDF=-I/software/mcidas/mcidas2003/netcdf/libsrc
>LD_NETCDF=-L/software/mcidas/mcidas2003/netcdf/libsrc -lnetcdf
>CPPFLAGS=-DNDEBUG -Df2cFortran
>CFLAGS=-O -lm
>FC=g77
>FFLAGS=-O -Wuninitialized -fno-automatic
>LD_LDM=-L/software/ldm/lib -lldm
>CPP_LDM=-I/software/ldm/include
>------------------------END-----------------------------------
>
>I have the complete logs from configure and make on the following location:
>
>http://apollo.lsc.vsc.edu/metadmin/ldm-mcidas/

>From address@hidden  Fri Jul  9 10:22:45 2004

>Reading through the INSTALL document,  I found that I needed to send some 
>additional information for the support request:

>A. Linux omega 2.6.7 #1 SMP Wed Jul 7 19:15:21 GMT 2004 i686 unknown unknown 
>GNU/Linux

>B. 2003

>C. 
>>which gcc
>/usr/bin/gcc

>>which g77
>/usr/bin/g77

>>which f77
>/usr/bin/f77

>(g77 and f77 are the same anyways)

>D,E,F. These can be found at the address I mentioned in my previous email:
>http://apollo.lsc.vsc.edu/metadmin/ldm-mcidas/

>-- 
>Mark Tucker
>Meteorology Dept. Systems Administrator
>Lyndon State College
>http://apollo.lsc.vsc.edu
>address@hidden
>(802)-626-6328

--
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.