Bug 52500 - EOVERFLOW undefined & make install error with Mingw/MSYS for p11-kit-0.13
Summary: EOVERFLOW undefined & make install error with Mingw/MSYS for p11-kit-0.13
Status: RESOLVED DUPLICATE of bug 44740
Alias: None
Product: p11-glue
Classification: Unclassified
Component: p11-kit (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Windows (All)
: medium blocker
Assignee: Stef Walter
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-25 19:18 UTC by steve
Modified: 2012-07-26 10:25 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description steve 2012-07-25 19:18:56 UTC
Three small code changes were needed to allow successful compilation and installation under Windows 7/MSYS/Mingw:

p11-kit-0.13\p11-kit\pin.c
change line 476 from
error = EOVERFLOW 
                 to
error = EFBIG

p11-kit-0.13\tests\pin-test.c
change line 273 from
CuAssertIntEquals (tc, EOVERFLOW, error);
                                        to
CuAssertIntEquals (tc, EFBIG, error);

EOVERFLOW does not exist in Mingw errno.h, google-fu indicated EFBIG was a suitable substitution used elsewhere.  Suggest an IFDEF workaround for these two.

make install bombs out with this unix-specific line of code (line 976) 
in p11-kit\Makefile:

$(LN_S) -f `readlink $(DESTDIR)$(libdir)/libp11-kit.so` $(DESTDIR)$(libdir)/p11-kit-proxy.so

I commented out this line and the rest of the install completed.  This appears to be hardcoded to the unix readlink utility and the unix .so file extension, which should be amended.
Comment 1 Stef Walter 2012-07-26 10:25:07 UTC
I think this is solved by the patches attached to bug #44740. Do those patches fix the issue for you?

*** This bug has been marked as a duplicate of bug 44740 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.