<p dir="ltr">Have you run ./autogen.sh &amp;&amp; ./configure prior to make?</p>
<p dir="ltr">-Atin<br>
Sent from one plus one</p>
<div class="gmail_quote">On 29-Apr-2016 9:38 PM, &quot;Rob Syme&quot; &lt;<a href="mailto:rob.syme@gmail.com">rob.syme@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all<div><br></div><div>When compiling Gluster, make fails with:</div><div><span style="line-height:1.5">...</span><br></div><div><div>Making all in src</div><div>  CC       glusterfsd-mgmt.o</div><div>  CC       glusterfsd.o</div><div>  CCLD     glusterfsd</div><div>/foo/bar/lib/libfl.so: undefined reference to `yylex&#39;</div><div>collect2: error: ld returned 1 exit status</div><div>Makefile:509: recipe for target &#39;glusterfsd&#39; failed</div><div>make[3]: *** [glusterfsd] Error 1</div><div>Makefile:456: recipe for target &#39;all-recursive&#39; failed</div><div>make[2]: *** [all-recursive] Error 1</div><div>Makefile:588: recipe for target &#39;all-recursive&#39; failed</div><div>make[1]: *** [all-recursive] Error 1</div><div>Makefile:487: recipe for target &#39;all&#39; failed</div><div>make: *** [all] Error 2</div></div><div><br></div><div>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 &#39;.l&#39; file (<a href="https://www.mail-archive.com/tools-linking@mail.opensolaris.org/msg00601.html" target="_blank">https://www.mail-archive.com/tools-linking@mail.opensolaris.org/msg00601.html</a>)</div><div><br></div><div>I&#39;m using: <span style="line-height:1.5">flex v2.6.0, </span><span style="line-height:1.5">bison v3.0.4, </span><span style="line-height:1.5">pkg-config v0.29, </span><span style="line-height:1.5">liburcu v</span><span style="line-height:1.5">0.9.2, python v2.7.0, </span><span style="line-height:1.5">gcc v4.9.3 on linux (full dependency graph here: </span><a href="http://i.imgur.com/xdn8trW.png" target="_blank">http://i.imgur.com/xdn8trW.png</a><span style="line-height:1.5">). Any pointers are appreciated.</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">-r</span></div></div>
<br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div>