My Mac was recently upgraded to 13.1. To try and resolve failing application
tests I uninstalled DBD::Pg and postgresql (including removing old files),
reinstalled postgresql@12, and am now getting an error trying to reinstall
DBD::Pg with cpanm underl plenv at perl version 5.34.1. Here is where the cpan
log shows things starting to go wrong.
mv Pg.xsc Pg.c
cc -c -I/usr/local/opt/postgresql@12/include
-I/Users/squinlan/.plenv/versions/5.34.1/lib/perl5/site_perl/5.34.1/darwin-2level/auto/DBI
-fno-common -DPERL_DARWIN -mmacosx-version-min=10.15 -fno-strict-aliasing
-pipe -fstack-protector-strong -I/usr/local/include -DPERL_USE_SAFE_PUTENV
-DPGLIBVERSION=120013 -DPGDEFPORT=5432 -DHAS64BITLO
-Wno-error=implicit-function-declaration -O3 -DVERSION=\"3.16.0\"
-DXS_VERSION=\"3.16.0\"
"-I/Users/squinlan/.plenv/versions/5.34.1/lib/perl5/5.34.1/darwin-2level/CORE"
Pg.c
In file included from Pg.xs:14:
In file included from ./Pg.h:58:
In file included from
/Users/squinlan/.plenv/versions/5.34.1/lib/perl5/site_perl/5.34.1/darwin-2level/auto/DBI/DBIXS.h:23:
In file included from
/Users/squinlan/.plenv/versions/5.34.1/lib/perl5/5.34.1/darwin-2level/CORE/perl.h:4085:
In file included from
/Users/squinlan/.plenv/versions/5.34.1/lib/perl5/5.34.1/darwin-2level/CORE/hv.h:659:
In file included from
/Users/squinlan/.plenv/versions/5.34.1/lib/perl5/5.34.1/darwin-2level/CORE/hv_func.h:34:
In file included from
/Users/squinlan/.plenv/versions/5.34.1/lib/perl5/5.34.1/darwin-2level/CORE/sbox32_hash.h:4:
/Users/squinlan/.plenv/versions/5.34.1/lib/perl5/5.34.1/darwin-2level/CORE/zaphod32_hash.h:150:5:
warning: '(' and '{' tokens introducing statement expression appear in
different macro expansion contexts [-Wcompound-token-split-by-macro]
ZAPHOD32_SCRAMBLE32(state[0],0x9fade23b);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/squinlan/.plenv/versions/5.34.1/lib/perl5/5.34.1/darwin-2level/CORE/zaphod32_hash.h:80:38:
note: expanded from macro 'ZAPHOD32_SCRAMBLE32'
#define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START { \
These and similar errors repeat for pages and pages before finally giving up
with:
t/00basic.t ............ ok
Please wait, creating new database (version 12.13) for testing
pg_ctl: could not start server
Examine the log output.
#
# DBI Version 1.643
# DBD::Pg Version 3.16.0
# Perl Version 5.34.1
# OS darwin
# PostgreSQL (compiled) ?
# PostgreSQL (target) ?
# PostgreSQL (reported) ?
# Default port ?
# DBI_DSN ?
# DBI_USER <not set>
# Test schema dbd_pg_testschema
# LANG C
# Adjusted: initdb
# Error was: Unix-domain socket path
"/Users/squinlan/.cpanm/work/1675180084.46433/DBD-Pg-3.16.0/dbdpg_test_database/data/socket/.s.PGSQL.5440"
is too long (maximum 103 bytes) at t/dbdpg_test_setup.pl line 608.
Bailout called. Further testing stopped: Cannot continue: connection failed
FAILED--Further testing stopped: Cannot continue: connection failed
make: *** [test_dynamic] Error 255
Command line tools are installed and are up to date. The service is running and
I can connect using psql. I am not sure if this is an incompatibility with the
Mac version / libs I currently have, or a misconfiguration of my system. If you
would like the full cpan log I can send that. Any suggestions for next steps
would be most welcome.
-Cheers,
Sean