Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Lua built without DLOPEN?: (4 Items)
   
Lua built without DLOPEN?  
Hello,

I'm playing with Lua;and it seems that binary package
ftp://ftp.netbsd.org/pub/pkgsrc/packages/QNX/i386/6.5.0_head_20101224/lang/lua-5.1.4nb2.tgz

It is unable to load a C DLL, gives error message about dlopen not configured. In the source makefile indeed there is 
option that controls this.

Could someone give a hint why this option was excluded for QNX? If this was not intentional, could someone fix it? 

Meanwhile I'd try to build it myself from source on netbsd.org.
Which of these build targets in the makefile are best suitable for QNX 6.5: 
{ bsd freebsd generic linux macosx posix } ?

Also, I've tried to use Python 2.6 with Ctype module, but could not get it to work as well. It fails to load _ctype 
module with message "library load failed". Just cannot get past this. Does it work for anyone?

Thanks and regards,
- s.
Re: Lua built without DLOPEN?  
On Tue, May 31, 2011 at 06:15:25PM -0400, Saul A wrote:
> Hello,
> 
> I'm playing with Lua;and it seems that binary package
> ftp://ftp.netbsd.org/pub/pkgsrc/packages/QNX/i386/6.5.0_head_20101224/la
> ng/lua-5.1.4nb2.tgz
> 
> It is unable to load a C DLL, gives error message about dlopen not
> configured. In the source makefile indeed there is option that controls
> this.
> 
> Could someone give a hint why this option was excluded for QNX?

It wasn't touched so the generic build was used.

> If this
> was not intentional, could someone fix it? 

Yes.

> 
> Meanwhile I'd try to build it myself from source on netbsd.org.
> Which of these build targets in the makefile are best suitable for QNX
> 6.5: 
> { bsd freebsd generic linux macosx posix } ?

I suggest using the source from the pkgsrc project on foundry27 for now.
Try the attached diff.

> 
> Also, I've tried to use Python 2.6 with Ctype module, but could not get
> it to work as well. It fails to load _ctype module with message "library
> load failed". Just cannot get past this. Does it work for anyone?

Seems to work for me:

/home/seanb >/usr/pkg/bin/python2.6
Python 2.6.6 (r266:84292, Dec 29 2010, 15:30:53) 
[GCC 4.4.2] on qnx6
Type "help", "copyright", "credits" or "license" for more information.
>>> import _ctypes
>>>
Attachment: Text diff 448 bytes
Re: Lua built without DLOPEN?  
Thank you, Sean, ctypes in Python indeed works.

Python installation on my machine is broken. I've installed in on a clean machine.
I've tried to delete it and reinstall, but don't know how to do this.

I tried:

# pkg_admin delete -r python26-2.6.6nb4
(no output)
# pkg_add python26
pkg_add: package  `python26-2.6.6nb4' already recorded as installed

???
So what  is the correct way to erase the package and force re-install?

Also, it seems that in the source svn ( http://community.qnx.com/svn/repos/pkgsrc ) there are only patches??

Where is the source itself, or what is the base of these patches?

I am very sorry for stupid beginner questions, still very new to this :-(

Regards,
S.
Re: Lua built without DLOPEN?  
On Wed, Jun 01, 2011 at 11:35:35PM -0400, Saul A wrote:
> Thank you, Sean, ctypes in Python indeed works.
> 
> Python installation on my machine is broken. I've installed in on a
> clean machine.
> I've tried to delete it and reinstall, but don't know how to do this.
> 
> I tried:
> 
> # pkg_admin delete -r python26-2.6.6nb4
> (no output)
> # pkg_add python26
> pkg_add: package  `python26-2.6.6nb4' already recorded as installed
> 
> ???
> So what  is the correct way to erase the package and force re-install?

I usually use 'pkg_delete',

> 
> Also, it seems that in the source svn (
> http://community.qnx.com/svn/repos/pkgsrc ) there are only patches??
> 
> Where is the source itself, or what is the base of these patches?

Check out the bootstrap page:

http://community.qnx.com/sf/wiki/do/viewPage/projects.pkgsrc/wiki/Bootstrap

Yes pkgsrc is mostly patches.  This is the same as the NetBSD tree.

> 
> I am very sorry for stupid beginner questions, still very new to this
> :-(
> 
> Regards,
> S.
> 
> 
> 
> 
> _______________________________________________
> 
> PkgInfo
> http://community.qnx.com/sf/go/post86371
>