* installing *source* package ‘RPostgreSQL’ ...
** this is package ‘RPostgreSQL’ version ‘0.7-8’
** package ‘RPostgreSQL’ successfully unpacked and MD5 sums checked
** using staged installation
checking build system type... aarch64-apple-darwin24.6.0
checking host system type... aarch64-apple-darwin24.6.0
checking target system type... aarch64-apple-darwin24.6.0
checking for pg_config... no
configure: checking for PostgreSQL header files
configure: Checking include /usr/include.
configure: Checking include /usr/include/postgresql.
configure: Checking include /usr/local/include.
configure: Checking include /usr/local/include/postgresql.
configure: Checking include /usr/local/pgsql/include.
configure: Checking include /usr/local/postgresql/include.
configure: Checking lib /usr/lib.
configure: Checking lib /usr/lib/postgresql.
configure: Checking lib /usr/local/lib.
configure: Checking lib /usr/local/lib/postgresql.
configure: Checking lib /usr/local/postgresql/lib.
clang -arch arm64 -std=gnu23 -falign-functions=64 -Wall -g -O2 -I -L conftest.c -lpq -o pqconftest
conftest.c:1:10: fatal error: 'libpq-fe.h' file not found
    1 | #include <libpq-fe.h>
      |          ^~~~~~~~~~~~
1 error generated.
./pqconftest
./configure: line 1999: ./pqconftest: No such file or directory
system -lpq don't appear to work; use internal
configure: Using internal package libpq-fe.h
checking for "src/libpq/libpq-fe.h"... yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C compiler: ‘Apple clang version 17.0.0 (clang-1700.3.19.1)’
using SDK: ‘MacOSX14.5.sdk’
clang -arch arm64 -std=gnu23 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilibpq  -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RS-DBI.c -o RS-DBI.o
clang -arch arm64 -std=gnu23 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilibpq  -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RS-PQescape.c -o RS-PQescape.o
clang -arch arm64 -std=gnu23 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilibpq  -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RS-PostgreSQL.c -o RS-PostgreSQL.o
clang -arch arm64 -std=gnu23 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilibpq  -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RS-pgsql-copy.c -o RS-pgsql-copy.o
clang -arch arm64 -std=gnu23 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilibpq  -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RS-pgsql-getResult.c -o RS-pgsql-getResult.o
clang -arch arm64 -std=gnu23 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilibpq  -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RS-pgsql-pqexec.c -o RS-pgsql-pqexec.o
clang -arch arm64 -std=gnu23 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilibpq  -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RS-pgsql-pqexecparams.c -o RS-pgsql-pqexecparams.o
(cd libpq; make CC="clang -arch arm64 -std=gnu23" CFLAGS="-falign-functions=64 -Wall -g -O2 " -f Makefile.darwin pg_config.h pg_config_os.h all)
cp pg_config.h.darwin pg_config.h
cp pg_config_os.h.darwin pg_config_os.h
clang -arch arm64 -std=gnu23 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o fe-auth.o fe-auth.c
clang -arch arm64 -std=gnu23 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o fe-connect.o fe-connect.c
clang -arch arm64 -std=gnu23 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o fe-exec.o fe-exec.c
clang -arch arm64 -std=gnu23 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o fe-misc.o fe-misc.c
In file included from fe-auth.c:23:
In file included from ./postgres_fe.h:25:
./c.h:199:14: error: redeclaration of C++ built-in type 'bool'
In file included from   199 | typedfe-connect.c:16:
In file included from ./postgres_fe.h:25:
./c.h:199ef char bool;
      |              ^
:14: error: redeclaration of C++ built-in type 'bool'
  199 | typedef char bool;
      |              ^
In file included from fe-exec.c:15:
In file included from ./postgres_fe.h:25:
./c.h:199:14: error: redeclaration of C++ built-in type 'bool'
  199 | typedef char bool;
      |              ^
clang -arch arm64 -std=gnu23 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o fe-lobj.o fe-lobj.c
1 error generated.
1 error generated.
make[1]: *** [fe-auth.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [fe-exec.o] Error 1
1 error generated.
make[1]: *** [fe-connect.o] Error 1
In file included from fe-misc.c:31:
In file included from ./postgres_fe.h:25:
./c.h:199:14: error: redeclaration of C++ built-in type 'bool'
  199 | typedef char bool;
      |              ^
1 error generated.
make[1]: *** [fe-misc.o] Error 1
In file included from fe-lobj.c:25:
In file included from ./postgres_fe.h:25:
./c.h:199:14: error: redeclaration of C++ built-in type 'bool'
  199 | typedef char bool;
      |              ^
1 error generated.
make[1]: *** [fe-lobj.o] Error 1
make: *** [libpq/libpq.5.dylib] Error 2
ERROR: compilation failed for package ‘RPostgreSQL’
* removing ‘/Volumes/Builds/packages/sonoma-arm64/results/4.6/RPostgreSQL.Rcheck/RPostgreSQL’