unresolved external symbol init_pcapmodule

Jared
2012-06-14
2013-05-09
  • Jared
    Jared
    2012-06-14

    Need help!

    When installing(python setup.py install)  the pylibpcap-0.6.4 package I get "LINK : error LNK2001: unresolved external symbol init_pcapmodule".

    Here is the screen output:

    C:\Documents and Settings\jmuegge\Desktop\pylibpcap-0.6.4>python setup.py install
    running install
    running build
    running build_ext
    building '_pcapmodule' extension
    creating build
    creating build\temp.win32-2.7
    creating build\temp.win32-2.7\Release
    C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DSWIG_COBJECT_TYPES -IC:/tools/WpdPack4.1.2/Include -IC:\t
    ools\Python2.7.3\include -IC:\tools\Python2.7.3\PC /Tcpcap.c /Fobuild\temp.win32-2.7\Release\pcap.obj
    pcap.c
    C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DSWIG_COBJECT_TYPES -IC:/tools/WpdPack4.1.2/Include -IC:\t
    ools\Python2.7.3\include -IC:\tools\Python2.7.3\PC /Tcpcap_interface.c /Fobuild\temp.win32-2.7\Release\pcap_interface.obj
    pcap_interface.c
    pcap_interface.c(747) : warning C4013: 'inet_aton' undefined; assuming extern returning int
    C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DSWIG_COBJECT_TYPES -IC:/tools/WpdPack4.1.2/Include -IC:\t
    ools\Python2.7.3\include -IC:\tools\Python2.7.3\PC /Tcexception.c /Fobuild\temp.win32-2.7\Release\exception.obj
    exception.c
    C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DSWIG_COBJECT_TYPES -IC:/tools/WpdPack4.1.2/Include -IC:\t
    ools\Python2.7.3\include -IC:\tools\Python2.7.3\PC /Tcerror.c /Fobuild\temp.win32-2.7\Release\error.obj
    error.c
    error.c(34) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_
    NO_WARNINGS. See online help for details.
            C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(366) : see declaration of 'sprintf'
    error.c(38) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_
    NO_WARNINGS. See online help for details.
            C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(366) : see declaration of 'sprintf'
    creating build\lib.win32-2.7
    C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:/tools/WpdPack4.1.2/Include\Lib /LIBPATH:C:\tools\Pyth
    on2.7.3\libs /LIBPATH:C:\tools\Python2.7.3\PCbuild wpcap.lib /EXPORT:init_pcapmodule build\temp.win32-2.7\Release\pcap.obj build\temp.win32-2.7\Release\pca
    p_interface.obj build\temp.win32-2.7\Release\exception.obj build\temp.win32-2.7\Release\error.obj /OUT:build\lib.win32-2.7\_pcapmodule.pyd /IMPLIB:build\te
    mp.win32-2.7\Release\_pcapmodule.lib /MANIFESTFILE:build\temp.win32-2.7\Release\_pcapmodule.pyd.manifest
    LINK : error LNK2001: unresolved external symbol init_pcapmodule
    build\temp.win32-2.7\Release\_pcapmodule.lib : fatal error LNK1120: 1 unresolved externals
    error: command '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.exe"' failed with exit status 1120

    C:\Documents and Settings\jmuegge\Desktop\pylibpcap-0.6.4>

    Any Ideas on how to resolve this?

    Jmuegge