Mailing List Archive

building an extension
Hi
Trying to built an extension (image python) ,and after make -f
Makefile.pre.in boot
and again doing make ,I had the results
--first imaging.c,decode.c,encode.c,map.c,display.c,path.c, are
compiled, and then
---during imaging.so linking I get the message
"/usr/i486-linux/bin/ld:cannot open -lz: Nosuch file or directory"
My system is a Suse6.0Linux on a pentium100
I apreciated if someone helped me
Thank you
Costas
vlachid@otenet.gr
building an extension [ In reply to ]
On Thu, 27 May 1999, Vlachidis Costas wrote:

> Hi
> Trying to built an extension (image python) ,and after make -f
...
> "/usr/i486-linux/bin/ld:cannot open -lz: Nosuch file or directory"
> My system is a Suse6.0Linux on a pentium100
> I apreciated if someone helped me

Several random suggestions:

Apparently your module is linked against the libz.so (compression) library
and the dynamic loader can't find it at run time.

Do you have libz.so installed? It should be in /usr/lib or
/usr/local/lib.

It seems a little odd that you are running /usr/i486-linux/bin/ld as the
loader.

Run ldd <myextension_module.so> and see what libraries it depends on.

You may also need to run ldconfig

Good luck.

Travis Oliphant