From: Rick K. <rk...@nc...> - 2006-01-11 13:50:58
|
Tirath, Thanks for sending the config.log output - those things are pretty long but are helpful when trying to see what's happening during the build and install on someone's machine. I think I may have a clue as to what's going on: On Wed, 11 Jan 2006, Tirath Ramdas wrote: > I tried setting TCLLIB="/usr/local/share/perfsuite/tcllib/pshwpc/". > With this, doing `package require pspapi` results in: > > "couldn't load file "/usr/local/lib/papi/libpspapi.so": /usr/local/ > lib/papi/libpspapi.so: cannot open shared object file: No such file > or directory". > > I tried to find libpspapi.so (`sudo find /usr -name libpspapi.so`... > that includes /usr/source) but no such file was found. > > Find attached the full config.log. > The library in question (pspapi) is a C-coded Tcl extension that's part of PerfSuite that exposes a portion of PAPI to Tcl scripts. psprocess is a Tcl script that uses it (the small graphical utility psconfig does as well). When PerfSuite is built, it has to check that the Tcl development libraries and header files are available on the target machine, which it does during the "configure" process. Here are the relevant portions from your configure output: configure:21992: checking for use of Tcl library configure:22019: gcc -c -g -O2 conftest.c >&5 conftest.c:2:21: tcl.h: No such file or directory conftest.c: In function `main': conftest.c:7: error: `Tcl_AppInit' undeclared (first use in this function) conftest.c:7: error: (Each undeclared identifier is reported only once conftest.c:7: error: for each function it appears in.) configure:22025: $? = 1 configure: failed program was: | | #include <tcl.h> | int main(argc, argv) | int argc; | char **argv; | { | Tcl_Main(argc,argv,Tcl_AppInit); | exit(0); | } | configure:22048: result: failed ... so I think that what might be going on here is that your system currently lacks the Tcl development packages and only has the prebuilt Tcl libraries and shells. I'm not familiar with Debian but a Google search resulted in a package called "tcl-devel" that looks promising. You might try installing the Tcl development things (you don't need Tk, which is a related package), reconfiguring PerfSuite, and trying again. If configure no longer complains at the above tests and if you see a subdirectory in $PREFIX/lib called "papi" after installation, we've located the culprit. Rick |