Issue #31 resolved

Can't install CFFI with Python 2.7 on Windows

Leonard Ritter avatarLeonard Ritter created an issue

Attempting to install cffi, I get following error:

C:\devel\cffi>python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to cffi.egg-info\requires.txt
writing cffi.egg-info\PKG-INFO
writing top-level names to cffi.egg-info\top_level.txt
writing dependency_links to cffi.egg-info\dependency_links.txt
reading manifest file 'cffi.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile' under directory 'doc'
writing manifest file 'cffi.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build\lib.win32-2.7\cffi
copying cffi\api.py -> build\lib.win32-2.7\cffi
copying cffi\backend_ctypes.py -> build\lib.win32-2.7\cffi
copying cffi\cparser.py -> build\lib.win32-2.7\cffi
copying cffi\ffiplatform.py -> build\lib.win32-2.7\cffi
copying cffi\gc_weakref.py -> build\lib.win32-2.7\cffi
copying cffi\model.py -> build\lib.win32-2.7\cffi
copying cffi\vengine_cpy.py -> build\lib.win32-2.7\cffi
copying cffi\vengine_gen.py -> build\lib.win32-2.7\cffi
copying cffi\verifier.py -> build\lib.win32-2.7\cffi
copying cffi\__init__.py -> build\lib.win32-2.7\cffi
running build_ext
building '_cffi_backend' extension
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -DUSE_C_LIBFFI_MSVC=1 -Ic/libffi_msvc -IC:\Python27\includ
e -IC:\Python27\PC /Tcc/_cffi_backend.c /Fobuild\temp.win32-2.7\Release\c/_cffi_
backend.obj
_cffi_backend.c
c/_cffi_backend.c(2598) : warning C4013: 'dlerror' undefined; assuming extern re
turning int
c/_cffi_backend.c(2601) : warning C4047: 'initializing' : 'const char *' differs
 in levels of indirection from 'int'
c/_cffi_backend.c(2624) : warning C4047: 'initializing' : 'const char *' differs
 in levels of indirection from 'int'
c/_cffi_backend.c(2649) : warning C4047: 'initializing' : 'const char *' differs
 in levels of indirection from 'int'
c/_cffi_backend.c(2725) : warning C4047: 'initializing' : 'const char *' differs
 in levels of indirection from 'int'
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -DUSE_C_LIBFFI_MSVC=1 -Ic/libffi_msvc -IC:\Python27\includ
e -IC:\Python27\PC /Tcc/libffi_msvc\ffi.c /Fobuild\temp.win32-2.7\Release\c/libf
fi_msvc\ffi.obj
ffi.c
c/libffi_msvc\ffi.c(113) : warning C4018: '>' : signed/unsigned mismatch
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -DUSE_C_LIBFFI_MSVC=1 -Ic/libffi_msvc -IC:\Python27\includ
e -IC:\Python27\PC /Tcc/libffi_msvc\prep_cif.c /Fobuild\temp.win32-2.7\Release\c
/libffi_msvc\prep_cif.obj
prep_cif.c
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -DUSE_C_LIBFFI_MSVC=1 -Ic/libffi_msvc -IC:\Python27\includ
e -IC:\Python27\PC /Tcc/libffi_msvc\types.c /Fobuild\temp.win32-2.7\Release\c/li
bffi_msvc\types.obj
types.c
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -DUSE_C_LIBFFI_MSVC=1 -Ic/libffi_msvc -IC:\Python27\includ
e -IC:\Python27\PC /Tcc/libffi_msvc\win32.c /Fobuild\temp.win32-2.7\Release\c/li
bffi_msvc\win32.obj
win32.c
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo
/INCREMENTAL:NO /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild /EXPORT:i
nit_cffi_backend build\temp.win32-2.7\Release\c/_cffi_backend.obj build\temp.win
32-2.7\Release\c/libffi_msvc\ffi.obj build\temp.win32-2.7\Release\c/libffi_msvc\
prep_cif.obj build\temp.win32-2.7\Release\c/libffi_msvc\types.obj build\temp.win
32-2.7\Release\c/libffi_msvc\win32.obj /OUT:build\lib.win32-2.7\_cffi_backend.py
d /IMPLIB:build\temp.win32-2.7\Release\c\_cffi_backend.lib /MANIFESTFILE:build\t
emp.win32-2.7\Release\c\_cffi_backend.pyd.manifest
   Creating library build\temp.win32-2.7\Release\c\_cffi_backend.lib and object
build\temp.win32-2.7\Release\c\_cffi_backend.exp
_cffi_backend.obj : error LNK2019: unresolved external symbol _dlerror reference
d in function _dl_load_function
build\lib.win32-2.7\_cffi_backend.pyd : fatal error LNK1120: 1 unresolved extern
als
error: command '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.
exe"' failed with exit status 1120

Comments (3)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.