#64842 closed defect (fixed)
xar @1.8.0.483_3: error: use of undeclared identifier 'XAR_CKSUM_SHA256', 'XAR_CKSUM_SHA512'
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | Schamschula (Marius Schamschula) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | tiger leopard snowleopard lion mountainlion mavericks | Cc: | |
Port: | xar |
Description
xar @1.8.0.483_3 fails on 10.9 and earlier:
src/xar.c:722:8: error: use of undeclared identifier 'XAR_CKSUM_SHA256' case XAR_CKSUM_SHA256: printf("SHA256\n"); ^ src/xar.c:724:8: error: use of undeclared identifier 'XAR_CKSUM_SHA512' case XAR_CKSUM_SHA512: printf("SHA512\n"); ^
Change History (7)
comment:1 Changed 3 years ago by Schamschula (Marius Schamschula)
comment:2 Changed 3 years ago by jmroot (Joshua Root)
I think what is happening is that an external xar.h is being included, i.e. one from the SDK or MacPorts prefix, not the one in the worksrcdir. The one in the SDK only has those defines on the newer OS versions. This theory is supported by the fact that if I have the xar port already installed on the older OSes, the build succeeds.
comment:3 follow-up: 5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Weird... It doesn't look like the -I
flags are in the wrong order:
/usr/bin/clang -pipe -I/opt/local/libexec/openssl3/include -Os -std=c99 -arch x86_64 -Iinclude -Iinclude -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -I/opt/local/include/libxml2 -c src/xar.c -o src/xar.o
comment:4 Changed 3 years ago by jmroot (Joshua Root)
comment:5 Changed 3 years ago by jmroot (Joshua Root)
Replying to ryandesign:
Weird... It doesn't look like the
-I
flags are in the wrong order:
No, but none of the directories given with -I contains a xar/xar.h
.
comment:6 Changed 3 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:7 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Yup, you win the prize. You found it first! :)
Note: See
TracTickets for help on using
tickets.
This error is result of eliminating other issues in #64837
Unfortunately, older OS versions seem to ignore
#include "xar.h"
inxar.c
and thus don't have these#define
statements.