Re: compiling PostgreSQL with --enable-llvm - Mailing list pgsql-novice

From Tom Lane
Subject Re: compiling PostgreSQL with --enable-llvm
Date
Msg-id 6345.1557288133@sss.pgh.pa.us
Whole thread Raw
In response to compiling PostgreSQL with --enable-llvm  ("Saifi Khan" <saifi.khan@strikr.in>)
List pgsql-novice
"=?utf-8?Q?Saifi=20Khan?=" <saifi.khan@strikr.in> writes:
> In file included from llvmjit_inline.cpp:35:
> /usr/include/unistd.h:1124:14: error: declaration of ‘char* crypt(const char*, const char*) throw ()’ has a different
exceptionspecifier 
>  1124 | extern char *crypt (const char *__key, const char *__salt)
>       |              ^~~~~
> In file included from ../../../../src/include/c.h:1267,
>                  from ../../../../src/include/postgres.h:46,
>                  from llvmjit_inline.cpp:24:
> ../../../../src/include/port.h:334:14: note: from previous declaration ‘char* crypt(const char*, const char*)’
>   334 | extern char *crypt(const char *key, const char *setting);
>       |              ^~~~~
> make[2]: *** [<builtin>: llvmjit_inline.o] Error 1

Hm.  That declaration in port.h is only compiled if not HAVE_CRYPT.
So maybe you should look into config.log and try to determine why
configure thinks your system hasn't got crypt(), when it seemingly
does.

            regards, tom lane



pgsql-novice by date:

Previous
From: Gavin M2301
Date:
Subject: Re: trouble connecting with psql to running server
Next
From: Gavin M2301
Date:
Subject: Re: trouble connecting with psql to running server