Bug 1204008

Summary: Sqlite3 library required even after disable-tiering is given during configure
Product: [Community] GlusterFS Reporter: Meghana <mmadhusu>
Component: unclassifiedAssignee: Joseph Elwin Fernandes <josferna>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: mainlineCC: amukherj, bugs, gluster-bugs, ndevos, sankarshan, skoduri, vagarwal
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-25 08:13:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Meghana 2015-03-20 07:10:22 UTC
Description of problem: Sqlite is a dependency even when
disable-tiering is used during configure


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


How reproducible:
Always


Steps to Reproduce:
1. Clone the recent sources of GlusterFS
2../configure --disable-tiering
3. make fails with errors

Actual results:
Making install in src
  CC     changetimerecorder.lo
In file included from ../../../../libglusterfs/src/gfdb/gfdb_data_store.h:27,
                 from ctr-helper.h:30,
                 from changetimerecorder.c:13:
../../../../libglusterfs/src/gfdb/gfdb_sqlite3.h:20:21: error: sqlite3.h: No such file or directory
In file included from ../../../../libglusterfs/src/gfdb/gfdb_data_store.h:27,
                 from ctr-helper.h:30,
                 from changetimerecorder.c:13:
../../../../libglusterfs/src/gfdb/gfdb_sqlite3.h:125: error: expected specifier-qualifier-list before ‘sqlite3’



Expected results:
If tiering is disabled, CTR shouldn't be compiled? Please correct me if
I am wrong


Additional info:

Comment 1 Atin Mukherjee 2015-03-20 07:25:00 UTC
I've seen the same behaviour. I had explicitly install sqlite-devel package to proceed with the compilation even if --disable-tiering option is passed in configure.

Comment 2 Niels de Vos 2015-03-20 15:47:32 UTC
http://review.gluster.org/9957 has been posted and should fix this.

*** This bug has been marked as a duplicate of bug 1194753 ***

Comment 3 Soumya Koduri 2015-03-25 06:41:07 UTC
Re-opening this bug as I still this issue but in different path though -

$./configure --disable-tiering
$make
..........
..............
Making all in src
  CC     dht-layout.lo
  CC     dht-helper.lo
  CC     dht-linkfile.lo
  CC     dht-rebalance.lo
In file included from ../../../../libglusterfs/src/gfdb/gfdb_data_store.h:27,
                 from tier.h:37,
                 from dht-rebalance.c:22:
../../../../libglusterfs/src/gfdb/gfdb_sqlite3.h:20:21: error: sqlite3.h: No such file or directory
In file included from ../../../../libglusterfs/src/gfdb/gfdb_data_store.h:27,
                 from tier.h:37,
                 from dht-rebalance.c:22:
../../../../libglusterfs/src/gfdb/gfdb_sqlite3.h:125: error: expected specifier-qualifier-list before ‘sqlite3’
make[5]: *** [dht-rebalance.lo] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
[root@kvm5 glusterfs_lease]#

Comment 4 Joseph Elwin Fernandes 2015-03-25 06:48:16 UTC
Patch up for review : 
http://review.gluster.org/#/c/9973/2

Related bug : bug 1204604

Comment 5 Niels de Vos 2015-03-25 08:13:57 UTC

*** This bug has been marked as a duplicate of bug 1204604 ***