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

Difficulty compiling; _testcapi.c #4

Open
hanetzer opened this issue May 10, 2014 · 0 comments
Open

Difficulty compiling; _testcapi.c #4

hanetzer opened this issue May 10, 2014 · 0 comments

Comments

@hanetzer
Copy link

Had a bit of trouble building this; I ran with CC=clang in order to maybe get some better debug output, got this:

clang -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes     -I. -IInclude -I./Include -I/usr/lib -static -fPIC  -I/usr/include   -DPy_BUILD_CORE  -c ./Modules/_testcapimodule.c -o Modules/_testcapimodule.o
./Modules/_testcapimodule.c:1750:9: error: use of undeclared identifier 'PyDateTimeAPI'
    if (PyDateTimeAPI) {
        ^
./Modules/_testcapimodule.c:1762:5: error: use of undeclared identifier 'PyDateTime_IMPORT'
    PyDateTime_IMPORT;
    ^
./Modules/_testcapimodule.c:1763:9: error: use of undeclared identifier 'PyDateTimeAPI'
    if (PyDateTimeAPI)
        ^
3 errors generated.

I was able to static compile using a hack I found here: http://bugs.python.org/issue19348
Seems to have worked; I was able to run the built python executable and use the python shell with a few tests, just a few print() and such.

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

1 participant