LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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



Reply
 
Search this Thread
Old 10-16-2004, 08:45 PM   #1
whitehole
LQ Newbie
 
Registered: Oct 2004
Distribution: Fedora Core 2 (x86 arc)
Posts: 5

Rep: Reputation: 0
superkaramba and python


FC2, AMD64
python and python-devel are both installed and are version 2.3.4
python is found in /usr/lib64/python2.3
my kde prefix is /usr

I extracted the source and ran
Code:
./configure --enable-libsuffix=64 --with-qt-dir=/usr/lib64/qt-3.3/ --with-qt-libraries=/usr/lib64/qt-3.3/lib/ --prefix=`kde-config --prefix`
The ./configure was sucessful. However, the make was not.
Code:
 [whitehole@lumiere superkaramba-0.34]$ make
make  all-recursive
make[1]: Entering directory `/home/whitehole/installs/superkaramba-0.34'
Making all in doc
make[2]: Entering directory `/home/whitehole/installs/superkaramba-0.34/doc'
Making all in .
make[3]: Entering directory `/home/whitehole/installs/superkaramba-0.34/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/whitehole/installs/superkaramba-0.34/doc'
Making all in en
make[3]: Entering directory `/home/whitehole/installs/superkaramba-0.34/doc/en'
/usr/bin/meinproc --check --cache index.cache.bz2 ./index.docbook
make[3]: Leaving directory `/home/whitehole/installs/superkaramba-0.34/doc/en'
make[2]: Leaving directory `/home/whitehole/installs/superkaramba-0.34/doc'
Making all in po
make[2]: Entering directory `/home/whitehole/installs/superkaramba-0.34/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/whitehole/installs/superkaramba-0.34/po'
Making all in src
make[2]: Entering directory `/home/whitehole/installs/superkaramba-0.34/src'
make[3]: Entering directory `/home/whitehole/installs/superkaramba-0.34/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib64/qt-3.3//incl
ude -I/usr/X11R6/include     -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dt
or -Wno-long-long -Wundef -pedantic -W -Wpointer-arith -Wmissing-prototypes -ans
i -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exception
s -fno-check-new  -MT main.o -MD -MP -MF ".deps/main.Tpo" \
  -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
main.cpp:6:20: Python.h: No such file or directory
In file included from main.cpp:24:
karamba.h:5:20: Python.h: No such file or directory
In file included from karamba.h:57,
                 from main.cpp:24:
imagelabel.h:12:20: Python.h: No such file or directory
In file included from imagelabel.h:24,
                 from karamba.h:57,
                 from main.cpp:24:
karamba.h:5:20: Python.h: No such file or directory
In file included from main.cpp:24:
karamba.h:191: error: syntax error before `*' token
karamba.h:192: error: syntax error before `*' token
main.cpp:44: error: syntax error before `*' token
main.cpp: In function `int main(int, char**)':
main.cpp:100: error: `Py_Initialize' undeclared (first use this function)
main.cpp:100: error: (Each undeclared identifier is reported only once for each
   function it appears in.)
main.cpp:103: error: `PyEval_InitThreads' undeclared (first use this function)
main.cpp:105: error: `mainThreadState' undeclared (first use this function)
main.cpp:108: error: `PyThreadState_Get' undeclared (first use this function)
main.cpp:111: error: `PyEval_ReleaseLock' undeclared (first use this function)
main.cpp:141: error: `PyInterpreterState' undeclared (first use this function)
main.cpp:141: error: `mainInterpreterState' undeclared (first use this
   function)
main.cpp:143: error: `PyThreadState' undeclared (first use this function)
main.cpp:143: error: `myThreadState' undeclared (first use this function)
main.cpp:143: error: `PyThreadState_New' undeclared (first use this function)
main.cpp:144: error: `PyThreadState_Swap' undeclared (first use this function)
main.cpp:145: error: `PyEval_AcquireLock' undeclared (first use this function)
main.cpp:146: error: `Py_Finalize' undeclared (first use this function)
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/home/whitehole/installs/superkaramba-0.34/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/whitehole/installs/superkaramba-0.34/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/whitehole/installs/superkaramba-0.34'
make: *** [all] Error 2
It claims that Python.h doesn't exist. However, the file is in plain sight at /usr/include/python2.3/Python.h

I am supposing that it doesn't see it and that that is why I am getting an error. How do I help it find Python.h?
 
Old 10-16-2004, 09:17 PM   #2
Zurvan
LQ Newbie
 
Registered: Sep 2004
Location: Boston
Distribution: debian, solaris, fedora
Posts: 25

Rep: Reputation: 15
I am having the same problem too. The same general setup with FC2 and 64bit arch.

-Z
 
Old 10-17-2004, 11:04 AM   #3
whitehole
LQ Newbie
 
Registered: Oct 2004
Distribution: Fedora Core 2 (x86 arc)
Posts: 5

Original Poster
Rep: Reputation: 0
Ok, I made symbolic links for everything in the /usr/include/python2.3 directory into just /usr/include but when I run make, I now have a different problem. I get a very large number of errors. In fact, it goes beyond what I have my terminal window scroll to.

Code:
: undefined reference to `PyList_Append'
task_python.o(.text+0xa92): In function `py_get_startup_list(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
widget_python.o(.text+0x39): In function `py_get_widget_position(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
widget_python.o(.text+0x65): In function `py_get_widget_position(_object*, _object*)':
: undefined reference to `Py_BuildValue'
widget_python.o(.text+0x239): In function `py_create_widget_mask(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
widget_python.o(.text+0x25d): In function `py_create_widget_mask(_object*, _object*)':
: undefined reference to `Py_BuildValue'
widget_python.o(.text+0x2a2): In function `py_redraw_widget_background(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
widget_python.o(.text+0x2c0): In function `py_redraw_widget_background(_object*, _object*)':
: undefined reference to `Py_BuildValue'
widget_python.o(.text+0x302): In function `py_redraw_widget(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
widget_python.o(.text+0x320): In function `py_redraw_widget(_object*, _object*)':
: undefined reference to `Py_BuildValue'
widget_python.o(.text+0x36c): In function `py_resize_widget(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
widget_python.o(.text+0x394): In function `py_resize_widget(_object*, _object*)':
: undefined reference to `Py_BuildValue'
widget_python.o(.text+0x3ec): In function `py_move_widget(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
widget_python.o(.text+0x414): In function `py_move_widget(_object*, _object*)':
: undefined reference to `Py_BuildValue'
menu_python.o(.text+0x82): In function `py_create_menu(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
menu_python.o(.text+0xa0): In function `py_create_menu(_object*, _object*)':
: undefined reference to `Py_BuildValue'
menu_python.o(.text+0x159): In function `py_delete_menu(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
menu_python.o(.text+0x17d): In function `py_delete_menu(_object*, _object*)':
: undefined reference to `Py_BuildValue'
menu_python.o(.text+0x245): In function `py_add_menu_item(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
menu_python.o(.text+0x310): In function `py_add_menu_item(_object*, _object*)':
: undefined reference to `Py_BuildValue'
menu_python.o(.text+0x429): In function `py_add_menu_separator(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
menu_python.o(.text+0x44d): In function `py_add_menu_separator(_object*, _object*)':
: undefined reference to `Py_BuildValue'
menu_python.o(.text+0x4cc): In function `py_remove_menu_item(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
menu_python.o(.text+0x4f4): In function `py_remove_menu_item(_object*, _object*)':
: undefined reference to `Py_BuildValue'
menu_python.o(.text+0x5b3): In function `py_popup_menu(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
menu_python.o(.text+0x5e1): In function `py_popup_menu(_object*, _object*)':
: undefined reference to `Py_BuildValue'
collect2: ld returned 1 exit status
make[3]: *** [superkaramba] Error 1
make[3]: Leaving directory `/home/whitehole/installs/superkaramba-0.34/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/whitehole/installs/superkaramba-0.34/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/whitehole/installs/superkaramba-0.34'
make: *** [all] Error 2
 
Old 02-11-2005, 08:49 AM   #4
bdox
Member
 
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110

Rep: Reputation: 15
solved??

I'm having the same problem... FC3 AMD64, did you solve the problem??
can anybody else help?
 
Old 02-11-2005, 12:42 PM   #5
Zurvan
LQ Newbie
 
Registered: Sep 2004
Location: Boston
Distribution: debian, solaris, fedora
Posts: 25

Rep: Reputation: 15
No, I did not.

I hope someone else can take a shot at it, as I never got it to work at all.

-- Z
 
Old 02-15-2005, 11:43 AM   #6
p0z3r
Member
 
Registered: Apr 2004
Posts: 88

Rep: Reputation: 15
Read through this forum post please:
http://sourceforge.net/forum/forum.p...forum_id=67470

-Ryan
 
Old 02-17-2005, 10:18 AM   #7
bdox
Member
 
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110

Rep: Reputation: 15
I had the same (FC3-64 - sk0.35) problem (Python.h: No such file or directory), then keefaz told me to do:
Code:
$ export CFLAGS=-I/usr/include/python2.3/ 
$ export LDFLAGS=$CFLAGS 
$ export CPPFLAGS=$CFLAGS 
$ export CXXFLAGS=$CFLAGS
And then /.configure (mine is:
Code:
./configure --with-qt-dir=/usr/lib64/qt-3.3/ --with-qt-includes=/usr/lib64/qt-3.3/include/  --with-qt-libraries=/usr/lib64/qt-3.3/lib/ --with-pythondir=/usr/include/python2.3/
)

Then the "Python.h: No such file or directory" error went away and something seemed to work as the 'make' went MUCH longer, but after some mins...

/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-longundef -pedantic -W -Wpointer-arith -Wmissing-prototypes -ansi -D_XOPEN_SOURCE=500 -D_BSD_URCE -Wcast-align -Wconversion -O2 -I/usr/include/python2.3/ -fno-exceptions -fno-check-n -I/usr/include/python2.3/ -o superkaramba -Wl,-export-dynamic -R /usr/lib64 -R /usr/l64/qt-3.3/lib/ -R /usr/X11R6/lib64 -L/usr/X11R6/lib64 -L/usr/lib64/qt-3.3/lib/ -L/usr/lib main.o karamba.o meter.o bar.o sensor.o datesensor.o textlabel.o memsensor.o uptimessor.o cpusensor.o networksensor.o imagelabel.o graph.o xmmssensor.o programsensor.o diskssor.o sensorparams.o sensorsensor.o textfilesensor.o clickarea.o noatunsensor.o karambaropixmap.o clickmap.o rsssensor.o textfield.o taskmanager.o showdesktop.o richtextlabel.o kambasessionmanaged.o welcomeform.o systemtray.o bar_python.o meter_python.o textlabel_pytn.o richtextlabel_python.o imagelabel_python.o config_python.o misc_python.o systray_pyth.o task_python.o widget_python.o menu_python.o themelistwindow.o karambalistboxitem.o gra_python.o karambainterface.o karambaapp.o karamba_python.o dcopinterface_skel.o dcopinterce_stub.o themelistwindow.moc.o cpusensor.moc.o sensor.moc.o datesensor.moc.o textlabel.m.o programsensor.moc.o bar.moc.o rsssensor.moc.o imagelabel.moc.o richtextlabel.moc.o climap.moc.o sensorsensor.moc.o clickarea.moc.o systemtray.moc.o welcomeform.moc.o disksensomoc.o memsensor.moc.o meter.moc.o xmmssensor.moc.o networksensor.moc.o graph.moc.o textfisensor.moc.o -lkio -lXpm -lkdeui
bar_python.o(.text+0x5c8): In function `py_getBarImage(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
bar_python.o(.text+0x617): In function `py_getBarImage(_object*, _object*)':
: undefined reference to `Py_BuildValue'
...
...
...
karamba_python.o(.text+0x705): In function `KarambaPython::menuOptionChanged(karamba*, QSing, bool)':
: undefined reference to `Py_BuildValue'
karamba_python.o(.text+0x73c): In function `KarambaPython::menuItemClicked(karamba*, KPopMenu*, long)':
: undefined reference to `Py_BuildValue'
karamba_python.o(.text+0x76c): more undefined references to `Py_BuildValue' follow
karamba_python.o(.text+0x1f): In function `KarambaPython::initPython()':
: undefined reference to `PyEval_ReleaseLock'
karamba_python.o(.text+0x51): In function `KarambaPython::getLock(_ts**)':
: undefined reference to `PyThreadState_Swap'
karamba_python.o(.text+0x86): In function `KarambaPython::shutdownPython()':
: undefined reference to `Py_Finalize'
karamba_python.o(.text+0xad): In function `KarambaPython::releaseLock(_ts*)':
: undefined reference to `PyEval_ReleaseLock'
collect2: ld returned 1 exit status
make[3]: *** [superkaramba] Error 1
make[3]: Leaving directory `/home/aaa/tmp/local/src/superkaramba-0.35/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/aaa/tmp/local/src/superkaramba-0.35/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/aaa/tmp/local/src/superkaramba-0.35'
make: *** [all] Error 2


can Anybody help =/ ???

Last edited by bdox; 02-18-2005 at 06:23 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python+Superkaramba onelung02 Linux - Software 5 05-01-2005 03:57 PM
Superkaramba Python Problems mattdev121 Linux - Software 2 01-21-2005 06:16 PM
superkaramba python error true_atlantis Linux - Software 0 12-25-2003 02:31 AM
python problems with superkaramba Tyir Linux - Software 1 11-30-2003 12:42 PM
Python modules in Superkaramba wakeupbomb Linux - Software 12 08-03-2003 06:55 PM


All times are GMT -5. The time now is 10:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration