[Gluster-users] Gluster Compilation error: undefined reference to `yylex'

Atin Mukherjee atin.mukherjee83 at gmail.com
Fri Apr 29 16:10:01 UTC 2016


Have you run ./autogen.sh && ./configure prior to make?

-Atin
Sent from one plus one
On 29-Apr-2016 9:38 PM, "Rob Syme" <rob.syme at gmail.com> wrote:

> Hi all
>
> When compiling Gluster, make fails with:
> ...
> Making all in src
>   CC       glusterfsd-mgmt.o
>   CC       glusterfsd.o
>   CCLD     glusterfsd
> /foo/bar/lib/libfl.so: undefined reference to `yylex'
> collect2: error: ld returned 1 exit status
> Makefile:509: recipe for target 'glusterfsd' failed
> make[3]: *** [glusterfsd] Error 1
> Makefile:456: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> Makefile:588: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> Makefile:487: recipe for target 'all' failed
> make: *** [all] Error 2
>
> Even though the error is coming from flex, It seems that gluster should
> supply the yylex function by auto-generated code that is the result of
> calling lex on a '.l' file (
> https://www.mail-archive.com/tools-linking@mail.opensolaris.org/msg00601.html
> )
>
> 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.
>
> -r
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20160429/1c3c8bbd/attachment.html>


More information about the Gluster-users mailing list