Unidata / UDUNITS-2

API and utility for arithmetic manipulation of units of physical quantities
http://www.unidata.ucar.edu/software/udunits
Other
59 stars 36 forks source link

Separate scanner from parser. #67 #74

Open schwehr opened 5 years ago

schwehr commented 5 years ago
schwehr commented 5 years ago

Sigh... Travis-CI isn't being particularly helpful at the moment.

The command "sudo apt-get install cmake libcunit1-dev libexpat-dev texinfo" failed and exited with 100 during .
schwehr commented 5 years ago
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2   -o udunits2 udunits2.o ../lib/libudunits2.la -ldl -lexpat -lm 
libtool: link: gcc -g -O2 -o .libs/udunits2 udunits2.o  ../lib/.libs/libudunits2.so -ldl /usr/lib/x86_64-linux-gnu/libexpat.so -lm
../lib/.libs/libudunits2.so: undefined reference to `ut_delete_buffer'
../lib/.libs/libudunits2.so: undefined reference to `utGetYyCBufP'
../lib/.libs/libudunits2.so: undefined reference to `ut_scan_string'
../lib/.libs/libudunits2.so: undefined reference to `utlex'

Next up is to log the flex and bison versions.

schwehr commented 5 years ago
flex --version
flex 2.5.35
bison --version
bison (GNU Bison) 3.0.2

Oh... autoconf and configure. I've been doing

rm -f lib/{scanner,parser}.{c,h}; rm -rf build-ninja/ ; time (mkdir -p build-ninja && cd build-ninja && cmake -GNinja .. && cmake --build . && ctest .); perl -pi -e 's/\s+\n/\n/g' lib/{scanner,parser}.[ch]
schwehr commented 5 years ago

I will do a separate pull request to add checking the cmake build.