scopene Posted April 3, 2012 Report Posted April 3, 2012 When I try to make a module I get this error: make: *** [../build/pymod.o] Error 1 There's no pymod.o inside the build folder. make deps: python ../scripts/makedeps.py -I. -Iinclude -I../build -D_REENTRANT -D_GNU_SOURCE -fPIC -I/usr/include/db-4.6 -I/usr/include/mysql -I/usr/include/python2.5 \ */*.c -P '$(BUILDDIR)/' -o ../build/deps.mk makedeps: ignoring option: -D_REENTRANT makedeps: ignoring option: -D_GNU_SOURCE makedeps: ignoring option: -fPIC makedeps: ignoring option: -I/usr/include/db-4.6 makedeps: ignoring option: -I/usr/include/mysql makedeps: ignoring option: -I/usr/include/python2.5 makedeps: warning: "pthread.h" not found makedeps: warning: "zlib.h" not found makedeps: warning: "mysql.h" not found makedeps: warning: "db.h" not found makedeps: warning: "errno.h" not found makedeps: warning: "Python.h" not found makedeps: warning: "structmember.h" not found make: pymod/pymod.c:1047: warning: implicit declaration of function ?PyObject_New? pymod/pymod.c:1047: error: expected expression before ?PlayerObject? pymod/pymod.c:1048: error: ?PlayerObject? has no member named ?p? pymod/pymod.c:1049: error: ?PlayerObject? has no member named ?dict? pymod/pymod.c:1049: warning: implicit declaration of function ?PyDict_New? pymod/pymod.c:1053: error: ?PlayerObject? has no member named ?ob_refcnt? pymod/pymod.c:1055: error: ?PlayerObject? has no member named ?ob_refcnt? pymod/pymod.c:1063: error: ?PlayerObject? has no member named ?p? pymod/pymod.c:1064: error: ?PlayerObject? has no member named ?dict? pymod/pymod.c:1065: error: ?PlayerObject? has no member named ?dict? pymod/pymod.c: In function ?py_aaction?: pymod/pymod.c:1080: error: expected expression before ?ArenaObject? pymod/pymod.c:1081: error: ?ArenaObject? has no member named ?a? pymod/pymod.c:1082: error: ?ArenaObject? has no member named ?dict? pymod/pymod.c:1087: error: ?ArenaObject? has no member named ?ob_refcnt? pymod/pymod.c:1089: error: ?ArenaObject? has no member named ?ob_refcnt? pymod/pymod.c:1092: error: ?ArenaObject? has no member named ?a? pymod/pymod.c:1093: error: ?ArenaObject? has no member named ?dict? pymod/pymod.c:1094: error: ?ArenaObject? has no member named ?dict? pymod/pymod.c: At top level: pymod/pymod.c:1106: error: expected specifier-qualifier-list before ?PyObject? pymod/pymod.c: In function ?destroy_callback_ticket?: pymod/pymod.c:1114: error: ?struct callback_ticket? has no member named ?func? pymod/pymod.c:1115: error: ?struct callback_ticket? has no member named ?cbid? pymod/pymod.c:1115: error: ?struct callback_ticket? has no member named ?func? pymod/pymod.c:1115: error: ?struct callback_ticket? has no member named ?arena? pymod/pymod.c: At top level: pymod/pymod.c:1119: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c:1149: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c:1205: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c: In function ?destroy_interface?: pymod/pymod.c:1256: error: ?pyint_generic_interface? has no member named ?funcs? pymod/pymod.c:1257: error: ?pyint_generic_interface? has no member named ?funcs? pymod/pymod.c: At top level: pymod/pymod.c:1280: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c: In function ?pycmd_command?: pymod/pymod.c:1343: error: ?PyObject? undeclared (first use in this function) pymod/pymod.c:1343: error: ?args? undeclared (first use in this function) pymod/pymod.c:1350: error: ?cvt_c2p_player? undeclared (first use in this function) pymod/pymod.c:1352: error: ?cvt_c2p_target? undeclared (first use in this function) pymod/pymod.c:1359: error: ?ret? undeclared (first use in this function) pymod/pymod.c: At top level: pymod/pymod.c:1374: error: expected specifier-qualifier-list before ?PyObject? pymod/pymod.c: In function ?remove_command?: pymod/pymod.c:1383: error: ?struct pycmd_ticket? has no member named ?cmd? pymod/pymod.c:1383: error: ?struct pycmd_ticket? has no member named ?arena? pymod/pymod.c:1384: error: ?struct pycmd_ticket? has no member named ?cmd? pymod/pymod.c:1384: error: ?struct pycmd_ticket? has no member named ?func? pymod/pymod.c:1385: error: ?struct pycmd_ticket? has no member named ?func? pymod/pymod.c:1386: error: ?struct pycmd_ticket? has no member named ?htobj? pymod/pymod.c: At top level: pymod/pymod.c:1390: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c: In function ?pytmr_timer?: pymod/pymod.c:1433: error: ?PyObject? undeclared (first use in this function) pymod/pymod.c:1433: error: ?func? undeclared (first use in this function) pymod/pymod.c:1433: error: ?ret? undeclared (first use in this function) pymod/pymod.c:1433: warning: left-hand operand of comma expression has no effect pymod/pymod.c:1436: warning: implicit declaration of function ?PyObject_CallFunction? pymod/pymod.c:1443: error: ?Py_None? undeclared (first use in this function) pymod/pymod.c:1443: warning: implicit declaration of function ?PyObject_IsTrue? pymod/pymod.c: In function ?clear_timer?: pymod/pymod.c:1451: error: ?PyObject? undeclared (first use in this function) pymod/pymod.c:1451: error: ?funcptr? undeclared (first use in this function) pymod/pymod.c: At top level: pymod/pymod.c:1457: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c:1490: error: expected ?)? before ?*? token pymod/pymod.c:1563: error: expected specifier-qualifier-list before ?PyObject? pymod/pymod.c: In function ?get_player_data?: pymod/pymod.c:1570: error: ?PyObject? undeclared (first use in this function) pymod/pymod.c:1570: error: ?val? undeclared (first use in this function) pymod/pymod.c:1570: error: ?pkl? undeclared (first use in this function) pymod/pymod.c:1570: warning: left-hand operand of comma expression has no effect pymod/pymod.c:1574: warning: implicit declaration of function ?PyObject_CallMethod? pymod/pymod.c:1574: error: ?struct pypersist_ppd? has no member named ?funcs? pymod/pymod.c:1574: error: ?cvt_c2p_player? undeclared (first use in this function) pymod/pymod.c:1580: error: ?Py_None? undeclared (first use in this function) pymod/pymod.c:1586: error: ?cPickle? undeclared (first use in this function) pymod/pymod.c:1594: warning: implicit declaration of function ?PyObject_AsReadBuffer? pymod/pymod.c:1610: warning: implicit declaration of function ?memcpy? pymod/pymod.c:1610: warning: incompatible implicit declaration of built-in function ?memcpy? pymod/pymod.c: In function ?set_player_data?: pymod/pymod.c:1620: error: ?PyObject? undeclared (first use in this function) pymod/pymod.c:1620: error: ?buf? undeclared (first use in this function) pymod/pymod.c:1620: error: ?val? undeclared (first use in this function) pymod/pymod.c:1620: warning: left-hand operand of comma expression has no effect pymod/pymod.c:1620: error: ?ret? undeclared (first use in this function) pymod/pymod.c:1620: warning: left-hand operand of comma expression has no effect pymod/pymod.c:1622: warning: implicit declaration of function ?PyString_FromStringAndSize? pymod/pymod.c:1623: error: ?cPickle? undeclared (first use in this function) pymod/pymod.c:1631: error: ?struct pypersist_ppd? has no member named ?funcs? pymod/pymod.c:1631: error: ?cvt_c2p_player? undeclared (first use in this function) pymod/pymod.c: In function ?clear_player_data?: pymod/pymod.c:1640: error: ?PyObject? undeclared (first use in this function) pymod/pymod.c:1640: error: ?ret? undeclared (first use in this function) pymod/pymod.c:1642: error: ?struct pypersist_ppd? has no member named ?funcs? pymod/pymod.c:1642: error: ?cvt_c2p_player? undeclared (first use in this function) pymod/pymod.c: In function ?unreg_ppd?: pymod/pymod.c:1653: error: ?struct pypersist_ppd? has no member named ?funcs? pymod/pymod.c: At top level: pymod/pymod.c:1657: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c:1689: error: expected specifier-qualifier-list before ?PyObject? pymod/pymod.c: In function ?get_arena_data?: pymod/pymod.c:1696: error: ?PyObject? undeclared (first use in this function) pymod/pymod.c:1696: error: ?val? undeclared (first use in this function) pymod/pymod.c:1696: error: ?pkl? undeclared (first use in this function) pymod/pymod.c:1696: warning: left-hand operand of comma expression has no effect pymod/pymod.c:1700: error: ?struct pypersist_apd? has no member named ?funcs? pymod/pymod.c:1700: error: ?cvt_c2p_arena? undeclared (first use in this function) pymod/pymod.c:1706: error: ?Py_None? undeclared (first use in this function) pymod/pymod.c:1712: error: ?cPickle? undeclared (first use in this function) pymod/pymod.c:1736: warning: incompatible implicit declaration of built-in function ?memcpy? pymod/pymod.c: In function ?set_arena_data?: pymod/pymod.c:1746: error: ?PyObject? undeclared (first use in this function) pymod/pymod.c:1746: error: ?buf? undeclared (first use in this function) pymod/pymod.c:1746: error: ?val? undeclared (first use in this function) pymod/pymod.c:1746: warning: left-hand operand of comma expression has no effect pymod/pymod.c:1746: error: ?ret? undeclared (first use in this function) pymod/pymod.c:1746: warning: left-hand operand of comma expression has no effect pymod/pymod.c:1749: error: ?cPickle? undeclared (first use in this function) pymod/pymod.c:1757: error: ?struct pypersist_apd? has no member named ?funcs? pymod/pymod.c:1757: error: ?cvt_c2p_arena? undeclared (first use in this function) pymod/pymod.c: In function ?clear_arena_data?: pymod/pymod.c:1766: error: ?PyObject? undeclared (first use in this function) pymod/pymod.c:1766: error: ?ret? undeclared (first use in this function) pymod/pymod.c:1768: error: ?struct pypersist_apd? has no member named ?funcs? pymod/pymod.c:1768: error: ?cvt_c2p_arena? undeclared (first use in this function) pymod/pymod.c: In function ?unreg_apd?: pymod/pymod.c:1779: error: ?struct pypersist_apd? has no member named ?funcs? pymod/pymod.c: At top level: pymod/pymod.c:1783: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c:1810: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c:1841: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c:1872: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c:1879: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c:1886: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c:1893: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c:1898: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token pymod/pymod.c:1904: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?asss_module_methods? pymod/pymod.c: In function ?init_asss_module?: pymod/pymod.c:1942: error: ?PyObject? undeclared (first use in this function) pymod/pymod.c:1942: error: ?m? undeclared (first use in this function) pymod/pymod.c:1944: error: ?PlayerType? undeclared (first use in this function) pymod/pymod.c:1946: error: ?ArenaType? undeclared (first use in this function) pymod/pymod.c:1948: error: ?PlayerListType? undeclared (first use in this function) pymod/pymod.c:1948: error: ?PyList_Type? undeclared (first use in this function) pymod/pymod.c:1955: warning: implicit declaration of function ?Py_InitModule3? pymod/pymod.c:1955: error: ?asss_module_methods? undeclared (first use in this function) pymod/pymod.c:1959: warning: implicit declaration of function ?PyModule_AddObject? pymod/pymod.c:1959: error: expected expression before ?)? token pymod/pymod.c:1960: error: expected expression before ?)? token pymod/pymod.c:1961: error: expected expression before ?)? token pymod/pymod.c:1963: warning: implicit declaration of function ?add_type_objects_to_module? In file included from pymod/pymod.c:1972: ../build/py_constants.inc:3: warning: implicit declaration of function ?PyModule_AddStringConstant? ../build/py_constants.inc:5: warning: implicit declaration of function ?PyModule_AddIntConstant? pymod/pymod.c: In function ?load_py_module?: pymod/pymod.c:1986: error: ?PyObject? undeclared (first use in this function) pymod/pymod.c:1986: error: ?mod? undeclared (first use in this function) pymod/pymod.c:1988: warning: implicit declaration of function ?PyImport_ImportModule? pymod/pymod.c: In function ?unload_py_module?: pymod/pymod.c:2008: error: ?PyObject? undeclared (first use in this function) pymod/pymod.c:2008: error: ?mdict? undeclared (first use in this function) pymod/pymod.c:2008: warning: implicit declaration of function ?PyImport_GetModuleDict? pymod/pymod.c:2009: error: ?mod? undeclared (first use in this function) pymod/pymod.c:2010: warning: implicit declaration of function ?PyModule_GetName? pymod/pymod.c: At top level: pymod/pymod.c:2030: error: expected ?)? before ?*? token pymod/pymod.c: In function ?pyloader?: pymod/pymod.c:2065: warning: implicit declaration of function ?call_maybe_with_arena? pymod/pymod.c: In function ?MM_pymod?: pymod/pymod.c:2117: warning: implicit declaration of function ?Py_Initialize? pymod/pymod.c:2128: warning: implicit declaration of function ?snprintf? pymod/pymod.c:2128: warning: incompatible implicit declaration of built-in function ?snprintf? pymod/pymod.c:2133: warning: implicit declaration of function ?PyRun_SimpleString? pymod/pymod.c:2143: error: ?PyObject? undeclared (first use in this function) pymod/pymod.c:2143: error: ?sys? undeclared (first use in this function) pymod/pymod.c:2144: error: ?sysdict? undeclared (first use in this function) pymod/pymod.c:2144: warning: implicit declaration of function ?PyModule_GetDict? pymod/pymod.c:2145: warning: implicit declaration of function ?Py_INCREF? pymod/pymod.c:2149: error: ?cPickle? undeclared (first use in this function) pymod/pymod.c:2200: warning: implicit declaration of function ?Py_Finalize? make: *** [../build/pymod.o] Error 1 I'm using ASSS 1.5.0 Linux x86 Quote
Cheese Posted April 3, 2012 Report Posted April 3, 2012 thats compiling a module, not loading a modulevastly different is it a python module?if so, you have to actually install python first also i dont think u even have to compile py modules python sucks, use C Quote
scopene Posted April 3, 2012 Author Report Posted April 3, 2012 (edited) It's actually a .c module that I'm trying to complie (regiontriggers by smong). I deleted the python folders in src, to see what would happen: gcc -std=gnu99 -pipe -I. -Iinclude -I../build -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -c -o ../build/regiontriggers.o regiontriggers/regiontriggers.c regiontriggers/regiontriggers.c: In function âArenaActionâ: regiontriggers/regiontriggers.c:106: error: âARENA_DO_DEINITâ undeclared (first use in this function) regiontriggers/regiontriggers.c:106: error: (Each undeclared identifier is reported only once regiontriggers/regiontriggers.c:106: error: for each function it appears in.) regiontriggers/regiontriggers.c: In function âread_settingsâ: regiontriggers/regiontriggers.c:240: warning: implicit declaration of function âmemsetâ regiontriggers/regiontriggers.c:240: warning: incompatible implicit declaration of built-in function âmemsetâ regiontriggers/regiontriggers.c:278: warning: incompatible implicit declaration of built-in function âmemsetâ make: *** [../build/regiontriggers.o] Error 1 I guess I'm still doing something wrong. I have three files in a folder called "regiontriggers" placed into asss/src regiontriggers.c , regiontriggers.dll , regiontriggers.mk regiontriggers.mk: regiontriggers_mods = regiontriggers $(eval $(call dl_template,regiontriggers)) Any ideas? Edited April 3, 2012 by scopene Quote
scopene Posted April 3, 2012 Author Report Posted April 3, 2012 (edited) So - many - problems. I managed to compile deanti (an antiwarp module written in c.) but when I try to ?insmod I get this: E error in dlopen: asss/bin/deanti.so: wrong ELF class: ELFCLASS64 And this is what happens when I try to compile flags.c gcc -std=gnu99 -pipe -fPIC -shared -o ../build/deanti.so ../build/deanti.o gcc -std=gnu99 -pipe -I. -Iinclude -I../build -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -c -o ../build/flags.o flags/flags.c flags/flags.c:116: error: expected declaration specifiers or â...â before âBOOLâ flags/flags.c:116: error: expected declaration specifiers or â...â before âBOOLâ flags/flags.c: In function ânewflagâ: flags/flags.c:123: error: âoldâ undeclared (first use in this function) flags/flags.c:123: error: (Each undeclared identifier is reported only once flags/flags.c:123: error: for each function it appears in.) flags/flags.c:125: error: âcarriedâ undeclared (first use in this function) flags/flags.c:142: error: âBOOLâ undeclared (first use in this function) flags/flags.c:142: error: expected â;â before âgoodâ flags/flags.c:145: error: âgoodâ undeclared (first use in this function) flags/flags.c: In function âdoinitâ: flags/flags.c:223: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:223: error: too many arguments to function ânewflagâ flags/flags.c:242: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:242: error: too many arguments to function ânewflagâ flags/flags.c:258: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:258: error: too many arguments to function ânewflagâ flags/flags.c: In function âFlagGainâ: flags/flags.c:274: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:274: error: too many arguments to function ânewflagâ flags/flags.c: In function âFlagLostâ: flags/flags.c:296: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:296: error: too many arguments to function ânewflagâ flags/flags.c:299: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:299: error: too many arguments to function ânewflagâ flags/flags.c:301: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:301: error: too many arguments to function ânewflagâ flags/flags.c:302: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:302: error: too many arguments to function ânewflagâ flags/flags.c:303: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:303: error: too many arguments to function ânewflagâ flags/flags.c:304: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:304: error: too many arguments to function ânewflagâ flags/flags.c:306: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:306: error: too many arguments to function ânewflagâ flags/flags.c:307: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:307: error: too many arguments to function ânewflagâ flags/flags.c:308: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:308: error: too many arguments to function ânewflagâ flags/flags.c:309: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:309: error: too many arguments to function ânewflagâ flags/flags.c:306: warning: suggest explicit braces to avoid ambiguous âelseâ flags/flags.c: In function âFlagTouchâ: flags/flags.c:372: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:372: error: too many arguments to function ânewflagâ flags/flags.c:380: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:380: error: too many arguments to function ânewflagâ flags/flags.c: In function âTurfFlagFreqâ: flags/flags.c:403: warning: passing argument 6 of ânewflagâ makes pointer from integer without a cast flags/flags.c:116: note: expected âstruct Player *â but argument is of type âintâ flags/flags.c:403: error: too many arguments to function ânewflagâ make: *** [../build/flags.o] Error 1 Edited April 3, 2012 by scopene Quote
Dr Brain Posted April 3, 2012 Report Posted April 3, 2012 Looks like you're compiling a 64-bit module for a 32-bit zone. Try adding -m32 to your CFLAGS in the makefile. This will likely cause you to see all kinds of missing dependencies. You may be better off trying to run a 64-bit zone. Quote
scopene Posted April 3, 2012 Author Report Posted April 3, 2012 Thanks for the help, I'll have to talk to my host about setting that up since I have no idea how to specifically run a 32 or 64-bit zone. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.