petere / pex

light-weight package manager for PostgreSQL
Other
98 stars 2 forks source link

use of undeclared identifier 'FALSE' #9

Open irsi opened 5 years ago

irsi commented 5 years ago

I installed postgresql@11.4 and pex via homebrew on macOS Mojave 10.14.5, but when I try to install ip4r package — I get about 20 errors like this:

./ip4r_funcs.h:74:16: error: use of undeclared identifier 'FALSE'
        return FALSE;
               ^

Other errors differ only in filename or constant (TRUE/FALSE).

irsi commented 5 years ago

upd

clang version:

Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
majorcode commented 4 years ago

I'm getting the same error when trying to run the TAOP Extras make file. I'm using Apple clang version 11.0.0 (clang-1100.0.33.17) on macOS 10.15.2 against a Homebrew install of Postgres 12.1 and pex. Is there any news about how to fix this?

majorcode commented 4 years ago

UPDATE: I cloned the RhodiumToad/ip4r and citusdata/postgresql-hll repos, then ran make and make install in both directories to build and install the missing extensions. Then ran make dropdb and re-ran make in the Extras directory. Seems to have fixed the problem. Also, this is probably not the correct repo to report this; a problem with setting up The Art of PostgreSQL extras. But maybe this information will be of use to others having the same problem.