Compilation failure on mac ox 10.8

Issue #8 resolved
Former user created an issue

cc --version Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.4.0 Thread model: posix

make output

src/json_extra.h:28: error: ‘to_json’ declared as function returning a function src/json_extra.h:29: error: ‘json_agg_transfn’ declared as function returning a function src/json_extra.h:30: error: ‘json_agg_finalfn’ declared as function returning a function src/json_extra.h:33: error: ‘json_object_field’ declared as function returning a function src/json_extra.h:34: error: ‘json_object_field_text’ declared as function returning a function src/json_extra.h:35: error: ‘json_array_element’ declared as function returning a function src/json_extra.h:36: error: ‘json_array_element_text’ declared as function returning a function src/json_extra.h:37: error: ‘json_extract_path’ declared as function returning a function src/json_extra.h:38: error: ‘json_extract_path_text’ declared as function returning a function src/json_extra.h:39: error: ‘json_object_keys’ declared as function returning a function src/json_extra.h:40: error: ‘json_array_length’ declared as function returning a function src/json_extra.h:41: error: ‘json_each’ declared as function returning a function src/json_extra.h:42: error: ‘json_each_text’ declared as function returning a function src/json_extra.h:43: error: ‘json_array_elements’ declared as function returning a function src/json_extra.h:44: error: ‘json_populate_record’ declared as function returning a function src/json_extra.h:45: error: ‘json_populate_recordset’ declared as function returning a function src/json_extra.h:48: error: ‘hstore_to_json’ declared as function returning a function src/json_extra.h:49: error: ‘hstore_to_json_loose’ declared as function returning a function

Comments (5)

  1. Andrew Dunstan

    I don't have an OSX box so I have no way of examining this. As far as I can tell these errors are bogus - these functions return type Datum, which is not a function.

  2. Andrew Dunstan

    Well, there are so many errors here before you ever get to the one you posted, beginning with this one that means you have major problems:

    /Library/PostgreSQL/9.2/include/postgresql/server/c.h:67:19: error:
    stdio.h: No such file or directory
    

    Is this the same compiler used to build Postgres?

    Other people have managed to build on OSX, albeit only with NO_HSTORE in some cases, so I don't accept that this is a problem with the module rather than your setup.

  3. Former user Account Deleted

    Is this the same compiler used to build Postgres

    I've used EnterpriseDB installer so i think its not. But if i uninstall it and reinstall from brew, only hstore problem is left.

  4. Log in to comment