[opensuse] install error message from eee-control
i m trying to install eee-control for my opensuse 11.1, but i got this error (rather long..): python setup.py install running install running build running build_py running build_ext building 'EeeControl.ioport' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fwrapv -fPIC -I/usr/include/python2.6 -c ioport/ioport.c -o build/temp.linux-i686-2.6/ioport/ioport.o ioport/ioport.c:46:20: error: Python.h: No such file or directory ioport/ioport.c:58: error: expected =, ,, ;, asm or __attribute__ before * token ioport/ioport.c: In function validate: ioport/ioport.c:69: warning: implicit declaration of function PyErr_SetString ioport/ioport.c:69: error: ErrorObj undeclared (first use in this function) ioport/ioport.c:69: error: (Each undeclared identifier is reported only once ioport/ioport.c:69: error: for each function it appears in.) ioport/ioport.c: At top level: ioport/ioport.c:77: error: expected =, ,, ;, asm or __attribute__ before * token ioport/ioport.c:97: error: expected =, ,, ;, asm or __attribute__ before * token ioport/ioport.c:117: error: expected =, ,, ;, asm or __attribute__ before * token ioport/ioport.c:140: error: expected =, ,, ;, asm or __attribute__ before * token ioport/ioport.c:162: error: array type has incomplete element type ioport/ioport.c:163: error: PyCFunction undeclared here (not in a function) ioport/ioport.c:163: error: expected } before iop_outb ioport/ioport.c:164: error: expected } before iop_inb ioport/ioport.c:165: error: expected } before iop_ioperm ioport/ioport.c:166: error: expected } before iop_iopl ioport/ioport.c:167: error: NULL undeclared here (not in a function) ioport/ioport.c:167: error: expected } before NULL ioport/ioport.c: In function initioport: ioport/ioport.c:176: error: PyObject undeclared (first use in this function) ioport/ioport.c:176: error: m undeclared (first use in this function) ioport/ioport.c:176: error: d undeclared (first use in this function) ioport/ioport.c:176: warning: left-hand operand of comma expression has no effect ioport/ioport.c:178: warning: implicit declaration of function Py_InitModule4 ioport/ioport.c:180: error: expected expression before ) token ioport/ioport.c:183: warning: implicit declaration of function PyModule_GetDict ioport/ioport.c:184: error: ErrorObj undeclared (first use in this function) ioport/ioport.c:184: warning: implicit declaration of function PyString_FromString ioport/ioport.c:185: warning: implicit declaration of function PyDict_SetItemString ioport/ioport.c:192: warning: implicit declaration of function PyErr_Occurred ioport/ioport.c:193: warning: implicit declaration of function Py_FatalError error: command 'gcc' failed with exit status 1 question is: what's the meaning of this error? is there any dependency that i missed? i added gcc package, but the same error still occur. please help. or perhaps something wrong with eee-control script itself? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hawit schrieb:
i m trying to install eee-control for my opensuse 11.1, but i got this error (rather long..):
[...] Do not try to install the programs ASUS/Xandros made for the xandros distribution with openSUSE 11.1. This would be fine with older openSUSE versions, but not for 11.1.
It already contains some support for the EEEPCs with the eeepc-laptop kernel module and the /proc/acpi/eeepc interface. It would be better to use this with the EEEPC. Currently you have to write an acpi handler script to make it work completely. With newer kernels, as it will be in openSUSE 11.2, everything will work out of the box. Cheers Herbert -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hawit escribió:
i m trying to install eee-control for my opensuse 11.1, but i got this error (rather long..):
python setup.py install running install running build running build_py running build_ext building 'EeeControl.ioport' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fwrapv -fPIC -I/usr/include/python2.6 -c ioport/ioport.c -o build/temp.linux-i686-2.6/ioport/ioport.o ioport/ioport.c:46:20: error: Python.h: No such file or directory ioport/ioport.c:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token ioport/ioport.c: In function ‘validate’: ioport/ioport.c:69: warning: implicit declaration of function ‘PyErr_SetString’ ioport/ioport.c:69: error: ‘ErrorObj’ undeclared (first use in this function) ioport/ioport.c:69: error: (Each undeclared identifier is reported only once ioport/ioport.c:69: error: for each function it appears in.) ioport/ioport.c: At top level: ioport/ioport.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token ioport/ioport.c:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token ioport/ioport.c:117: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token ioport/ioport.c:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token ioport/ioport.c:162: error: array type has incomplete element type ioport/ioport.c:163: error: ‘PyCFunction’ undeclared here (not in a function) ioport/ioport.c:163: error: expected ‘}’ before ‘iop_outb’ ioport/ioport.c:164: error: expected ‘}’ before ‘iop_inb’ ioport/ioport.c:165: error: expected ‘}’ before ‘iop_ioperm’ ioport/ioport.c:166: error: expected ‘}’ before ‘iop_iopl’ ioport/ioport.c:167: error: ‘NULL’ undeclared here (not in a function) ioport/ioport.c:167: error: expected ‘}’ before ‘NULL’ ioport/ioport.c: In function ‘initioport’: ioport/ioport.c:176: error: ‘PyObject’ undeclared (first use in this function) ioport/ioport.c:176: error: ‘m’ undeclared (first use in this function) ioport/ioport.c:176: error: ‘d’ undeclared (first use in this function) ioport/ioport.c:176: warning: left-hand operand of comma expression has no effect ioport/ioport.c:178: warning: implicit declaration of function ‘Py_InitModule4’ ioport/ioport.c:180: error: expected expression before ‘)’ token ioport/ioport.c:183: warning: implicit declaration of function ‘PyModule_GetDict’ ioport/ioport.c:184: error: ‘ErrorObj’ undeclared (first use in this function) ioport/ioport.c:184: warning: implicit declaration of function ‘PyString_FromString’ ioport/ioport.c:185: warning: implicit declaration of function ‘PyDict_SetItemString’ ioport/ioport.c:192: warning: implicit declaration of function ‘PyErr_Occurred’ ioport/ioport.c:193: warning: implicit declaration of function ‘Py_FatalError’ error: command 'gcc' failed with exit status 1
is there any dependency
that i missed? Yes, python-devel .. however please follow Herbert advice.
-- "If this is the best God can do, I am not impressed" -George Carlin (1937-2008) Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
Hawit escribió:
i m trying to install eee-control for my opensuse 11.1, but i got this error (rather long..):
python setup.py install running install running build running build_py running build_ext building 'EeeControl.ioport' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fwrapv -fPIC -I/usr/include/python2.6 -c ioport/ioport.c -o build/temp.linux-i686-2.6/ioport/ioport.o ioport/ioport.c:46:20: error: Python.h: No such file or directory ioport/ioport.c:58: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token ioport/ioport.c: In function âvalidateâ: ioport/ioport.c:69: warning: implicit declaration of function âPyErr_SetStringâ ioport/ioport.c:69: error: âErrorObjâ undeclared (first use in this function) ioport/ioport.c:69: error: (Each undeclared identifier is reported only once ioport/ioport.c:69: error: for each function it appears in.) ioport/ioport.c: At top level: ioport/ioport.c:77: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token ioport/ioport.c:97: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token ioport/ioport.c:117: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token ioport/ioport.c:140: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token ioport/ioport.c:162: error: array type has incomplete element type ioport/ioport.c:163: error: âPyCFunctionâ undeclared here (not in a function) ioport/ioport.c:163: error: expected â}â before âiop_outbâ ioport/ioport.c:164: error: expected â}â before âiop_inbâ ioport/ioport.c:165: error: expected â}â before âiop_iopermâ ioport/ioport.c:166: error: expected â}â before âiop_ioplâ ioport/ioport.c:167: error: âNULLâ undeclared here (not in a function) ioport/ioport.c:167: error: expected â}â before âNULLâ ioport/ioport.c: In function âinitioportâ: ioport/ioport.c:176: error: âPyObjectâ undeclared (first use in this function) ioport/ioport.c:176: error: âmâ undeclared (first use in this function) ioport/ioport.c:176: error: âdâ undeclared (first use in this function) ioport/ioport.c:176: warning: left-hand operand of comma expression has no effect ioport/ioport.c:178: warning: implicit declaration of function âPy_InitModule4â ioport/ioport.c:180: error: expected expression before â)â token ioport/ioport.c:183: warning: implicit declaration of function âPyModule_GetDictâ ioport/ioport.c:184: error: âErrorObjâ undeclared (first use in this function) ioport/ioport.c:184: warning: implicit declaration of function âPyString_FromStringâ ioport/ioport.c:185: warning: implicit declaration of function âPyDict_SetItemStringâ ioport/ioport.c:192: warning: implicit declaration of function âPyErr_Occurredâ ioport/ioport.c:193: warning: implicit declaration of function âPy_FatalErrorâ error: command 'gcc' failed with exit status 1
is there any dependency
that i missed? Yes, python-devel .. however please follow Herbert advice.
-- okay since u guys said so, i wont install this one. but i still miss hotkey to turn on and off my wifi :( i hv to do in windows, hate that. i wish opensuse developer will come up with this feature soon.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Freitag, 1. Mai 2009 06:48:15 schrieb Hawit:
Hawit escribió:
i m trying to install eee-control for my opensuse 11.1, but i got this error (rather long..):
[...] Yes, python-devel .. however please follow Herbert advice.
okay since u guys said so, i wont install this one. but i still miss hotkey to turn on and off my wifi :( i hv to do in windows, hate that. i wish opensuse developer will come up with this feature soon.
You need some scripts and config files to make them work: /etc/acpi/events/eeepc:
event=hotkey ATKD.* action=/usr/lib/acpid/eeepc_handler "%e"
/usr/lib/acpid/eeepc_handler:
#!/bin/bash echo "$@" >>~herbert/acpid.log set -- $1 case "$3" in 00000010) # WLAN on echo 1 >/sys/devices/platform/eeepc/wlan ;; 00000011) # WLAN off echo 0 >/sys/devices/platform/eeepc/wlan ;; esac
/etc/modprobe.d/eeepc:
options pciehp pciehp_force=1 install eeepc-laptop /sbin/modprobe pciehp; /sbin/modprobe -i eeepc-laptop $CMDLINE_ARGS install ath5k /sbin/modprobe pciehp; /sbin/modprobe -i ath5k $CMDLINE_ARGS install uvcvideo /sbin/modprobe pciehp; /sbin/modprobe -i uvcvideo $CMDLINE_ARGS
This works with openSUSE 11.1 only. openSUSE 11.0 an below lacks the kernel module. And in openSUSE Factory you will only need the last file. I am thinking for weeks about making this available on the wiki. But this makes only sense if the whole OpenSUSE_On_the_EEEPC is reorganized. Herbert -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Cristian Rodríguez
-
Hawit
-
Herbert Graeber