Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't build on centos #2

Closed
handloomweaver opened this issue Sep 29, 2014 · 3 comments
Closed

Doesn't build on centos #2

handloomweaver opened this issue Sep 29, 2014 · 3 comments

Comments

@handloomweaver
Copy link

python setup.py install
running install
running build
running build_ext
building 'pydawg' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/home/atomised/include -fPIC -DDAWG_PERFECT_HASHING= -DDAWG_UNICODE= -I/usr/local/include/python2.7 -c pydawg.c -o build/temp.linux-x86_64-2.7/pydawg.o
In file included from pydawg.c:22:
dawg.c: In function ‘dawgnode_hash’:
dawg.c:356: warning: cast from pointer to integer of different size
In file included from dawg.c:564,
                 from pydawg.c:22:
dawg_pickle.c: In function ‘load_node’:
dawg_pickle.c:246: warning: cast to pointer from integer of different size
dawg_pickle.c: In function ‘DAWG_load’:
dawg_pickle.c:347: warning: cast from pointer to integer of different size
pydawg.c: At top level:
pydawg.c:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘pydawg_module’
pydawg.c: In function ‘PyInit_pydawg’:
pydawg.c:44: warning: assignment from incompatible pointer type
pydawg.c:49: warning: implicit declaration of function ‘PyModule_Create’
pydawg.c:49: error: ‘pydawg_module’ undeclared (first use in this function)
pydawg.c:49: error: (Each undeclared identifier is reported only once
pydawg.c:49: error: for each function it appears in.)
pydawg.c:51: warning: ‘return’ with a value, in function returning void
pydawg.c:55: warning: ‘return’ with a value, in function returning void
pydawg.c:82: warning: ‘return’ with a value, in function returning void
error: command 'gcc' failed with exit status 1
@WojciechMula
Copy link
Owner

I think this warning is the key: implicit declaration of function ‘PyModule_Create’. PyModule_Create is a standard python API function, are you sure, that you have installed all headers for python? And for correct version of python?

I don't know centos, but in most distros such package is called python-dev, python2.7-dev, or something like this.

@WojciechMula
Copy link
Owner

handloomweaver: have you managed to compile module? Can I close this issue?

@handloomweaver
Copy link
Author

Yes close it!

Sent from my iPhone

On 18 Apr 2015, at 16:40, Wojciech Muła notifications@github.com wrote:

handloomweaver: have you managed to compile module? Can I close this issue?


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants