gcc fails during pysqlite install

I’m trying to install pysqlite, and receive the following

$ sudo python setup.py install

src/module.c:248: error: ‘SQLITE_ATTACH’ undeclared here (not in a function)
src/module.c:249: error: ‘SQLITE_DETACH’ undeclared here (not in a function)
src/module.c: In function ‘init_sqlite’:
src/module.c:376: warning: implicit declaration of function ‘sqlite3_libversion’
src/module.c:376: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast
error: command 'gcc' failed with exit status 1

I have the latest version gcc available from yast:

$ rpm -q gcc

I am able to install other python modules without a problem. Any ideas?

I didn’t have sqlite3-devel installed. This did the trick.