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

Rob Syme rob.syme at gmail.com
Fri Apr 29 10:01:05 UTC 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20160429/580fc57e/attachment.html>


More information about the Gluster-users mailing list