Created
September 21, 2014 17:42
-
-
Save valencik/09a1f992d3113f884a50 to your computer and use it in GitHub Desktop.
Error compiling units-2.11 on Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AndrewMBP:units-2.11 andrew$ ./configure | |
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes | |
checking whether gcc accepts -g... yes | |
checking for gcc option to accept ISO C89... none needed | |
checking for gcc option to accept ISO C99... none needed | |
checking for an ANSI C-conforming const... yes | |
checking for a BSD-compatible install... /usr/local/bin/ginstall -c | |
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p | |
checking for library containing sin... none required | |
checking for readline in -lreadline... yes | |
checking how to run the C preprocessor... gcc -E | |
checking for grep that handles long lines and -e... /usr/bin/grep | |
checking for egrep... /usr/bin/grep -E | |
checking for ANSI C header files... yes | |
checking for sys/types.h... yes | |
checking for sys/stat.h... yes | |
checking for stdlib.h... yes | |
checking for string.h... yes | |
checking for memory.h... yes | |
checking for strings.h... yes | |
checking for inttypes.h... yes | |
checking for stdint.h... yes | |
checking for unistd.h... yes | |
checking for string.h... (cached) yes | |
checking for stdlib.h... (cached) yes | |
checking for strchr... yes | |
checking for strspn... yes | |
checking for strtok... yes | |
checking for setenv... yes | |
checking for setlocale... yes | |
checking for locale and UTF-8 support... yes | |
checking for isfinite... yes | |
checking for mksinfo... no | |
checking for python... /usr/bin/python | |
configure: creating ./config.status | |
config.status: creating Makefile | |
AndrewMBP:units-2.11 andrew$ make install | |
gcc -DUNITSFILE=\"/usr/local/share/units/definitions.units\" -DLOCALEMAP=\"/usr/local/share/units/locale_map.txt\" -DREADLINE -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.11\" -DPACKAGE_STRING=\"GNU\ units\ 2.11\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"http://www.gnu.org/software/units/\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -g -O2 -I. -c units.c | |
units.c:3693:3: error: use of undeclared identifier 'rl_completion_suppress_append' | |
rl_completion_suppress_append = 1; | |
^ | |
units.c:4041:12: warning: use of logical '&&' with constant operand | |
[-Wconstant-logical-operand] | |
if (!map && strlen(DATADIR)) { | |
^ ~~~~~~~~~~~~~~~ | |
units.c:4041:12: note: use '&' for a bitwise operation | |
if (!map && strlen(DATADIR)) { | |
^~ | |
& | |
units.c:4041:12: note: remove constant to silence this warning | |
if (!map && strlen(DATADIR)) { | |
~^~~~~~~~~~~~~~~~~~ | |
units.c:4135:17: warning: use of logical '&&' with constant operand | |
[-Wconstant-logical-operand] | |
if (!testfile && strlen(DATADIR)) { | |
^ ~~~~~~~~~~~~~~~ | |
units.c:4135:17: note: use '&' for a bitwise operation | |
if (!testfile && strlen(DATADIR)) { | |
^~ | |
& | |
units.c:4135:17: note: remove constant to silence this warning | |
if (!testfile && strlen(DATADIR)) { | |
~^~~~~~~~~~~~~~~~~~ | |
2 warnings and 1 error generated. | |
make: *** [units.o] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment