Building Python 2.2.2 - configure error

nraavi_news at yahoo.com nraavi_news at yahoo.com
Tue Apr 29 19:57:28 EDT 2003


Hi,

I am trying to configure Python2.2.2 on Alpha (running Tru64 UNIX
V4.0F, C compiler V6.4) with Tcl/Tk support and keep getting an error
about unresolved symbols in the Tk library when running configure.

A sample of the errors are:
22124:./conftest: /sbin/loader: Error: Unresolved symbol in
/opt/tcl/lib/libtk8.4.so: XCreatePixmapCursor
22124:./conftest: /sbin/loader: Error: Unresolved symbol in
/opt/tcl/lib/libtk8.4.so: XUngrabKeyboard
22124:./conftest: /sbin/loader: Error: Unresolved symbol in
/opt/tcl/lib/libtk8.4.so: XUngrabPointer
22124:./conftest: /sbin/loader: Error: Unresolved symbol in
/opt/tcl/lib/libtk8.4.so: XDrawString
...
...
...
22124:./conftest: /sbin/loader: Error: Unresolved symbol in
/opt/tcl/lib/libtk8.4.so: XFillPolygon
22124:./conftest: /sbin/loader: Error: Unresolved symbol in
/opt/tcl/lib/libtk8.4.so: XDrawString16
22124:./conftest: /sbin/loader: Error: Unresolved symbol in
/opt/tcl/lib/libtk8.4.so: XQueryPointer
resolve_symbols: loader error: dlopen: Unresolved symbols

ALL these symbols exist in the library. To help isolate the problem, I
create confdefs.h with the following line:
#define _POSIX_THREADS 1

conftest.c is:
-----------------------------
#line 4191 "configure"
#include "confdefs.h"
#include <pthread.h>
      void *foo(void *parm) {
        return NULL;
      }
      main() {
        pthread_attr_t attr;
        pthread_t id;
        if (pthread_attr_init(&attr)) exit(-1);
        if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM))
exit(-1);
        if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
        exit(0);
      }
----------------------------

Compiled the program using:
cc -o conftest conftest.c -I/opt/tcl/include -L/opt/tcl/lib -lm
-ltcl8.4 -ltk8.4 -lpthread

I get these unresolved symbols when I run conftest. My environment
variables are:

PATH=/opt/tcl/bin:.......
LD_LIBRARY_PATH=/opt/tcl/lib:/usr/shlib:

I've installed both Tcl 8.4.2 and Tk 8.4.2 in the same directory
/opt/tcltk. /opt/tcl and /opt/tk are links to /opt/tcltk. Tcl and Tk
both pass all the tests.

I would appreciate any help in debugging this matter. Please post your
response.

Thank you,

-Narendra




More information about the Python-list mailing list