wangp / bower

A curses terminal client for the Notmuch email system
Other
119 stars 11 forks source link

Build fails on Ubuntu 18.04 - integer.from_string/2 #55

Closed stain closed 4 years ago

stain commented 4 years ago

json.m fails to build on Ubuntu 18.04 TLS using Mercury 14.01 as predicate integer.from_string/2 does not yet exist in that version.

(base) stain@biggie:~/src/bower$ mmc --version
Mercury Compiler, version 14.01.1-3, configured for x86_64-pc-linux-gnu
Copyright (C) 1993-2014 The University of Melbourne

(base) stain@biggie:~/src/bower$ make
make[1]: Entering directory '/home/stain/src/bower/src'
Making Mercury/cs/json.c
json.m:203: In clause for predicate `number'/4:
json.m:203:   error: undefined predicate `integer.from_string'/2.
json.m:203:   (There is a *function* with that name, however.
json.m:203:   Perhaps you forgot to add ` = ...'?)
** Error making `Mercury/cs/json.c'.

See commit https://github.com/wangp/bower/commit/7af3877ca9b920ca07bdb8062bc9e925a50abd7a#r37575074

wangp commented 4 years ago

Fixed, thanks.