tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Re: lang/python24: Remove no-nis from PLIST, add QNX

> On Mon, Jun 09, 2008 at 01:53:33PM +0200, Christian Leutloff wrote:
> > What is the usage of a module named on NetBSD or IRIX? 
> > Python is not searching for modules with an inserted _failed.

> Sure, but it is *installing* one. I have no idea why.

Because it is located in the lib directory. I can easily document the case for 
the zlib extension (many paths deleted -L/-I):

building 'zlib' extension
gcc -c zlibmodule.c -o zlibmodule.o
qcc -shared -Wl,-E zlibmodule.o -lz -lpython2.5 -o 
unknown symbol: inflateCopy
*** WARNING: renaming "zlib" since importing it failed: Unresolved symbols
running build_scripts
running install_lib
copying build/lib.qnx-6.3.2-x86pc-2.5/ -> 

In the zlib extension is build. Afterwards it is loaded. This fails. 
The result is

$ cd work/Python-2.5.2/build/lib.qnx-6.3.2-x86pc-2.5/ && ls -l zlib*
-rwxr-xr-x  1 root      root          21484 Jun 10 12:40

Here is the manual load of the renamed module
$ ../../python
Python 2.5.2 (r252:60911, Jun 10 2008, 12:36:26)
[GCC 3.3.5 (qnx-nto)] on qnx6
>>> import zlib_failed
unknown symbol: inflateCopy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: Unresolved symbols

On QNX with no NIS support at all the build of the extension fails completely:

e.g. because of
work/Python-2.5.2/Modules/nismodule.c:18:28: rpcsvc/yp_prot.h: No such file or 
There is no nis module at all:

$ cd work/Python-2.5.2/build/lib.qnx-6.3.2-x86pc-2.5/ && ls -l *nis*
ls: No such file or directory (*nis*)

If NIS is expected to be supported and the build process generates a, then it
was not possible to load the generated

Is this explanation sufficient?


Christian Leutloff, Aachen, Germany
In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! 
Nur 3,99 EUR/Monat!

Home | Main Index | Thread Index | Old Index