Bug 1493133 - GlusterFS failed to build while running `make`
Summary: GlusterFS failed to build while running `make`
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: build
Version: mainline
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Anoop C S
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-19 12:48 UTC by Anoop C S
Modified: 2017-12-08 17:41 UTC (History)
1 user (show)

Fixed In Version: glusterfs-3.13.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-07 05:39:03 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Anoop C S 2017-09-19 12:48:13 UTC
Description of problem:
GlusterFS failed to compile while running make on a standard openSUSE Tumbleweed installation throwing the following error:

Making all in fdl
Making all in src
 CC logdump.o
 CC recon.o
 CC fdl.lo
 CC librecon.o
 CC libfdl.o
 CCLD gf_logdump
 CCLD gf_recon
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib64/libfl.so: undefined reference to `yylex'
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:618: gf_logdump] Error 1
make[5]: *** Waiting for unfinished jobs....
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib64/libfl.so: undefined reference to `yylex'
collect2: error: ld returned 1 exit status

Version-Release number of selected component (if applicable):
master

How reproducible:
Always

Steps to Reproduce:
1. Have a basic openSUSE Tumbleweeb installation.
2. git clone GlusterFS master branch.
3. Install build dependencies and run autogen, configure and `make -j`

Actual results:
`make -j` failed

Expected results:
Make should be successful

Comment 1 Worker Ant 2017-09-19 12:49:28 UTC
REVIEW: https://review.gluster.org/18325 (libglusterfs: Fix openSUSE build error) posted (#2) for review on master by Anoop C S (anoopcs)

Comment 2 Worker Ant 2017-09-21 10:22:41 UTC
COMMIT: https://review.gluster.org/18325 committed in master by Amar Tumballi (amarts) 
------
commit db3fe245a9e8812829eae7d143e49d0bfdfef9a7
Author: Anoop C S <anoopcs>
Date:   Tue Sep 19 15:34:04 2017 +0530

    libglusterfs: Fix openSUSE build error
    
    GlusterFS failed during make on openSUSE Tumbleweed with the following
    error:
    
    Making all in fdl
    Making all in src
      CC       logdump.o
      CC       recon.o
      CC       fdl.lo
      CC       librecon.o
      CC       libfdl.o
      CCLD     gf_logdump
      CCLD     gf_recon
    /usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib64/libfl.so: undefined reference to `yylex'
    collect2: error: ld returned 1 exit status
    make[5]: *** [Makefile:618: gf_logdump] Error 1
    make[5]: *** Waiting for unfinished jobs....
    /usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib64/libfl.so: undefined reference to `yylex'
    collect2: error: ld returned 1 exit status
    
    Reading through autoconf manual[1](see AC_PROG_LEX) reveals that LEXLIB
    is automatically set to appropriate value for the system. The reference
    to LEXLIB in automake file caused the above mentioned error on openSUSE.
    In particular, we do not bother about LEXLIB hereafter.
    
    [1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Particular-Programs
    
    Change-Id: I9bfce80c9654b2e3bfb393b08c25e8ad3d79e449
    BUG: 1493133
    Signed-off-by: Anoop C S <anoopcs>

Comment 3 Shyamsundar 2017-12-08 17:41:21 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.13.0, please open a new bug report.

glusterfs-3.13.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://lists.gluster.org/pipermail/announce/2017-December/000087.html
[2] https://www.gluster.org/pipermail/gluster-users/


Note You need to log in before you can comment on or make changes to this bug.