Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hello
i have ubuntu 10.4 and 9.10. i want to install the tpm keyring(http://trousers.sourceforge.net/tpm_...uickstart.html) but i can't compile it ;(. i think i need some "special" packages(old versions or so on) but i don't know witch. i try very mutch things but it dosn't work.
This is the error:
Quote:
root@spineffectVM32-desktop:/home/spineffect/Downloads/applications/tpm_keyring2# make
swig -I. -python tpm_keyring_util.i
gcc -I. -I/usr/include/python -c tpm_keyring_util_wrap.c -o tpm_keyring_util_wrap.o
tpm_keyring_util_wrap.c:124:20: error: Python.h: No such file or directory
tpm_keyring_util_wrap.c:730: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:785: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:806: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c: In function ‘SWIG_Python_AddErrorMsg’:
tpm_keyring_util_wrap.c:853: error: ‘PyObject’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:853: error: (Each undeclared identifier is reported only once
tpm_keyring_util_wrap.c:853: error: for each function it appears in.)
tpm_keyring_util_wrap.c:853: error: ‘type’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:854: error: ‘value’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:855: error: ‘traceback’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:859: error: ‘old_str’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:866: error: ‘PyExc_RuntimeError’ undeclared (first use in this function)
tpm_keyring_util_wrap.c: At top level:
tpm_keyring_util_wrap.c:1034: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:1042: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:1053: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:1060: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1106: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:1208: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1219: error: expected specifier-qualifier-list before ‘PyObject’
tpm_keyring_util_wrap.c: In function ‘SWIG_Python_CheckImplicit’:
tpm_keyring_util_wrap.c:1231: error: ‘PySwigClientData’ has no member named ‘implicitconv’
tpm_keyring_util_wrap.c: At top level:
tpm_keyring_util_wrap.c:1234: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1243: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c: In function ‘PySwigClientData_Del’:
tpm_keyring_util_wrap.c:1298: error: ‘PySwigClientData’ has no member named ‘newraw’
tpm_keyring_util_wrap.c:1299: error: ‘PySwigClientData’ has no member named ‘newargs’
tpm_keyring_util_wrap.c:1300: error: ‘PySwigClientData’ has no member named ‘destroy’
tpm_keyring_util_wrap.c: At top level:
tpm_keyring_util_wrap.c:1306: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
tpm_keyring_util_wrap.c:1313: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1319: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1337: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1343: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1349: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1372: error: expected declaration specifiers or ‘...’ before ‘FILE’
tpm_keyring_util_wrap.c: In function ‘PySwigObject_print’:
tpm_keyring_util_wrap.c:1377: error: ‘PyObject’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:1377: error: ‘repr’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:1380: error: ‘fp’ undeclared (first use in this function)
tpm_keyring_util_wrap.c: At top level:
tpm_keyring_util_wrap.c:1388: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c: In function ‘PySwigObject_compare’:
tpm_keyring_util_wrap.c:1399: error: ‘PySwigObject’ has no member named ‘ptr’
tpm_keyring_util_wrap.c:1400: error: ‘PySwigObject’ has no member named ‘ptr’
tpm_keyring_util_wrap.c: At top level:
tpm_keyring_util_wrap.c:1404: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1406: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1413: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:1418: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1422: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:1456: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1473: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1489: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1501: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1513: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1561: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘swigobject_methods’
tpm_keyring_util_wrap.c:1573: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1580: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1688: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1706: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
tpm_keyring_util_wrap.c:1713: error: expected declaration specifiers or ‘...’ before ‘FILE’
tpm_keyring_util_wrap.c: In function ‘PySwigPacked_print’:
tpm_keyring_util_wrap.c:1716: error: ‘fp’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:1717: error: ‘PySwigPacked’ has no member named ‘pack’
tpm_keyring_util_wrap.c:1717: error: ‘PySwigPacked’ has no member named ‘size’
tpm_keyring_util_wrap.c:1721: error: ‘PySwigPacked’ has no member named ‘ty’
tpm_keyring_util_wrap.c: At top level:
tpm_keyring_util_wrap.c:1726: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1737: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c: In function ‘PySwigPacked_compare’:
tpm_keyring_util_wrap.c:1751: error: ‘PySwigPacked’ has no member named ‘size’
tpm_keyring_util_wrap.c:1752: error: ‘PySwigPacked’ has no member named ‘size’
tpm_keyring_util_wrap.c:1754: error: ‘PySwigPacked’ has no member named ‘pack’
tpm_keyring_util_wrap.c:1754: error: ‘PySwigPacked’ has no member named ‘pack’
tpm_keyring_util_wrap.c:1754: error: ‘PySwigPacked’ has no member named ‘size’
tpm_keyring_util_wrap.c: At top level:
tpm_keyring_util_wrap.c:1757: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1759: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1766: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:1772: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:1781: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1851: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1871: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:1887: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1893: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:1903: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:1954: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:1969: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:2060: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:2092: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:2114: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:2178: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:2199: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:2217: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:2238: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c: In function ‘SWIG_Python_GetModule’:
tpm_keyring_util_wrap.c:2260: warning: assignment makes pointer from integer without a cast
tpm_keyring_util_wrap.c: At top level:
tpm_keyring_util_wrap.c:2274: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c: In function ‘SWIG_Python_SetModule’:
tpm_keyring_util_wrap.c:2320: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘swig_empty_runtime_method_table’
tpm_keyring_util_wrap.c:2320: error: ‘swig_empty_runtime_method_table’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2320: error: expected expression before ‘]’ token
tpm_keyring_util_wrap.c:2322: error: ‘PyObject’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2322: error: ‘module’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2324: error: ‘pointer’ undeclared (first use in this function)
tpm_keyring_util_wrap.c: At top level:
tpm_keyring_util_wrap.c:2333: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c: In function ‘SWIG_Python_TypeQuery’:
tpm_keyring_util_wrap.c:2342: error: ‘PyObject’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2342: error: ‘cache’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2343: error: ‘key’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2344: error: ‘obj’ undeclared (first use in this function)
tpm_keyring_util_wrap.c: In function ‘SWIG_Python_AddErrMesg’:
tpm_keyring_util_wrap.c:2372: error: ‘PyObject’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2372: error: ‘type’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2373: error: ‘value’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2374: error: ‘traceback’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2377: error: ‘old_str’ undeclared (first use in this function)
tpm_keyring_util_wrap.c: In function ‘SWIG_Python_ArgFail’:
tpm_keyring_util_wrap.c:2399: warning: incompatible implicit declaration of built-in function ‘snprintf’
tpm_keyring_util_wrap.c: At top level:
tpm_keyring_util_wrap.c:2407: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:2415: error: expected declaration specifiers or ‘...’ before ‘PyObject’
tpm_keyring_util_wrap.c: In function ‘SWIG_Python_TypeError’:
tpm_keyring_util_wrap.c:2429: error: ‘obj’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2431: error: ‘PyObject’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2431: error: ‘str’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2434: error: ‘PyExc_TypeError’ undeclared (first use in this function)
tpm_keyring_util_wrap.c: At top level:
tpm_keyring_util_wrap.c:2453: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:2494:4: error: #error "This python version requires swig to be run with the '-classic' option"
tpm_keyring_util_wrap.c:2537: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c: In function ‘SWIG_CanCastAsInteger’:
tpm_keyring_util_wrap.c:2593: error: ‘errno’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2593: error: ‘EDOM’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:2593: error: ‘ERANGE’ undeclared (first use in this function)
tpm_keyring_util_wrap.c: At top level:
tpm_keyring_util_wrap.c:2617: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:2656: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:2685: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:2739: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:2756: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:2766: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:2775: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:2845: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:2867: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:2901: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:2926: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:2951: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:2973: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:3007: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:3044: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:3065: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:3090: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:3115: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SwigMethods’
tpm_keyring_util_wrap.c:3412: error: expected specifier-qualifier-list before ‘PyObject’
tpm_keyring_util_wrap.c:3418: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
tpm_keyring_util_wrap.c:3422: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:3427: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c: In function ‘swig_varlink_print’:
tpm_keyring_util_wrap.c:3441: error: ‘PyObject’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:3441: error: ‘str’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:3443: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
tpm_keyring_util_wrap.c: In function ‘swig_varlink_dealloc’:
tpm_keyring_util_wrap.c:3450: error: ‘swig_varlinkobject’ has no member named ‘vars’
tpm_keyring_util_wrap.c:3452: error: ‘swig_globalvar’ has no member named ‘next’
tpm_keyring_util_wrap.c: At top level:
tpm_keyring_util_wrap.c:3459: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:3477: error: expected declaration specifiers or ‘...’ before ‘PyObject’
tpm_keyring_util_wrap.c: In function ‘swig_varlink_setattr’:
tpm_keyring_util_wrap.c:3479: error: ‘swig_varlinkobject’ has no member named ‘vars’
tpm_keyring_util_wrap.c:3482: error: ‘swig_globalvar’ has no member named ‘set_attr’
tpm_keyring_util_wrap.c:3482: error: ‘p’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:3485: error: ‘swig_globalvar’ has no member named ‘next’
tpm_keyring_util_wrap.c:3488: error: ‘PyExc_NameError’ undeclared (first use in this function)
tpm_keyring_util_wrap.c: At top level:
tpm_keyring_util_wrap.c:3493: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:3545: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:3555: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:3571: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tpm_keyring_util_wrap.c:3584: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c:3611: error: expected ‘)’ before ‘*’ token
tpm_keyring_util_wrap.c: In function ‘init_tpm_keyring_util’:
tpm_keyring_util_wrap.c:3664: error: ‘PyObject’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:3664: error: ‘m’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:3664: error: ‘d’ undeclared (first use in this function)
tpm_keyring_util_wrap.c:3667: error: ‘SwigMethods’ undeclared (first use in this function)
make: *** [_tpm_keyring_util.so] Fehler 1
tpm_keyring_util_wrap.c:124:20: error: Python.h: No such file or directory
this means the system lacks the python development files (headers and static libraries). Check if you have (and eventually install) the python-dev package. It should solve the first (and hopefully only) problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.