Build failing on Mac 13.1, brew install postgresql@12: zaphod32_hash.h:150:5: warning: '(' and '{' tokens
[email protected] (Sean Quinlan) Tue, 31 Jan 2023 16:21:57 +0000
| Newsgroups | perl.dbd.pg |
|---|---|
| Message-ID | <MN2PR07MB719930BD95494DBCC929E21D9FD09@MN2PR07MB7199.namprd07.prod.outlook.com> |
--_000_MN2PR07MB719930BD95494DBCC929E21D9FD09MN2PR07MB7199namp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
My Mac was recently upgraded to 13.1. To try and resolve failing applicatio=
n tests I uninstalled DBD::Pg and postgresql (including removing old files)=
, reinstalled postgresql@12, and am now getting an error trying to reinstal=
l 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/vers=
ions/5.34.1/lib/perl5/site_perl/5.34.1/darwin-2level/auto/DBI -fno-common -=
DPERL_DARWIN -mmacosx-version-min=3D10.15 -fno-strict-aliasing -pipe -fstac=
k-protector-strong -I/usr/local/include -DPERL_USE_SAFE_PUTENV -DPGLIBVERSI=
ON=3D120013 -DPGDEFPORT=3D5432 -DHAS64BITLO -Wno-error=3Dimplicit-function-=
declaration -O3 -DVERSION=3D\"3.16.0\" -DXS_VERSION=3D\"3.16.0\" "-I/Use=
rs/squinlan/.plenv/versions/5.34.1/lib/perl5/5.34.1/darwin-2level/CORE" P=
g.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 ex=
pression appear in different macro expansion contexts [-Wcompound-token-spl=
it-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 u=
p 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/167518008=
4.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 fail=
ed
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 s=
ystem. If you would like the full cpan log I can send that. Any suggestions=
for next steps would be most welcome.
-Cheers,
Sean
--_000_MN2PR07MB719930BD95494DBCC929E21D9FD09MN2PR07MB7199namp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0">
My Mac was recently upgraded to 13.1. To try and resolve failing applicatio=
n tests I uninstalled DBD::Pg and postgresql (including removing old files)=
, reinstalled postgresql@12, and am now getting an error trying to reinstal=
l DBD::Pg with cpanm underl plenv
at perl version 5.34.1. Here is where the cpan log shows things starting t=
o go wrong.
<div><br>
</div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">mv Pg.xsc Pg.c</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">cc -c -I/usr/local/opt/postgresql@12/include -I/U=
sers/squinlan/.plenv/versions/5.34.1/lib/perl5/site_perl/5.34.1/darwin-2lev=
el/auto/DBI -fno-common -DPERL_DARWIN -mmacosx-version-min=3D10.15
-fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -=
DPERL_USE_SAFE_PUTENV -DPGLIBVERSION=3D120013 -DPGDEFPORT=3D5432 -DHAS64BIT=
LO -Wno-error=3Dimplicit-function-declaration -O3 -DVERSION=3D\"=
;3.16.0\" -DXS_VERSION=3D\"3.16.0\" "-I/Users/squ=
inlan/.plenv/versions/5.34.1/lib/perl5/5.34.1/darwin-2level/CORE"
Pg.c</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">In file included from Pg.xs:14:</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">In file included from ./Pg.h:58:</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">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:</span><=
/div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">In file included from /Users/squinlan/.plenv/versions/5=
.34.1/lib/perl5/5.34.1/darwin-2level/CORE/perl.h:4085:</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">In file included from /Users/squinlan/.plenv/versions/5=
.34.1/lib/perl5/5.34.1/darwin-2level/CORE/hv.h:659:</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">In file included from /Users/squinlan/.plenv/versions/5=
.34.1/lib/perl5/5.34.1/darwin-2level/CORE/hv_func.h:34:</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">In file included from /Users/squinlan/.plenv/versions/5=
.34.1/lib/perl5/5.34.1/darwin-2level/CORE/sbox32_hash.h:4:</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">/Users/squinlan/.plenv/versions/5.34.1/lib/perl5/5.34.1=
/darwin-2level/CORE/zaphod32_hash.h:150:5: warning: '(' and '{' tokens intr=
oducing statement expression appear in different
macro expansion contexts [-Wcompound-token-split-by-macro]</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"> ZAPHOD32_SCRAMBLE32(state[0],0x9fade23b);=
</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<=
/span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">/Users/squinlan/.plenv/versions/5.34.1/lib/perl5/5.34.1=
/darwin-2level/CORE/zaphod32_hash.h:80:38: note: expanded from macro 'ZAPHO=
D32_SCRAMBLE32'</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">#define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START {  =
;\</span></div>
<div class=3D"ContentPasted0 elementToProof"><br>
</div>
<div><br class=3D"ContentPasted0">
</div>
<div class=3D"ContentPasted0">These and similar errors repeat for pages and=
pages before finally giving up with:</div>
<div class=3D"ContentPasted0 elementToProof"><br>
</div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">t/00basic.t ............ ok</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">Please wait, creating new database (version 12.13) for =
testing</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">pg_ctl: could not start server</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">Examine the log output.</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">#</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"># DBI =
Version 1.643</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"># DBD::Pg &nb=
sp; Version 3.16.0</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"># Perl =
Version 5.34.1</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"># OS &=
nbsp; darwin</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"># PostgreSQL (compiled) ?</span></=
div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"># PostgreSQL (target) ?</sp=
an></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"># PostgreSQL (reported) ?</span></=
div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"># Default port  =
; ?</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"># DBI_DSN &nb=
sp; ?</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"># DBI_USER &n=
bsp; <not set></span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"># Test schema =
dbd_pg_testschema</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"># LANG =
C</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"># Adjusted: &=
nbsp; initdb</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;"># Error was: Unix-domain socket path "/Users/squin=
lan/.cpanm/work/1675180084.46433/DBD-Pg-3.16.0/dbdpg_test_database/data/soc=
ket/.s.PGSQL.5440" is too long (maximum 103 bytes)
at t/dbdpg_test_setup.pl line 608.</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">Bailout called. Further testing stopped: Ca=
nnot continue: connection failed</span></div>
<div class=3D"ContentPasted0"><span style=3D"font-family: "Courier New=
", monospace;">FAILED--Further testing stopped: Cannot continue: conne=
ction failed</span></div>
<div class=3D"ContentPasted0 elementToProof"><span style=3D"font-family: &q=
uot;Courier New", monospace;">make: *** [test_dynamic] Error 255</span=
></div>
<div><br class=3D"ContentPasted0">
</div>
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 s=
ystem. If you would like the full
cpan log I can send that. Any suggestions for next steps would be most wel=
come.<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0">
-Cheers,</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class=
=3D"elementToProof ContentPasted0">
Sean</div>
</body>
</html>
--_000_MN2PR07MB719930BD95494DBCC929E21D9FD09MN2PR07MB7199namp_--