Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43118 - cannot compile speedfreq
Summary: cannot compile speedfreq
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 45024 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-27 11:08 UTC by Christian Bartels
Modified: 2004-03-28 00:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Bartels 2004-02-27 11:08:56 UTC
hi,

when i try to compile speedfreq i get these errors:

emerge speedfreq
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/speedfreq-0.7.2 to /
>>> md5 src_uri ;-) speedfreq-0.7.2.tar.gz
>>> Unpacking source...
>>> Unpacking speedfreq-0.7.2.tar.gz to /var/tmp/portage/speedfreq-0.7.2/work
>>> Source unpacked.
make: bk: Kommando nicht gefunden
gcc -march=pentium3 -pipe -O2 -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64   -c -o speedfreq.o speedfreq.c
gcc -fpic -march=pentium3 -pipe -O2 -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64 -o libspeedfreq.po -c libspeedfreq.c
version.c updated
gcc -march=pentium3 -pipe -O2 -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64   -c -o speedfreqd.o speedfreqd.c
gcc -fpic -march=pentium3 -pipe -O2 -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64 -o version.po -c version.c
gcc -o libspeedfreq.so.1 -shared -fpic -Wl,-soname,libspeedfreq.so.1 libspeedfreq.po version.po
ln -sf libspeedfreq.so.1 libspeedfreq.so
gcc -Wl,-rpath,/usr/lib -o speedfreq speedfreq.o -L. -lspeedfreq
gcc -Wl,-rpath,/usr/lib -o speedfreqd speedfreqd.o -L. -lspeedfreq
gcc -march=pentium3 -pipe -O2 -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64 -o _speedfreqmodule.so -I/usr/include/python2.2 -shared -fpic -Wl,-soname,_speedfreqmodule.so python.c libspeedfreq.so
python.c:10:20: Python.h: Datei oder Verzeichnis nicht gefunden
python.c:14: error: Syntaxfehler before "pysf_methods"
python.c:14: Warnung: data definition has no type or storage class
python.c:15: error: Syntaxfehler before '*' token
python.c:15: Warnung: data definition has no type or storage class
python.c: In Funktion 
Comment 1 Christian Bartels 2004-02-27 11:08:56 UTC
hi,

when i try to compile speedfreq i get these errors:

emerge speedfreq
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/speedfreq-0.7.2 to /
>>> md5 src_uri ;-) speedfreq-0.7.2.tar.gz
>>> Unpacking source...
>>> Unpacking speedfreq-0.7.2.tar.gz to /var/tmp/portage/speedfreq-0.7.2/work
>>> Source unpacked.
make: bk: Kommando nicht gefunden
gcc -march=pentium3 -pipe -O2 -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64   -c -o speedfreq.o speedfreq.c
gcc -fpic -march=pentium3 -pipe -O2 -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64 -o libspeedfreq.po -c libspeedfreq.c
version.c updated
gcc -march=pentium3 -pipe -O2 -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64   -c -o speedfreqd.o speedfreqd.c
gcc -fpic -march=pentium3 -pipe -O2 -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64 -o version.po -c version.c
gcc -o libspeedfreq.so.1 -shared -fpic -Wl,-soname,libspeedfreq.so.1 libspeedfreq.po version.po
ln -sf libspeedfreq.so.1 libspeedfreq.so
gcc -Wl,-rpath,/usr/lib -o speedfreq speedfreq.o -L. -lspeedfreq
gcc -Wl,-rpath,/usr/lib -o speedfreqd speedfreqd.o -L. -lspeedfreq
gcc -march=pentium3 -pipe -O2 -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64 -o _speedfreqmodule.so -I/usr/include/python2.2 -shared -fpic -Wl,-soname,_speedfreqmodule.so python.c libspeedfreq.so
python.c:10:20: Python.h: Datei oder Verzeichnis nicht gefunden
python.c:14: error: Syntaxfehler before "pysf_methods"
python.c:14: Warnung: data definition has no type or storage class
python.c:15: error: Syntaxfehler before '*' token
python.c:15: Warnung: data definition has no type or storage class
python.c: In Funktion »init_speedfreq«:
python.c:23: error: `PyObject' undeclared (first use in this function)
python.c:23: error: (Each undeclared identifier is reported only once
python.c:23: error: for each function it appears in.)
python.c:23: error: `m' undeclared (first use in this function)
python.c:23: error: `d' undeclared (first use in this function)
python.c:27: error: `NULL' undeclared (first use in this function)
python.c:27: Warnung: Zuweisung erzeugt Zeiger von Ganzzahl ohne Typkonvertierung
python.c: Auf höchster Ebene:
python.c:49: error: Syntaxfehler before '*' token
python.c:50: error: Syntaxfehler before '*' token
python.c: In Funktion »pysf_connect«:
python.c:52: error: `args' undeclared (first use in this function)
python.c:53: error: `NULL' undeclared (first use in this function)
python.c:63: error: `Py_None' undeclared (first use in this function)
python.c: Auf höchster Ebene:
python.c:68: error: Syntaxfehler before '*' token
python.c:69: error: Syntaxfehler before '*' token
python.c: In Funktion »pysf_disconnect«:
python.c:71: error: `args' undeclared (first use in this function)
python.c:72: error: `NULL' undeclared (first use in this function)
python.c:77: error: `Py_None' undeclared (first use in this function)
python.c: Auf höchster Ebene:
python.c:82: error: Syntaxfehler before '*' token
python.c:83: error: Syntaxfehler before '*' token
python.c: In Funktion »pysf_shutdown«:
python.c:85: error: `args' undeclared (first use in this function)
python.c:86: error: `NULL' undeclared (first use in this function)
python.c:94: error: `Py_None' undeclared (first use in this function)
python.c: Auf höchster Ebene:
python.c:99: error: Syntaxfehler before '*' token
python.c:100: error: Syntaxfehler before '*' token
python.c: In Funktion »pysf_get_version«:
python.c:102: error: `PyObject' undeclared (first use in this function)
python.c:102: error: `ret' undeclared (first use in this function)
python.c:102: error: `NULL' undeclared (first use in this function)
python.c:104: error: `args' undeclared (first use in this function)
python.c: Auf höchster Ebene:
python.c:123: error: Syntaxfehler before '*' token
python.c:124: error: Syntaxfehler before '*' token
python.c: In Funktion »pysf__get_policy«:
python.c:127: error: `PyObject' undeclared (first use in this function)
python.c:127: error: `ret' undeclared (first use in this function)
python.c:129: error: `args' undeclared (first use in this function)
python.c:130: error: `NULL' undeclared (first use in this function)
python.c: Auf höchster Ebene:
python.c:156: error: Syntaxfehler before '*' token
python.c:157: error: Syntaxfehler before '*' token
python.c: In Funktion »pysf__get_cpu_info«:
python.c:161: error: `args' undeclared (first use in this function)
python.c:162: error: `NULL' undeclared (first use in this function)
python.c:170: Warnung: return erzeugt Zeiger von Ganzzahl ohne Typkonvertierung
python.c: Auf höchster Ebene:
python.c:174: error: Syntaxfehler before '*' token
python.c:175: error: Syntaxfehler before '*' token
python.c: In Funktion »pysf_pol_powersave«:
python.c:177: error: `args' undeclared (first use in this function)
python.c:178: error: `NULL' undeclared (first use in this function)
python.c:186: error: `Py_None' undeclared (first use in this function)
python.c: Auf höchster Ebene:
python.c:191: error: Syntaxfehler before '*' token
python.c:192: error: Syntaxfehler before '*' token
python.c: In Funktion »pysf_pol_performance«:
python.c:196: error: `args' undeclared (first use in this function)
python.c:197: error: `NULL' undeclared (first use in this function)
python.c:205: error: `Py_None' undeclared (first use in this function)
python.c: Auf höchster Ebene:
python.c:210: error: Syntaxfehler before '*' token
python.c:211: error: Syntaxfehler before '*' token
python.c: In Funktion »pysf_pol_dynamic«:
python.c:215: error: `args' undeclared (first use in this function)
python.c:216: error: `NULL' undeclared (first use in this function)
python.c:220: error: `PyExc_ValueError' undeclared (first use in this function)
python.c:242: error: `Py_None' undeclared (first use in this function)
python.c: Auf höchster Ebene:
python.c:247: error: Syntaxfehler before '*' token
python.c:248: error: Syntaxfehler before '*' token
python.c: In Funktion »pysf_pol_fixed«:
python.c:252: error: `args' undeclared (first use in this function)
python.c:253: error: `NULL' undeclared (first use in this function)
python.c:257: error: `PyExc_ValueError' undeclared (first use in this function)
python.c:268: error: `Py_None' undeclared (first use in this function)
python.c: Auf höchster Ebene:
python.c:273: error: Syntaxfehler before '*' token
python.c:274: error: Syntaxfehler before '*' token
python.c: In Funktion »pysf_get_mon_fd«:
python.c:276: error: `args' undeclared (first use in this function)
python.c:277: error: `NULL' undeclared (first use in this function)
python.c:287: Warnung: return erzeugt Zeiger von Ganzzahl ohne Typkonvertierung
python.c: Auf höchster Ebene:
python.c:291: error: Syntaxfehler before '*' token
python.c:292: error: Syntaxfehler before '*' token
python.c: In Funktion »pysf__poll«:
python.c:295: error: `PyObject' undeclared (first use in this function)
python.c:295: error: `ret' undeclared (first use in this function)
python.c:295: error: `NULL' undeclared (first use in this function)
python.c:298: error: `args' undeclared (first use in this function)
python.c:305: error: `Py_None' undeclared (first use in this function)
python.c: Auf höchster Ebene:
python.c:356: error: Syntaxfehler before "pysf_methods"
python.c:357: Warnung: geschweifte Klammern um Skalar-Initialisierung
python.c:357: Warnung: (near initialization for `pysf_methods[0]')
python.c:357: Warnung: Initialisierung erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
python.c:357: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:357: Warnung: (nahe der Initialisierung für »pysf_methods[0]«)
python.c:357: error: `METH_VARARGS' undeclared here (not in a function)
python.c:357: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:357: Warnung: (nahe der Initialisierung für »pysf_methods[0]«)
python.c:358: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:358: Warnung: (nahe der Initialisierung für »pysf_methods[0]«)
python.c:359: Warnung: geschweifte Klammern um Skalar-Initialisierung
python.c:359: Warnung: (near initialization for `pysf_methods[1]')
python.c:359: Warnung: Initialisierung erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
python.c:359: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:359: Warnung: (nahe der Initialisierung für »pysf_methods[1]«)
python.c:359: error: `METH_VARARGS' undeclared here (not in a function)
python.c:359: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:359: Warnung: (nahe der Initialisierung für »pysf_methods[1]«)
python.c:360: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:360: Warnung: (nahe der Initialisierung für »pysf_methods[1]«)
python.c:361: Warnung: geschweifte Klammern um Skalar-Initialisierung
python.c:361: Warnung: (near initialization for `pysf_methods[2]')
python.c:361: Warnung: Initialisierung erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
python.c:361: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:361: Warnung: (nahe der Initialisierung für »pysf_methods[2]«)
python.c:361: error: `METH_VARARGS' undeclared here (not in a function)
python.c:361: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:361: Warnung: (nahe der Initialisierung für »pysf_methods[2]«)
python.c:362: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:362: Warnung: (nahe der Initialisierung für »pysf_methods[2]«)
python.c:363: Warnung: geschweifte Klammern um Skalar-Initialisierung
python.c:363: Warnung: (near initialization for `pysf_methods[3]')
python.c:363: Warnung: Initialisierung erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
python.c:363: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:363: Warnung: (nahe der Initialisierung für »pysf_methods[3]«)
python.c:363: error: `METH_VARARGS' undeclared here (not in a function)
python.c:363: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:363: Warnung: (nahe der Initialisierung für »pysf_methods[3]«)
python.c:364: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:364: Warnung: (nahe der Initialisierung für »pysf_methods[3]«)
python.c:365: Warnung: geschweifte Klammern um Skalar-Initialisierung
python.c:365: Warnung: (near initialization for `pysf_methods[4]')
python.c:365: Warnung: Initialisierung erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
python.c:365: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:365: Warnung: (nahe der Initialisierung für »pysf_methods[4]«)
python.c:365: error: `METH_VARARGS' undeclared here (not in a function)
python.c:365: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:365: Warnung: (nahe der Initialisierung für »pysf_methods[4]«)
python.c:366: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:366: Warnung: (nahe der Initialisierung für »pysf_methods[4]«)
python.c:367: Warnung: geschweifte Klammern um Skalar-Initialisierung
python.c:367: Warnung: (near initialization for `pysf_methods[5]')
python.c:367: Warnung: Initialisierung erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
python.c:367: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:367: Warnung: (nahe der Initialisierung für »pysf_methods[5]«)
python.c:367: error: `METH_VARARGS' undeclared here (not in a function)
python.c:367: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:367: Warnung: (nahe der Initialisierung für »pysf_methods[5]«)
python.c:368: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:368: Warnung: (nahe der Initialisierung für »pysf_methods[5]«)
python.c:369: Warnung: geschweifte Klammern um Skalar-Initialisierung
python.c:369: Warnung: (near initialization for `pysf_methods[6]')
python.c:369: Warnung: Initialisierung erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
python.c:369: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:369: Warnung: (nahe der Initialisierung für »pysf_methods[6]«)
python.c:369: error: `METH_VARARGS' undeclared here (not in a function)
python.c:369: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:369: Warnung: (nahe der Initialisierung für »pysf_methods[6]«)
python.c:370: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:370: Warnung: (nahe der Initialisierung für »pysf_methods[6]«)
python.c:371: Warnung: geschweifte Klammern um Skalar-Initialisierung
python.c:371: Warnung: (near initialization for `pysf_methods[7]')
python.c:371: Warnung: Initialisierung erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
python.c:371: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:371: Warnung: (nahe der Initialisierung für »pysf_methods[7]«)
python.c:371: error: `METH_VARARGS' undeclared here (not in a function)
python.c:371: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:371: Warnung: (nahe der Initialisierung für »pysf_methods[7]«)
python.c:372: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:372: Warnung: (nahe der Initialisierung für »pysf_methods[7]«)
python.c:373: Warnung: geschweifte Klammern um Skalar-Initialisierung
python.c:373: Warnung: (near initialization for `pysf_methods[8]')
python.c:373: Warnung: Initialisierung erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
python.c:373: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:373: Warnung: (nahe der Initialisierung für »pysf_methods[8]«)
python.c:373: error: `METH_VARARGS' undeclared here (not in a function)
python.c:373: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:373: Warnung: (nahe der Initialisierung für »pysf_methods[8]«)
python.c:374: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:374: Warnung: (nahe der Initialisierung für »pysf_methods[8]«)
python.c:375: Warnung: geschweifte Klammern um Skalar-Initialisierung
python.c:375: Warnung: (near initialization for `pysf_methods[9]')
python.c:375: Warnung: Initialisierung erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
python.c:375: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:375: Warnung: (nahe der Initialisierung für »pysf_methods[9]«)
python.c:375: error: `METH_VARARGS' undeclared here (not in a function)
python.c:375: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:375: Warnung: (nahe der Initialisierung für »pysf_methods[9]«)
python.c:376: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:376: Warnung: (nahe der Initialisierung für »pysf_methods[9]«)
python.c:377: Warnung: geschweifte Klammern um Skalar-Initialisierung
python.c:377: Warnung: (near initialization for `pysf_methods[10]')
python.c:377: Warnung: Initialisierung erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
python.c:377: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:377: Warnung: (nahe der Initialisierung für »pysf_methods[10]«)
python.c:377: error: `METH_VARARGS' undeclared here (not in a function)
python.c:377: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:377: Warnung: (nahe der Initialisierung für »pysf_methods[10]«)
python.c:378: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:378: Warnung: (nahe der Initialisierung für »pysf_methods[10]«)
python.c:379: Warnung: geschweifte Klammern um Skalar-Initialisierung
python.c:379: Warnung: (near initialization for `pysf_methods[11]')
python.c:379: Warnung: Initialisierung erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
python.c:379: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:379: Warnung: (nahe der Initialisierung für »pysf_methods[11]«)
python.c:379: error: `METH_VARARGS' undeclared here (not in a function)
python.c:379: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:379: Warnung: (nahe der Initialisierung für »pysf_methods[11]«)
python.c:380: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:380: Warnung: (nahe der Initialisierung für »pysf_methods[11]«)
python.c:381: Warnung: geschweifte Klammern um Skalar-Initialisierung
python.c:381: Warnung: (near initialization for `pysf_methods[12]')
python.c:381: error: `NULL' undeclared here (not in a function)
python.c:381: error: Initialisierungselement ist nicht konstant
python.c:381: error: (near initialization for `pysf_methods[12]')
python.c:381: error: `NULL' undeclared here (not in a function)
python.c:381: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:381: Warnung: (nahe der Initialisierung für »pysf_methods[12]«)
python.c:381: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:381: Warnung: (nahe der Initialisierung für »pysf_methods[12]«)
python.c:381: error: `NULL' undeclared here (not in a function)
python.c:381: Warnung: Elementüberschreitung in Skalar-Initialisierung
python.c:381: Warnung: (nahe der Initialisierung für »pysf_methods[12]«)
python.c:381: error: Initialisierungselement ist nicht konstant
python.c:381: error: (near initialization for `pysf_methods[12]')
python.c:382: Warnung: data definition has no type or storage class
make: *** [_speedfreqmodule.so] Fehler 1

!!! ERROR: sys-apps/speedfreq-0.7.2 failed.
!!! Function src_compile, Line 33, Exitcode 2
!!! compile of speedfreq failed


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 2 Christian Bartels 2004-03-02 08:25:04 UTC
Hi again,

the problem is the wrong include path of python. because i do not know how to fix the makefile (or whatever) i just did a ln -s /usr/include/python2.3 /usr/include/python2.2 and speedfreq compiles.
Comment 3 Cyril Jaquier 2004-03-15 12:37:48 UTC
Same problem using python-2.3.3. Speedfreq looks for /usr/include/python2.2 but only /usr/include/python2.3 is present on the system. Create a symlink to python2.3 and speedfreq compiles fine.
Comment 4 SpanKY gentoo-dev 2004-03-28 00:33:41 UTC
0.7.2-r1 fixes this
Comment 5 SpanKY gentoo-dev 2004-03-28 00:34:21 UTC
*** Bug 45024 has been marked as a duplicate of this bug. ***