Project

General

Profile

Actions

Bug #5048

closed

User story #4798: Upgrade to CFEngine 3.6 in rudder-agent

rudder-agent fails to build on RHEL 6 due to a missing lmdb.h file

Added by Matthieu CERDA over 10 years ago. Updated over 9 years ago.

Status:
Released
Priority:
1 (highest)
Assignee:
Matthieu CERDA
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

CFEngine fails to build during rudder-agent compilation due to the following errors:

02:24:58 + cd /usr/src/rudder-packages/package/SOURCES/cfengine-source
02:24:58 + make install DESTDIR=/usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.alpha1.git201406100210-1.EL.6.i386 STRIP=
02:24:58 dbm_lmdb.c:38:18: error: lmdb.h: No such file or directory
02:24:58 dbm_lmdb.c:43: error: expected specifier-qualifier-list before 'MDB_env'
02:24:58 dbm_lmdb.c:54: error: expected specifier-qualifier-list before 'MDB_txn'
02:24:58 dbm_lmdb.c:62: error: expected specifier-qualifier-list before 'MDB_cursor'
02:24:59 dbm_lmdb.c:70: error: expected declaration specifiers or '...' before 'MDB_txn'
02:24:59 dbm_lmdb.c: In function 'GetReadTransaction':
02:24:59 dbm_lmdb.c:72: error: 'DBPriv' has no member named 'txn_key'
02:24:59 dbm_lmdb.c:73: error: 'MDB_SUCCESS' undeclared (first use in this function)
02:24:59 dbm_lmdb.c:73: error: (Each undeclared identifier is reported only once
02:24:59 dbm_lmdb.c:73: error: for each function it appears in.)
02:24:59 dbm_lmdb.c:78: error: 'DBPriv' has no member named 'txn_key'
02:24:59 dbm_lmdb.c:81: error: 'DBTxn' has no member named 'txn'
02:25:00 dbm_lmdb.c:83: error: implicit declaration of function 'mdb_txn_begin'
02:25:00 dbm_lmdb.c:83: error: 'DBPriv' has no member named 'env'
02:25:00 dbm_lmdb.c:83: error: 'MDB_RDONLY' undeclared (first use in this function)
02:25:00 dbm_lmdb.c:83: error: 'DBTxn' has no member named 'txn'
02:25:00 dbm_lmdb.c:86: error: implicit declaration of function 'mdb_strerror'
02:25:00 dbm_lmdb.c:86: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:00 dbm_lmdb.c:90: error: 'txn' undeclared (first use in this function)
02:25:00 dbm_lmdb.c:90: error: 'DBTxn' has no member named 'txn'
02:25:00 dbm_lmdb.c: At top level:
02:25:00 dbm_lmdb.c:95: error: expected declaration specifiers or '...' before 'MDB_txn'
02:25:00 dbm_lmdb.c: In function 'GetWriteTransaction':
02:25:00 dbm_lmdb.c:97: error: 'DBPriv' has no member named 'txn_key'
02:25:00 dbm_lmdb.c:98: error: 'MDB_SUCCESS' undeclared (first use in this function)
02:25:00 dbm_lmdb.c:103: error: 'DBPriv' has no member named 'txn_key'
02:25:01 dbm_lmdb.c:106: error: 'DBTxn' has no member named 'txn'
02:25:01 dbm_lmdb.c:106: error: 'DBTxn' has no member named 'rw_txn'
02:25:01 dbm_lmdb.c:108: error: implicit declaration of function 'mdb_txn_commit'
02:25:01 dbm_lmdb.c:108: error: 'DBTxn' has no member named 'txn'
02:25:01 dbm_lmdb.c:111: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:01 dbm_lmdb.c:113: error: 'DBTxn' has no member named 'txn'
02:25:02 dbm_lmdb.c:116: error: 'DBTxn' has no member named 'txn'
02:25:02 dbm_lmdb.c:118: error: 'DBPriv' has no member named 'env'
02:25:02 dbm_lmdb.c:118: error: 'DBTxn' has no member named 'txn'
02:25:02 dbm_lmdb.c:121: error: 'DBTxn' has no member named 'rw_txn'
02:25:02 dbm_lmdb.c:125: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:03 dbm_lmdb.c:129: error: 'txn' undeclared (first use in this function)
02:25:03 dbm_lmdb.c:129: error: 'DBTxn' has no member named 'txn'
02:25:03 dbm_lmdb.c: In function 'AbortTransaction':
02:25:03 dbm_lmdb.c:136: error: 'DBPriv' has no member named 'txn_key'
02:25:03 dbm_lmdb.c:137: error: implicit declaration of function 'mdb_txn_abort'
02:25:03 dbm_lmdb.c:137: error: 'DBTxn' has no member named 'txn'
02:25:03 dbm_lmdb.c:138: error: 'DBTxn' has no member named 'txn'
02:25:04 dbm_lmdb.c:139: error: 'DBTxn' has no member named 'rw_txn'
02:25:04 dbm_lmdb.c: In function 'DestroyTransaction':
02:25:04 dbm_lmdb.c:146: error: 'DBTxn' has no member named 'txn'
02:25:04 dbm_lmdb.c:149: error: 'DBTxn' has no member named 'txn'
02:25:04 dbm_lmdb.c: In function 'DBPrivOpenDB':
02:25:04 dbm_lmdb.c:169: error: 'MDB_txn' undeclared (first use in this function)
02:25:05 dbm_lmdb.c:169: error: 'txn' undeclared (first use in this function)
02:25:05 dbm_lmdb.c:172: error: 'DBPriv' has no member named 'txn_key'
02:25:05 dbm_lmdb.c:181: error: implicit declaration of function 'mdb_env_create'
02:25:05 dbm_lmdb.c:181: error: 'DBPriv' has no member named 'env'
02:25:05 dbm_lmdb.c:185: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
02:25:05 dbm_lmdb.c:188: error: implicit declaration of function 'mdb_env_set_mapsize'
02:25:05 dbm_lmdb.c:188: error: 'DBPriv' has no member named 'env'
02:25:05 dbm_lmdb.c:192: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
02:25:06 dbm_lmdb.c:198: error: implicit declaration of function 'mdb_env_set_maxreaders'
02:25:06 dbm_lmdb.c:198: error: 'DBPriv' has no member named 'env'
02:25:06 dbm_lmdb.c:202: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
02:25:06 dbm_lmdb.c:208: error: implicit declaration of function 'mdb_env_open'
02:25:07 dbm_lmdb.c:208: error: 'DBPriv' has no member named 'env'
02:25:07 dbm_lmdb.c:208: error: 'MDB_NOSUBDIR' undeclared (first use in this function)
02:25:07 dbm_lmdb.c:212: error: 'DBPriv' has no member named 'env'
02:25:07 dbm_lmdb.c:212: error: 'MDB_NOSYNC' undeclared (first use in this function)
02:25:07 dbm_lmdb.c:217: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
02:25:07 dbm_lmdb.c:220: error: 'DBPriv' has no member named 'env'
02:25:07 dbm_lmdb.c:220: error: 'MDB_RDONLY' undeclared (first use in this function)
02:25:07 dbm_lmdb.c:224: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
02:25:08 dbm_lmdb.c:227: error: implicit declaration of function 'mdb_open'
02:25:08 dbm_lmdb.c:227: error: 'DBPriv' has no member named 'dbi'
02:25:08 dbm_lmdb.c:231: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
02:25:09 dbm_lmdb.c:239: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
02:25:09 dbm_lmdb.c:246: error: 'DBPriv' has no member named 'env'
02:25:09 dbm_lmdb.c:248: error: implicit declaration of function 'mdb_env_close'
02:25:09 dbm_lmdb.c:248: error: 'DBPriv' has no member named 'env'
02:25:09 dbm_lmdb.c:250: error: 'DBPriv' has no member named 'txn_key'
02:25:09 dbm_lmdb.c:252: error: 'MDB_INVALID' undeclared (first use in this function)
02:25:09 dbm_lmdb.c: In function 'DBPrivCloseDB':
02:25:10 dbm_lmdb.c:261: error: 'DBPriv' has no member named 'env'
02:25:10 dbm_lmdb.c:263: error: 'DBPriv' has no member named 'env'
02:25:10 dbm_lmdb.c:265: error: 'DBPriv' has no member named 'txn_key'
02:25:10 dbm_lmdb.c: In function 'DBPrivCommit':
02:25:10 dbm_lmdb.c:271: error: 'DBPriv' has no member named 'txn_key'
02:25:10 dbm_lmdb.c:272: error: 'DBTxn' has no member named 'txn'
02:25:11 dbm_lmdb.c:274: error: 'DBTxn' has no member named 'txn'
02:25:11 dbm_lmdb.c:275: error: 'MDB_SUCCESS' undeclared (first use in this function)
02:25:11 dbm_lmdb.c:277: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:11 dbm_lmdb.c:280: error: 'DBPriv' has no member named 'txn_key'
02:25:11 dbm_lmdb.c: In function 'DBPrivHasKey':
02:25:11 dbm_lmdb.c:286: error: 'MDB_val' undeclared (first use in this function)
02:25:12 dbm_lmdb.c:286: error: expected ';' before 'mkey'
02:25:12 dbm_lmdb.c:287: error: 'MDB_txn' undeclared (first use in this function)
02:25:12 make[1]: Leaving directory `/usr/src/rudder-packages/package/SOURCES/cfengine-source'
02:25:12 
02:25:12 
02:25:13 RPM build errors:
02:25:13 dbm_lmdb.c:287: error: 'txn' undeclared (first use in this function)
02:25:13 dbm_lmdb.c:291: error: too many arguments to function 'GetReadTransaction'
02:25:13 dbm_lmdb.c:292: error: 'MDB_SUCCESS' undeclared (first use in this function)
02:25:13 dbm_lmdb.c:294: error: 'mkey' undeclared (first use in this function)
02:25:13 dbm_lmdb.c:296: error: implicit declaration of function 'mdb_get'
02:25:14 dbm_lmdb.c:296: error: 'DBPriv' has no member named 'dbi'
02:25:14 dbm_lmdb.c:296: error: 'data' undeclared (first use in this function)
02:25:14 dbm_lmdb.c:297: error: 'MDB_NOTFOUND' undeclared (first use in this function)
02:25:15 dbm_lmdb.c:299: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:16 dbm_lmdb.c: In function 'DBPrivGetValueSize':
02:25:16 dbm_lmdb.c:309: error: 'MDB_val' undeclared (first use in this function)
02:25:17 dbm_lmdb.c:309: error: expected ';' before 'mkey'
02:25:17 dbm_lmdb.c:310: error: 'MDB_txn' undeclared (first use in this function)
02:25:17 dbm_lmdb.c:310: error: 'txn' undeclared (first use in this function)
02:25:17 dbm_lmdb.c:313: error: 'data' undeclared (first use in this function)
02:25:17 dbm_lmdb.c:315: error: too many arguments to function 'GetReadTransaction'
02:25:18 dbm_lmdb.c:316: error: 'MDB_SUCCESS' undeclared (first use in this function)
02:25:18 dbm_lmdb.c:318: error: 'mkey' undeclared (first use in this function)
02:25:18 dbm_lmdb.c:320: error: 'DBPriv' has no member named 'dbi'
02:25:18 dbm_lmdb.c:321: error: 'MDB_NOTFOUND' undeclared (first use in this function)
02:25:18 dbm_lmdb.c:323: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:18 dbm_lmdb.c: In function 'DBPrivRead':
02:25:18 dbm_lmdb.c:333: error: 'MDB_val' undeclared (first use in this function)
02:25:19 dbm_lmdb.c:333: error: expected ';' before 'mkey'
02:25:19 dbm_lmdb.c:334: error: 'MDB_txn' undeclared (first use in this function)
02:25:19 dbm_lmdb.c:334: error: 'txn' undeclared (first use in this function)
02:25:19 dbm_lmdb.c:338: error: too many arguments to function 'GetReadTransaction'
02:25:19 dbm_lmdb.c:339: error: 'MDB_SUCCESS' undeclared (first use in this function)
02:25:20 dbm_lmdb.c:341: error: 'mkey' undeclared (first use in this function)
02:25:20 dbm_lmdb.c:343: error: 'DBPriv' has no member named 'dbi'
02:25:20 dbm_lmdb.c:343: error: 'data' undeclared (first use in this function)
02:25:20 dbm_lmdb.c:353: error: 'MDB_NOTFOUND' undeclared (first use in this function)
02:25:20 dbm_lmdb.c:355: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:21 dbm_lmdb.c: In function 'DBPrivWrite':
02:25:21 dbm_lmdb.c:364: error: 'MDB_val' undeclared (first use in this function)
02:25:21 dbm_lmdb.c:364: error: expected ';' before 'mkey'
02:25:21 dbm_lmdb.c:365: error: 'MDB_txn' undeclared (first use in this function)
02:25:21 dbm_lmdb.c:365: error: 'txn' undeclared (first use in this function)
02:25:21 dbm_lmdb.c:366: error: too many arguments to function 'GetWriteTransaction'
02:25:21 dbm_lmdb.c:367: error: 'MDB_SUCCESS' undeclared (first use in this function)
02:25:22 dbm_lmdb.c:369: error: 'mkey' undeclared (first use in this function)
02:25:22 dbm_lmdb.c:371: error: 'data' undeclared (first use in this function)
02:25:22 dbm_lmdb.c:373: error: implicit declaration of function 'mdb_put'
02:25:22 dbm_lmdb.c:373: error: 'DBPriv' has no member named 'dbi'
02:25:22 dbm_lmdb.c:376: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:22 dbm_lmdb.c: In function 'DBPrivDelete':
02:25:22 dbm_lmdb.c:385: error: 'MDB_val' undeclared (first use in this function)
02:25:23 dbm_lmdb.c:385: error: expected ';' before 'mkey'
02:25:23 dbm_lmdb.c:386: error: 'MDB_txn' undeclared (first use in this function)
02:25:23 dbm_lmdb.c:386: error: 'txn' undeclared (first use in this function)
02:25:23 dbm_lmdb.c:387: error: too many arguments to function 'GetWriteTransaction'
02:25:23 dbm_lmdb.c:388: error: 'MDB_SUCCESS' undeclared (first use in this function)
02:25:23 dbm_lmdb.c:390: error: 'mkey' undeclared (first use in this function)
02:25:23 dbm_lmdb.c:392: error: implicit declaration of function 'mdb_del'
02:25:24 dbm_lmdb.c:392: error: 'DBPriv' has no member named 'dbi'
02:25:24 dbm_lmdb.c:393: error: 'MDB_NOTFOUND' undeclared (first use in this function)
02:25:24 dbm_lmdb.c:395: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:25 dbm_lmdb.c:399: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:25 dbm_lmdb.c: In function 'DBPrivOpenCursor':
02:25:25 dbm_lmdb.c:409: error: 'MDB_txn' undeclared (first use in this function)
02:25:25 dbm_lmdb.c:409: error: 'txn' undeclared (first use in this function)
02:25:26 dbm_lmdb.c:411: error: 'MDB_cursor' undeclared (first use in this function)
02:25:26 dbm_lmdb.c:411: error: 'mc' undeclared (first use in this function)
02:25:26 dbm_lmdb.c:413: error: too many arguments to function 'GetWriteTransaction'
02:25:26 dbm_lmdb.c:414: error: 'MDB_SUCCESS' undeclared (first use in this function)
02:25:26 dbm_lmdb.c:416: error: implicit declaration of function 'mdb_cursor_open'
02:25:27 dbm_lmdb.c:416: error: 'DBPriv' has no member named 'dbi'
02:25:27 dbm_lmdb.c:421: error: 'DBCursorPriv' has no member named 'mc'
02:25:27 dbm_lmdb.c:425: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:27 dbm_lmdb.c: In function 'DBPrivAdvanceCursor':
02:25:28 dbm_lmdb.c:437: error: 'MDB_val' undeclared (first use in this function)
02:25:28 dbm_lmdb.c:437: error: expected ';' before 'mkey'
02:25:28 dbm_lmdb.c:441: error: 'DBCursorPriv' has no member named 'curkv'
02:25:28 dbm_lmdb.c:443: error: 'DBCursorPriv' has no member named 'curkv'
02:25:28 dbm_lmdb.c:444: error: 'DBCursorPriv' has no member named 'curkv'
02:25:28 dbm_lmdb.c:446: error: implicit declaration of function 'mdb_cursor_get'
02:25:29 dbm_lmdb.c:446: error: 'DBCursorPriv' has no member named 'mc'
02:25:29 dbm_lmdb.c:446: error: 'mkey' undeclared (first use in this function)
02:25:29 dbm_lmdb.c:446: error: 'data' undeclared (first use in this function)
02:25:29 dbm_lmdb.c:446: error: 'MDB_NEXT' undeclared (first use in this function)
02:25:29 dbm_lmdb.c:446: error: 'MDB_SUCCESS' undeclared (first use in this function)
02:25:30 dbm_lmdb.c:448: error: 'DBCursorPriv' has no member named 'curkv'
02:25:30 dbm_lmdb.c:449: error: 'DBCursorPriv' has no member named 'curkv'
02:25:30 dbm_lmdb.c:450: error: 'DBCursorPriv' has no member named 'curkv'
02:25:30 dbm_lmdb.c:453: error: 'DBCursorPriv' has no member named 'curkv'
02:25:30 dbm_lmdb.c:454: error: 'DBCursorPriv' has no member named 'curkv'
02:25:30 dbm_lmdb.c:457: error: 'MDB_NOTFOUND' undeclared (first use in this function)
02:25:30 dbm_lmdb.c:459: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:31 dbm_lmdb.c:461: error: 'DBCursorPriv' has no member named 'pending_delete'
02:25:31 dbm_lmdb.c:465: error: 'DBCursorPriv' has no member named 'mc'
02:25:31 dbm_lmdb.c:465: error: 'DBCursorPriv' has no member named 'delkey'
02:25:31 dbm_lmdb.c:465: error: 'MDB_SET' undeclared (first use in this function)
02:25:31 dbm_lmdb.c:468: error: implicit declaration of function 'mdb_cursor_del'
02:25:32 dbm_lmdb.c:468: error: 'DBCursorPriv' has no member named 'mc'
02:25:32 dbm_lmdb.c:474: error: 'DBCursorPriv' has no member named 'mc'
02:25:32 dbm_lmdb.c:476: error: 'DBCursorPriv' has no member named 'pending_delete'
02:25:32 dbm_lmdb.c: In function 'DBPrivDeleteCursorEntry':
02:25:32 dbm_lmdb.c:483: error: 'DBCursorPriv' has no member named 'mc'
02:25:33 dbm_lmdb.c:483: error: 'DBCursorPriv' has no member named 'delkey'
02:25:33 dbm_lmdb.c:483: error: 'MDB_GET_CURRENT' undeclared (first use in this function)
02:25:34 dbm_lmdb.c:484: error: 'MDB_SUCCESS' undeclared (first use in this function)
02:25:34 dbm_lmdb.c:486: error: 'DBCursorPriv' has no member named 'pending_delete'
02:25:34 dbm_lmdb.c: In function 'DBPrivWriteCursorEntry':
02:25:34 dbm_lmdb.c:493: error: 'MDB_val' undeclared (first use in this function)
02:25:35 dbm_lmdb.c:493: error: expected ';' before 'data'
02:25:35 dbm_lmdb.c:496: error: 'DBCursorPriv' has no member named 'pending_delete'
02:25:35 dbm_lmdb.c:497: error: 'data' undeclared (first use in this function)
02:25:35 dbm_lmdb.c:500: error: 'DBCursorPriv' has no member named 'curkv'
02:25:35 dbm_lmdb.c:502: error: expected ';' before 'curkey'
02:25:36 dbm_lmdb.c:503: error: 'curkey' undeclared (first use in this function)
02:25:36 dbm_lmdb.c:503: error: 'DBCursorPriv' has no member named 'curkv'
02:25:36 dbm_lmdb.c:504: error: 'DBCursorPriv' has no member named 'curkv'
02:25:37 dbm_lmdb.c:506: error: implicit declaration of function 'mdb_cursor_put'
02:25:37 dbm_lmdb.c:506: error: 'DBCursorPriv' has no member named 'mc'
02:25:37 dbm_lmdb.c:506: error: 'MDB_CURRENT' undeclared (first use in this function)
02:25:37 dbm_lmdb.c:506: error: 'MDB_SUCCESS' undeclared (first use in this function)
02:25:38 dbm_lmdb.c:508: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:38 dbm_lmdb.c:514: error: 'MDB_INVALID' undeclared (first use in this function)
02:25:39 dbm_lmdb.c: In function 'DBPrivCloseCursor':
02:25:39 dbm_lmdb.c:521: error: 'DBCursorPriv' has no member named 'curkv'
02:25:39 dbm_lmdb.c:523: error: 'DBCursorPriv' has no member named 'curkv'
02:25:39 dbm_lmdb.c:526: error: 'DBCursorPriv' has no member named 'pending_delete'
02:25:39 dbm_lmdb.c:528: error: 'DBCursorPriv' has no member named 'mc'
02:25:40 dbm_lmdb.c:531: error: implicit declaration of function 'mdb_cursor_close'
02:25:41 dbm_lmdb.c:531: error: 'DBCursorPriv' has no member named 'mc'
02:25:41 dbm_lmdb.c: In function 'UpdateLastSeenMaxReaders':
02:25:41 dbm_lmdb.c:547: error: 'MDB_env' undeclared (first use in this function)
02:25:41 dbm_lmdb.c:547: error: 'env' undeclared (first use in this function)
02:25:41 dbm_lmdb.c:552: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:41 dbm_lmdb.c:560: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
02:25:42 dbm_lmdb.c:565: error: 'MDB_NOSUBDIR' undeclared (first use in this function)
02:25:42 dbm_lmdb.c:569: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
02:25:42 make[4]: *** [dbm_lmdb.lo] Error 1
02:25:42 make[3]: *** [install] Error 2
02:25:42 make[2]: *** [install-recursive] Error 1
02:25:42 make[1]: *** [install] Error 2
02:25:42 error: Bad exit status from /var/tmp/rpm-tmp.OGPjAO (%install)
Actions

Also available in: Atom PDF