[Gluster-users] Gluster Compilation error: undefined reference to `yylex'
Kaleb S. KEITHLEY
kkeithle at redhat.com
Wed May 4 18:03:56 UTC 2016
On 05/01/2016 11:18 PM, Kaushal M wrote:
>> I'm using: flex v2.6.0, bison v3.0.4, pkg-config v0.29, liburcu v0.9.2,
>> python v2.7.0, gcc v4.9.3 on linux (full dependency graph here:
>> http://i.imgur.com/xdn8trW.png). Any pointers are appreciated.
> Newer versions of flex (I don't know from which version) ship a .so,
> which automake tries to link with whatever it is building by adding a
> '-lfl' linker flag.
> This causes the build failure. To avoid this, pass an empty 'LEXLIB='
> option to the configure script, as in
> `./configure <other-options> LEXLIB=`
On Fedora, RHEL, CentOS, at least, libfl.a (no libfl.so*) comes from the
flex-devel RPM. flex-devel isn't needed to build gluster — you can
On Debian-based distributions it comes from the libfl-dev pkg.
More information about the Gluster-users