Bug 52500

Summary: EOVERFLOW undefined & make install error with Mingw/MSYS for p11-kit-0.13
Product: p11-glue Reporter: steve <doctordos>
Component: p11-kitAssignee: Stef Walter <stefw>
Status: RESOLVED DUPLICATE QA Contact:
Severity: blocker    
Priority: medium CC: doctordos
Version: unspecified   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:

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.