Build errrors - decNumber.c
mstram opened this issue · 4 comments
I'm trying to build on
Linux ip-172-31-16-159 3.13.0-29-generic #53-Ubuntu SMP
gcc (Ubuntu 4.8.2-19ubuntu1
decNumber.c: In function 'decSetSubnormal':
decNumber.c:5947:14: warning: variable 'dnexp' set but not used [-Wunused-but-set-variable]
Int dnexp; // saves original exponent
^
mv: cannot stat ‘t-nl.gmo’: No such file or directory
** Warning: linker path does not have real file for library -lpthread.
*** using a file magic. Last file checked: /usr/lib/x86_64-linux-gnu//libpthread.so
*** Warning: linker path does not have real file for library -lrt.
using a file magic. Last file checked: /lib/x86_64-linux-gnu/librt-2.19.so
*** Warning: linker path does not have real file for library -lz.
*** using a file magic. Last file checked: /lib/x86_64-linux-gnu/libz.so.1.2.8
*** Warning: linker path does not have real file for library -lresolv.
*** using a file magic. Last file checked: /lib/x86_64-linux-gnu/libresolv-2.19.so
Warning: linker path does not have real file for library -lnsl.
*** using a file magic. Last file checked: /lib/x86_64-linux-gnu/libnsl-2.19.so
*** Warning: linker path does not have real file for library -lm.
using a file magic. Last file checked: /lib/x86_64-linux-gnu/libm-2.19.so
linker path does not have real file for library -ldl.
using a file magic. Last file checked: /lib/x86_64-linux-gnu/libdl-2.19.so
*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.
Also right at the beginning 👍
sh autogen.sh
automake... FAILED!
The last 10 lines of autogen.log follows...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
configure.ac:1112: the top level
configure.ac:14: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.ac:14: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:33: error: required file 'autoconf/compile' not found
configure.ac:33: 'automake --add-missing' can install 'compile'
So I modified autogen.sh :
automake --add-missing
which produced the configure file
It compiles without errors here :
(Sles 11 aws ec2)
gcc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973]
Linux version 3.0.101-0.29-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973](SUSE Linux) ) #1 SMP T
The unused-but-set warning and the autoconf/compile error should be fixed by release 3.11.
Are you sure you are using the current version of configure.ac? The message "mv: cannot stat ‘t-nl.gmo’: No such file or directory" relates to the enable-nls feature which was removed from spinhawk in release 3.09. The "warning: variable 'dnexp' set but not used [-Wunused-but-set-variable]" message was eliminated from spinhawk by commit 03e0d3e on April 3. I don't know what to make of the libtool warnings.