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 na

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

2005-09-22 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 how

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

2005-09-22 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 t

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 lat

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&qu

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 exten

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 sam

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

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 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 wh