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

[LDM #INT-687165]: LDM 6.13.17 will not compile under Ubuntu 22.0.4



You are doing nothing wrong.  The latest GNU autoconf appears to be the 
culprit.  I apologize for the delay in the solution, as I am also working to 
convert from using autoconf to CMake, but given you are the second to find this 
bug, I think we need to spend some time making the latest autoconf work for the 
time being.

>> In reply to >>

I downloaded and untarred LDM 6-13.17 on Ubuntu 22.0.4. While it works fine in 
version 20.0.4, in 22.0.4 I execute this command:

/home/ldm/ldm-6.13.17/src/ ./configure -with-noaaport

And after a while, the compilation crashes with this message:

gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../grib2 -I../gempak -I../zlib -I../log 
-I../log -I../protocol -I../protocol -I../protocol2 -I../protocol2 
-I../registry -I../registry -I../protocol -I../pq -I../misc -I./retrans 
-I/usr/include/libxml2 -std=c99 -g -O2 -MT productMaker.o -MD -MP -MF 
$depbase.Tpo -c -o productMaker.o productMaker.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo reader.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../grib2 -I../gempak -I../zlib -I../log 
-I../log -I../protocol -I../protocol -I../protocol2 -I../protocol2 
-I../registry -I../registry -I../protocol -I../pq -I../misc -I./retrans 
-I/usr/include/libxml2 -std=c99 -g -O2 -MT reader.o -MD -MP -MF $depbase.Tpo -c 
-o reader.o reader.c &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ../libtool --tag=CC --mode=link gcc -std=c99 -g -O2 -o 
noaaportIngester noaaportIngester.o dynabuf.o gini.o grib2name.o 
ldmProductQueue.o png_io.o process_prod.o readpdb.o readpdh.o readpsh.o 
readsbn.o redbook_header.o wgrib.o wmo_header.o fifo.o getFacilityName.o 
lockProcessInMemory.o noaaport_socket.o productMaker.o reader.o 
../lib/libldm.la -lxml2 -lxml2 -lpng -lz -lm
libtool: link: gcc -std=c99 -g -O2 -o .libs/noaaportIngester noaaportIngester.o 
dynabuf.o gini.o grib2name.o ldmProductQueue.o png_io.o process_prod.o 
readpdb.o readpdh.o readpsh.o readsbn.o redbook_header.o wgrib.o wmo_header.o 
fifo.o getFacilityName.o lockProcessInMemory.o noaaport_socket.o productMaker.o 
reader.o ../lib/.libs/libldm.so -lxml2 -lpng -lz -lm -Wl,-rpath 
-Wl,/home/ldm/ldm-6.13.17/lib
/usr/bin/ld: productMaker.o:/home/ldm/ldm-6.13.17/src/noaaport/goes.h:7: 
multiple definition of `inflateFrame'; 
noaaportIngester.o:/home/ldm/ldm-6.13.17/src/noaaport/noaaportIngester.c:65: 
first defined here
/usr/bin/ld: productMaker.o:/home/ldm/ldm-6.13.17/src/noaaport/goes.h:8: 
multiple definition of `fillScanlines'; 
noaaportIngester.o:/home/ldm/ldm-6.13.17/src/noaaport/noaaportIngester.c:66: 
first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:716: noaaportIngester] Error 1
make[2]: Leaving directory '/home/ldm/ldm-6.13.17/src/noaaport'
make[1]: *** [Makefile:954: install] Error 2
make[1]: Leaving directory '/home/ldm/ldm-6.13.17/src/noaaport'
make: *** [Makefile:675: install-recursive] Error 1


Do you have any idea what I am doing wrong?

+----------------------------------------------------------------+
* Stonie Cooper                             UCAR Unidata Program *
* Software Engineer III                            P.O. Box 3000 *
* address@hidden                              Boulder, CO 80307 *
* Unidata WWW Service               http://www.unidata.ucar.edu/ *
+----------------------------------------------------------------+

Ticket Details
===================
Ticket ID: INT-687165
Department: Support LDM
Priority: Normal
Status: Open
===================
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.