Bug 74606

Summary: Build of test-migration.c fails on both windows and AIX
Product: fontconfig Reporter: Dirk <tomsies>
Component: confAssignee: fontconfig-bugs
Status: RESOLVED FIXED QA Contact: Behdad Esfahbod <freedesktop>
Severity: normal    
Priority: medium CC: akira
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Fix test-migration.c for multipile target OS's
Full copy of the changed source to allow for changes after release 2.11.0

Description Dirk 2014-02-06 08:21:39 UTC
Created attachment 93510 [details]
Fix test-migration.c for multipile target OS's

test-migration.c fails to build for me under both windows (mingw) and AIX. I have seen reference to a patch for DT_DIR, and the attached patch is similar to that fix.
I get compile errors for mkdtemp() - prototype not defined to mingw or aix.
I get compile errors for setenv() - prototype not defined to mingw but exists in aix.


With the attached patch, I can compile on aix, windows and linux.

Note the base version for this diff is fontconfig-2.11.0.
Comment 1 Dirk 2014-02-06 08:29:18 UTC
Created attachment 93511 [details]
Full copy of the changed source to allow for changes after release 2.11.0
Comment 2 Akira TAGOH 2014-02-06 08:47:39 UTC
Try git first. this build has been disabled for win32 because this migration won't happens there. and DT_DIR thing is ifdef'd. so should works on even AIX.

Anyway, try git first.
Comment 3 Dirk 2014-02-06 11:39:48 UTC
100%, the git source (from "master" tree) compiles cleanly on AIX!

Thanks.

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.