[perl #37258] [PATCH] loadlib and libraries with '.' in the name

2009-07-18 Thread James Keenan via RT
I have moved this ticket to the Trac system: https://trac.parrot.org/parrot/ticket/850. Please continue discussion there. Thank you very much. kid51

Re: loadlib and libraries with '.' in the name

2005-10-04 Thread Ask Bjoern Hansen
[EMAIL PROTECTED] (Joshua Juran) writes: [...] Google for NCI gtk. There is also a weekly summary entry but the xrl.us shortcut seems to have expired. If I found the same link you found then it's not the xrl.us shortcut - http://xrl.us/cw78 - but the Google group link that stopped working.

Re: loadlib and libraries with '.' in the name

2005-09-26 Thread Piers Cawley
Joshua Juran [EMAIL PROTECTED] writes: On Sep 23, 2005, at 3:47 AM, Leopold Toetsch wrote: On Sep 23, 2005, at 7:51, Ross McFarland wrote: i was planning on playing around with gtk+ bindings and parrot and went about looking around for the work that had already been done and didn't turn

Re: loadlib and libraries with '.' in the name

2005-09-26 Thread Peter Sinnott
On Mon, Sep 26, 2005 at 02:12:49PM +0100, Piers Cawley wrote: Joshua Juran [EMAIL PROTECTED] writes: On Sep 23, 2005, at 3:47 AM, Leopold Toetsch wrote: http://groups.google.com/[EMAIL PROTECTED] any time soon. You're welcome to write your own summaries that do use the full URLs of

[perl #37258] loadlib and libraries with '.' in the name

2005-09-25 Thread via RT
# New Ticket Created by Ross # Please include the string: [perl #37258] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=37258 email thread discussing the issue:

Re: loadlib and libraries with '.' in the name

2005-09-24 Thread Leopold Toetsch
On Sep 24, 2005, at 6:36, Ross McFarland wrote: On Sep 22, 2005, at 10:51 PM, Ross McFarland wrote: i was playing around with NCI stuff tonight and ran across a problem in loadlib. the following code does not work: for those of you interested:

Re: loadlib and libraries with '.' in the name

2005-09-24 Thread Ross McFarland
On Sep 24, 2005, at 4:59 AM, Leopold Toetsch wrote: On Sep 24, 2005, at 6:36, Ross McFarland wrote: On Sep 22, 2005, at 10:51 PM, Ross McFarland wrote: i was playing around with NCI stuff tonight and ran across a problem in loadlib. the following code does not work: for those

Re: loadlib and libraries with '.' in the name

2005-09-24 Thread Leopold Toetsch
On Sep 24, 2005, at 17:30, Ross McFarland wrote: On Sep 24, 2005, at 4:59 AM, Leopold Toetsch wrote: - I don't understand the extra check: +if (path) +goto done; extra as in one last or extra as in why i'm checking at all? The test 'if (path)'. Before that is an 'if'

Re: loadlib and libraries with '.' in the name

2005-09-24 Thread Ross McFarland
On Sep 24, 2005, at 9:04 AM, Leopold Toetsch wrote: On Sep 24, 2005, at 17:30, Ross McFarland wrote: On Sep 24, 2005, at 4:59 AM, Leopold Toetsch wrote: - I don't understand the extra check: +if (path) +goto done; extra as in one last or extra as in why i'm

Re: loadlib and libraries with '.' in the name

2005-09-24 Thread Bob Rogers
From: Ross McFarland [EMAIL PROTECTED] Date: Sat, 24 Sep 2005 08:30:23 -0700 On Sep 24, 2005, at 4:59 AM, Leopold Toetsch wrote: On Sep 24, 2005, at 6:36, Ross McFarland wrote: . . . i'll work on porting the pir to a .t test at some point if that would be

Re: loadlib and libraries with '.' in the name

2005-09-23 Thread Ross McFarland
On Sep 22, 2005, at 11:00 PM, Amos Robinson wrote: Could we try loading it without any changes, and if that doesn't work, strip the last .? my first thoughts were not to do that much tear up for fear of fixing this bug, but introducing others. i'm in the processing of thinking through

Re: loadlib and libraries with '.' in the name

2005-09-23 Thread Amos Robinson
I don't suppose we could really set up test cases for this sort of thing, could we? On Fri, 23 Sep 2005 16:10:32 +1000, Ross McFarland [EMAIL PROTECTED] wrote: On Sep 22, 2005, at 11:00 PM, Amos Robinson wrote: Could we try loading it without any changes, and if that doesn't work,

Re: loadlib and libraries with '.' in the name

2005-09-23 Thread Ross McFarland
On Sep 22, 2005, at 11:32 PM, Amos Robinson wrote: I don't suppose we could really set up test cases for this sort of thing, could we? cross platform it would be tough b/c you need to know the full path to something you can load. i've got a testcase that given a lib's full path info it

Re: loadlib and libraries with '.' in the name

2005-09-23 Thread chromatic
On Thu, 2005-09-22 at 23:43 -0700, Ross McFarland wrote: cross platform it would be tough b/c you need to know the full path to something you can load. Does it help to use libnci_test? That's what t/pmc/nci.t uses. (It's late and I've only skimmed the code right now, so it may not be

Re: loadlib and libraries with '.' in the name

2005-09-23 Thread Ross McFarland
On Sep 23, 2005, at 12:00 AM, chromatic wrote: On Thu, 2005-09-22 at 23:43 -0700, Ross McFarland wrote: cross platform it would be tough b/c you need to know the full path to something you can load. Does it help to use libnci_test? That's what t/pmc/nci.t uses. (It's late and I've

Re: loadlib and libraries with '.' in the name

2005-09-23 Thread Leopold Toetsch
On Sep 23, 2005, at 7:51, Ross McFarland wrote: i was playing around with NCI stuff tonight and ran across a problem in loadlib. the following code does not work: .local pmc lib_gtk lib_gtk = loadlib libgtk-x11-2.0 The need for such libnames arises typically on debian and alikes,

Re: loadlib and libraries with '.' in the name

2005-09-23 Thread Roger Browne
Ross McFarland [EMAIL PROTECTED] i'm not really sure what the solution here would be. you'd have to know what all of the possible extension types were and look to remove them if found... How about removing the extension only if the rightmost dot is followed by a letter? Regards, Roger

Re: loadlib and libraries with '.' in the name

2005-09-23 Thread Jonathan Worthington
Ross McFarland [EMAIL PROTECTED] wrote: there's also a really hacky win32 thing tacked on the end that removes the lib from the front, but it would only work for cases without a path. i can do the same, but that's pretty broken as is and it would seem you'd need to do the opposite if the

Re: loadlib and libraries with '.' in the name

2005-09-23 Thread Ross McFarland
On Sep 23, 2005, at 12:47 AM, Leopold Toetsch wrote: On Sep 23, 2005, at 7:51, Ross McFarland wrote: i was playing around with NCI stuff tonight and ran across a problem in loadlib. the following code does not work: .local pmc lib_gtk lib_gtk = loadlib libgtk-x11-2.0 The need

Re: loadlib and libraries with '.' in the name

2005-09-23 Thread Ross McFarland
On Sep 23, 2005, at 3:43 AM, Roger Browne wrote: Ross McFarland [EMAIL PROTECTED] i'm not really sure what the solution here would be. you'd have to know what all of the possible extension types were and look to remove them if found... How about removing the extension only if the

Re: loadlib and libraries with '.' in the name

2005-09-23 Thread Ross McFarland
On Sep 23, 2005, at 4:41 AM, Jonathan Worthington wrote: Ross McFarland [EMAIL PROTECTED] wrote: there's also a really hacky win32 thing tacked on the end that removes the lib from the front, but it would only work for cases without a path. i can do the same, but that's pretty broken

Re: loadlib and libraries with '.' in the name

2005-09-23 Thread Joshua Juran
On Sep 23, 2005, at 3:47 AM, Leopold Toetsch wrote: On Sep 23, 2005, at 7:51, Ross McFarland wrote: i was planning on playing around with gtk+ bindings and parrot and went about looking around for the work that had already been done and didn't turn anything up. if anyone knows where i can

Re: loadlib and libraries with '.' in the name

2005-09-23 Thread Ross McFarland
On Sep 22, 2005, at 10:51 PM, Ross McFarland wrote: i was playing around with NCI stuff tonight and ran across a problem in loadlib. the following code does not work: for those of you interested: https://rt.perl.org/rt3/Ticket/Display.html?id=37258 i'll work on porting the pir to a

loadlib and libraries with '.' in the name

2005-09-22 Thread Ross McFarland
i was playing around with NCI stuff tonight and ran across a problem in loadlib. the following code does not work: .local pmc lib_gtk lib_gtk = loadlib libgtk-x11-2.0 the problem is the '.' in the library name. code was added to src/ dynext.c in 8209 that gets the lib_name, the

Re: loadlib and libraries with '.' in the name

2005-09-22 Thread Amos Robinson
Could we try loading it without any changes, and if that doesn't work, strip the last .? On Fri, 23 Sep 2005 15:51:31 +1000, Ross McFarland [EMAIL PROTECTED] wrote: i was playing around with NCI stuff tonight and ran across a problem in loadlib. the following code does not work: