Opened 4 years ago
Closed 4 years ago
#62279 closed defect (fixed)
p11-kit @ 0.23.22_0: error: use of undeclared identifier 'SIZE_MAX'
Reported by: | letaage | Owned by: | lbschenkel (Leonardo Brondani Schenkel) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | mountainlion | Cc: | |
Port: | p11-kit |
Description
Trying to update various ports, need to update p11-kit and it is failing, tried cleaning and reinstalling but without any luck:
slim:~ tom$ sudo port clean --all p11-kit ---> Cleaning p11-kit slim:~ tom$ sudo port upgrade p11-kit ---> Computing dependencies for p11-kit ---> Fetching distfiles for p11-kit ---> Attempting to fetch p11-kit-0.23.22.tar.xz from http://aarnet.au.distfiles.macports.org/pub/macports/distfiles/p11-kit ---> Verifying checksums for p11-kit ---> Extracting p11-kit ---> Configuring p11-kit ---> Building p11-kit Error: Failed to build p11-kit: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_security_p11-kit/p11-kit/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. slim:~ tom$
I am running OS X 10.8.5.
From the log file it looks like there is an undeclared identifier in p11-kit/lists.c
:info:build p11-kit/lists.c:67:7: error: use of undeclared identifier 'SIZE_MAX' :info:build if ((SIZE_MAX - 1) / 3 < n_data) :info:build ^ :info:build 1 error generated.
Log file attached.
Attachments (1)
Change History (3)
Changed 4 years ago by letaage
comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | lbschenkel@… removed |
---|---|
Keywords: | mountainlion added; Mountainlion removed |
Owner: | set to lbschenkel |
Status: | new → assigned |
Summary: | p11-kit @ 0.23.22_0 : Failed to build p11-kit: command execution failed → p11-kit @ 0.23.22_0: error: use of undeclared identifier 'SIZE_MAX' |
SIZE_MAX
is defined in <stdint.h>
. Perhaps they forgot to #include
it. I don't see it in lists.c.
I do see in ChangeLog that they've fixed this problem twice before.
I see they already fixed it upstream, so we just need to add this patch:
https://github.com/p11-glue/p11-kit/commit/507c394cfcf4edffc5e4450c5d737e545c26b857
comment:2 Changed 4 years ago by lbschenkel (Leonardo Brondani Schenkel)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
p11-kit build failure log