Help: Python1.4b won't compile on ELF-Linux 
Author Message
 Help: Python1.4b won't compile on ELF-Linux

I'm trying to compile a tkinter python on the Slackware Linux 2.0 system
I just installed, and I get the following error on the final link:

gcc  -O  -rdynamic main.o config.o getpath.o \
        libModules.a ../Python/libPython.a ../Objects/libObjects.a
../Parser/libParser.a -L/usr/lib -L/usr/X11/lib -ltk -ltcl -lX11  
-L/usr/local/lib -lgdbm    -lieee  -lm  -o python
/usr/lib/libtcl.so: undefined reference to `dlerror'
/usr/lib/libtcl.so: undefined reference to `dlopen'
/usr/lib/libtcl.so: undefined reference to `dlsym'
make[1]: *** [../python] Error 1
make[1]: Leaving directory `/usr/local/src/Python1.4beta3/Modules'
make: *** [python] Error 2

I don't know much about the details of compiling ELF, so I'm at a bit of
a loss.  I do have a /lib/libdl.so.1.7.14 if that's relavent.
Thanks for any insight.

-Dave



Wed, 24 Mar 1999 03:00:00 GMT  
 Help: Python1.4b won't compile on ELF-Linux

: I'm trying to compile a tkinter python on the Slackware Linux 2.0 system
: I just installed, and I get the following error on the final link:

: gcc  -O  -rdynamic main.o config.o getpath.o \
:         libModules.a ../Python/libPython.a ../Objects/libObjects.a
: ../Parser/libParser.a -L/usr/lib -L/usr/X11/lib -ltk -ltcl -lX11  
: -L/usr/local/lib -lgdbm    -lieee  -lm  -o python
: /usr/lib/libtcl.so: undefined reference to `dlerror'
: /usr/lib/libtcl.so: undefined reference to `dlopen'
: /usr/lib/libtcl.so: undefined reference to `dlsym'

: I don't know much about the details of compiling ELF, so I'm at a bit of
: a loss.  I do have a /lib/libdl.so.1.7.14 if that's relavent.
: Thanks for any insight.

That *should* be the solution IMHO. Just link with additional -ldl which is
the library containing dlerror, dlopen, dlsym.

Did configure find libdl ?

-- Matthias

: -Dave



Thu, 25 Mar 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. rxsock won't compile under linux

2. Compile GCL for Linux/ELF

3. vtk with Python1.5 won't build

4. compiling error: ELF file's phentsize not the expected size

5. HELP: Tasm Windows DLL example won't compile/link

6. ELF-Linux, g77-0.5.18/19 and Patrick Queutey's benchmark code

7. HELP: Tk 8.0b2 won't compile...

8. HELP: 3 liner won't run on linux

9. HELP: 3 liner won't run on Linux

10. Help! Img won't load PNGs (linux)

11. help: compiling with -g doesn't work in Linux

12. App on new Machine Won't Compile

 

 
Powered by phpBB® Forum Software