Comments (10)
Are you building from git? If not, which version?
Can you attach the file 'config.log' from the build root?
Thanks.
from libxkbcommon.
So I can only assume you're using some yacc which is not bison. I just made some commits which adds support for recent byacc as well. I'm not aware of any other widely used yacc's.
Anything more than that is unlikely - either bison or byacc should be sufficient. Feel free to reopen if this is not the case.
from libxkbcommon.
Hi,
When trying to build library, I am getting similar error. I am using OS X Yosemite, and trying to port this library to MacPorts, as it is required as dependency. I attached the config.log file.
YACC src/xkbcomp/parser.c
/Users/blue/Downloads/libxkbcommon-0.5.0/src/xkbcomp/parser.y:220.5-9: syntax error, unexpected type, expecting string or identifier
make: *** [src/xkbcomp/parser.c] Error 1
As for yacc, checking the version returns:
bison (GNU Bison) 2.3
Written by Robert Corbett and Richard Stallman.
I am using the version 5.0 from http://lists.freedesktop.org/archives/wayland-devel/2014-October/017836.html
from libxkbcommon.
As @bluetech pointed out in Issue #23, Bison 2.3 is too old to compile parser.y
.
I've successfully built libxkbcommon with Bison 3.0.4 on both Mavericks and El Capitan. I installed that Bison via MacPorts :-)
from libxkbcommon.
Yeah, after getting updated version of Bison, finally it passed the yacc parsing problem. (It took some time to realize almost every tool coming default with OS X is older versions). But now I am getting complaints that
CCLD libxkbcommon.la
ld: unknown option: --version-script=./xkbcommon.map
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This also is a similar problem. So should I move completely away from OS X gcc compiler to GNU compiler. Or more generally, do I have to move completely to the core tools with MacPorts.
from libxkbcommon.
That's the issue #24 and has already been fixed with the github version.
So should I move completely away from OS X gcc compiler to GNU compiler. Or more generally, do I have to move completely to the core tools with MacPorts.
I think you don't need to do that. The problem is simply caused by passing the wrong flag --version-script
, which is unknown to clang's linker. Only dropping the flag should be fine.
from libxkbcommon.
Only dropping the flag should be fine.
@bluetech committed 257e38c to fix the issue.
from libxkbcommon.
Indeed, dropping the flag --version-script makes compiling OK. So, it is working with Bison 3.0.4; and dropping the flag from Makefile successfully compiles( I am still 5.0 version from the stable releases).
However, when using the most recent version with cloning, I am not able to auto configure the library.
$ autoconf
configure.ac:45: error: must install xorg-macros 1.16 or later before running autoconf/autogen
configure.ac:45: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
However, when I check from MacPorts, it claims that I already have the most recent version. (xorg-util-macro: 1.19). So I am guessing, the name differences between ports and libraries makes some problem, when Makefile's checking lib versions. Anyways, still 5.0 version works with dropped flag. I am planning to write a Portfile for the library, so I am still trying to get the most convenient way.
Thanks for the help :)
from libxkbcommon.
$ autoconf
Instead of invoking autoconf
directly, I guess you'll get a better result with
$ ./autogen.sh
at the top directory of the source tree.
from libxkbcommon.
Oh, it works like a charm when I use ./autogen.sh
script. Then everything is fine. Thanks again :)
from libxkbcommon.
Related Issues (20)
- Add "Caps Lock (while pressed)" option to switch keyboard layouts HOT 1
- Does libxkbcommon can support Android HOT 1
- After install, qt, slicer, cmake graphical interface can not use the keyboard, when using the keyboard input, the software will directly flash back. HOT 2
- Compose sequence terminates after pressing ISO_LEVEL5_SHIFT HOT 1
- `xkb_keysym_to_utf8()` requires output buffer size to be at least 7, but it should be 5 HOT 1
- keyboard layout change to CTRL-Shift/ALT-Shift brakes other shortcuts starting with CTRL-Shift/ALT-Shift HOT 9
- symbol map fails with recent lld (aka broken test for -Wl,--version-script) HOT 4
- Support for Arbitrary Modifiers (Accessibility Keybindings) HOT 10
- Modern Composition HOT 10
- Keymap file failed to load: us,mao,us- HOT 1
- Add support for conditional comments HOT 5
- Aliases HOT 16
- Can't input «angle quotes» into applications linked with libxkbcommon 1.5.0 running in GNOME linked with libxkbcommon 1.6.0 HOT 4
- Fatal error when $XDG_CONFIG_HOME/XCompose is a directory HOT 4
- question: how to map from xcb key press/release event state field to xkb_mod_mask_t HOT 2
- Support for pointer keys? HOT 8
- no usable option to activate horizontal number keys on Azerty keyboard HOT 2
- ! include line in rules file does not require a newline HOT 1
- LatchGroup action is not supported
- Types parser allows type definitions with garbage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libxkbcommon.