Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Compilation problems #31

Open
ghost opened this issue Jul 31, 2017 · 2 comments
Open

Compilation problems #31

ghost opened this issue Jul 31, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 31, 2017

Hi folks, I get the following:

/home/mahuser/.cargo/git/checkouts/libfontconfig-3d5e920c02c2e53f/618a529/src/fcmatch.c:284:63: error: 'PRI_CHAR_WIDTH_STRONG' undeclared here (not in a function)
 #define FC_OBJECT(NAME, Type, Cmp) { FC_##NAME##_OBJECT, Cmp, PRI_##NAME##_STRONG, PRI_##NAME##_WEAK },
                                                               ^
/home/mahuser/.cargo/git/checkouts/libfontconfig-3d5e920c02c2e53f/618a529/src/fcobjs.h:54:1: note: in expansion of macro 'FC_OBJECT'
 FC_OBJECT (CHAR_WIDTH,  FcTypeInteger, NULL)
 ^
/home/mahuser/.cargo/git/checkouts/libfontconfig-3d5e920c02c2e53f/618a529/src/fcmatch.c:284:84: error: 'PRI_CHAR_WIDTH_WEAK' undeclared here (not in a function)
 #define FC_OBJECT(NAME, Type, Cmp) { FC_##NAME##_OBJECT, Cmp, PRI_##NAME##_STRONG, PRI_##NAME##_WEAK },
                                                                                    ^
/home/mahuser/.cargo/git/checkouts/libfontconfig-3d5e920c02c2e53f/618a529/src/fcobjs.h:54:1: note: in expansion of macro 'FC_OBJECT'
 FC_OBJECT (CHAR_WIDTH,  FcTypeInteger, NULL)
 ^
make[5]: *** [Makefile:610: fcmatch.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [Makefile:475: all] Error 2
make[3]: *** [Makefile:562: all-recursive] Error 1
make[2]: *** [Makefile:445: all] Error 2
make[1]: *** [makefile.cargo:42: /mnt/data/twm/ala/alacritty/target/release/build/servo-fontconfig-sys-7839a72d752519f5/out/libfontconfig.a] Error 2
thread 'main' panicked at 'assertion failed: Command::new("make").args(&["-R", "-f",
                            "makefile.cargo"]).status().unwrap().success()', /home/mahuser/.cargo/git/checkouts/libfontconfig-3d5e920c02c2e53f/618a529/build.rs:17
note: Run with `RUST_BACKTRACE=1` for a backtrace.

make: *** [Makefile:25: alacritty] Error 101```

when running make binary on alacritty (https://github.com/jwilm/alacritty/commit/702df40da4ea8585ddfa129cd240c54bab6e42d7) under NixOS in the environment provided by:
nix-shell -p freetype stdenv pkgconfig libxml2 expat gperf at whatever the current unstable package branch is at.
@ghost
Copy link
Author

ghost commented Jul 31, 2017

By the suggestion of @mbrubeck I tried to apply the patch from https://github.com/voidlinux/void-packages/issues/5693 which appears to have worked except for:
fcobjshash.gperf:47:85: error: 'FC_CHAR_WIDTH_OBJECT' undeclared (first use in this function)

@da-x
Copy link
Contributor

da-x commented Sep 8, 2017

I have submitted a pull request #33 to fix this issue.

bors-servo pushed a commit that referenced this issue Sep 21, 2017
Fix a building issue with newer glibc

See #31

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/libfontconfig/33)
<!-- Reviewable:end -->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant