two dependencies of keystone dev-enviroment omit

Bug #1290254 reported by Wei Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Wei Wang

Bug Description

In the http://docs.openstack.org/developer/keystone/setup.html (generate from keystone/doc/setup.rst):

the section "Installing dependencies":

    "Fedora 15:

    "$ sudo yum install python-sqlite2 python-lxml python-greenlet-devel python-ldap"

the "sqlite-devel" and "openldap-devel" are omitted.

or developer will get something like this (sqlite-devel as an example):

Running setup.py install for pysqlite
    building 'pysqlite2._sqlite' extension
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -DSQLITE_OMIT_LOAD_EXTENSION=1 -I/usr/include/python2.6 -c src/module.c -o build/temp.linux-i686-2.6/src/module.o
    In file included from src/module.c:24 :
    src/connection.h:33:21: error: sqlite3.h:No such file or directory
    In file included from src/module.c:24:
    src/connection.h:38: error: expected specifier-qualifier-list before 'sqlite3'
    In file included from src/module.c:25:
    src/statement.h:37: error: expected specifier-qualifier-list before 'sqlite3'
    src/module.c: In function'module_complete'中:
    src/module.c:103: implicit declaration of function'sqlite3_complete'
    src/module.c: At top level:
    src/module.c:269: error: 'SQLITE_OK'undeclared here(not In function)
    src/module.c:270: error: 'SQLITE_DENY'undeclared here(not In function)
    src/module.c:271: error: 'SQLITE_IGNORE'undeclared here(not In function)
    src/module.c:272: error: 'SQLITE_CREATE_INDEX'undeclared here(not In function)
    src/module.c:273: error: 'SQLITE_CREATE_TABLE'undeclared here(not In function)
    src/module.c:274: error: 'SQLITE_CREATE_TEMP_INDEX'undeclared here(not In function)
    src/module.c:275: error: 'SQLITE_CREATE_TEMP_TABLE'undeclared here(not In function)
    src/module.c:276: error: 'SQLITE_CREATE_TEMP_TRIGGER'undeclared here(not In function)
    src/module.c:277: error: 'SQLITE_CREATE_TEMP_VIEW'undeclared here(not In function)
    src/module.c:278: error: 'SQLITE_CREATE_TRIGGER'undeclared here(not In function)
    src/module.c:279: error: 'SQLITE_CREATE_VIEW'undeclared here(not In function)
    src/module.c:280: error: 'SQLITE_DELETE'undeclared here(not In function)
    src/module.c:281: error: 'SQLITE_DROP_INDEX'undeclared here(not In function)
    src/module.c:282: error: 'SQLITE_DROP_TABLE'undeclared here(not In function)
    src/module.c:283: error: 'SQLITE_DROP_TEMP_INDEX'undeclared here(not In function)
    src/module.c:284: error: 'SQLITE_DROP_TEMP_TABLE'undeclared here(not In function)
    src/module.c:285: error: 'SQLITE_DROP_TEMP_TRIGGER'undeclared here(not In function)
    src/module.c:286: error: 'SQLITE_DROP_TEMP_VIEW'undeclared here(not In function)
    src/module.c:287: error: 'SQLITE_DROP_TRIGGER'undeclared here(not In function)
    src/module.c:288: error: 'SQLITE_DROP_VIEW'undeclared here(not In function)
    src/module.c:289: error: 'SQLITE_INSERT'undeclared here(not In function)
    src/module.c:290: error: 'SQLITE_PRAGMA'undeclared here(not In function)
    src/module.c:291: error: 'SQLITE_READ'undeclared here(not In function)
    src/module.c:292: error: 'SQLITE_SELECT'undeclared here(not In function)
    src/module.c:293: error: 'SQLITE_TRANSACTION'undeclared here(not In function)
    src/module.c:294: error: 'SQLITE_UPDATE'undeclared here(not In function)
    src/module.c:295: error: 'SQLITE_ATTACH'undeclared here(not In function)
    src/module.c:296: error: 'SQLITE_DETACH'undeclared here(not In function)
    src/module.c: In function 'init_sqlite':
    src/module.c:426: implicit declaration of function'sqlite3_libversion'
    src/module.c:426: warning: passing argument 1 of 'PyString_FromString' makes
pointer from integer without a cast
    /usr/include/python2.6/stringobject.h:63: note: expected 'const char *' but
argument is of type 'int'

    error: command 'gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /home/Glraey.Laptop/OpenStack/keystone/.venv/bin/python -c "import setuptools, tokenize;__file__='/home/Glraey.Laptop/OpenStack/keystone/.venv/build/pysqlite/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-QQ3qV2-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/Glraey.Laptop/OpenStack/keystone/.venv/include/site/python2.6 failed with error code 1 in /home/Glraey.Laptop/OpenStack/keystone/.venv/build/pysqlite
Storing debug log for failure in /home/Glraey.Laptop/.pip/pip.log
Command "tools/with_venv.sh pip install --upgrade -r /home/Glraey.Laptop/OpenStack/keystone/requirements.txt -r /home/Glraey.Laptop/OpenStack/keystone/test-requirements.txt" failed.

Revision history for this message
Wei Wang (damon-devops) wrote :

besides, python-sqlite2 has no dependencies of sqlite-devel:

> yum deplist python-sqlite2

Finding dependencies:
package: python-sqlite2.i686 1:2.3.5-2.el6
  dependency: libc.so.6(GLIBC_2.3)
   provider: glibc.i686 2.12-1.132.el6
  dependency: python(abi) = 2.6
   provider: python.i686 2.6.6-51.el6
   provider: python.i686 2.6.6-52.el6
  dependency: sqlite >= 3.3.3
   provider: sqlite.i686 3.6.20-1.el6
  dependency: libc.so.6(GLIBC_2.1.3)
   provider: glibc.i686 2.12-1.132.el6
  dependency: rtld(GNU_HASH)
   provider: glibc.i686 2.12-1.132.el6
  dependency: libc.so.6
   provider: glibc.i686 2.12-1.132.el6
  dependency: libsqlite3.so.0
   provider: sqlite.i686 3.6.20-1.el6
  dependency: libpthread.so.0
   provider: glibc.i686 2.12-1.132.el6
  dependency: libc.so.6(GLIBC_2.4)
   provider: glibc.i686 2.12-1.132.el6
  dependency: libc.so.6(GLIBC_2.0)
   provider: glibc.i686 2.12-1.132.el6
  dependency: libpython2.6.so.1.0
   provider: python-libs.i686 2.6.6-51.el6
   provider: python-libs.i686 2.6.6-52.el6

Wei Wang (damon-devops)
Changed in keystone:
assignee: nobody → Wei Wang (damon-devops)
Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → Low
status: New → Triaged
Wei Wang (damon-devops)
Changed in keystone:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/80474

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/80474
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=fd5a1487b15f236aa322e4cf7ec92a3a77044a9e
Submitter: Jenkins
Branch: master

commit fd5a1487b15f236aa322e4cf7ec92a3a77044a9e
Author: damon-devops <email address hidden>
Date: Fri Mar 14 12:20:40 2014 +0800

    add dependencies of keystone dev-enviroment

    add sqlite-devel and openldap-devel to dependencies

    Change-Id: Ia8d0d996795f71ea2885c37d3b05bc1643e85202
    Closes-Bug: #1290254

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → juno-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.