Re: [perl #29257] Build libnci.so by default

2004-05-09 Thread Leopold Toetsch
Adam Thomason <[EMAIL PROTECTED]> wrote: > It's not the library that's the trouble, it's the contained objects. The build rule shouldn't contain nci_test$(O) but just path/libnci$(SO) : nci_test.c $(LD) $(LD_SHARED) $(LIBNCI_DEF_FILE) ... No need to have a CC_SHARED with -fPIC (not yet)

Re: [perl #29257] Build libnci.so by default

2004-05-08 Thread Adam Thomason
> -Original Message- > From: Leopold Toetsch [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 06, 2004 11:49 PM > To: Adam Thomason > Cc: [EMAIL PROTECTED] > Subject: Re: [perl #29257] Build libnci.so by default > > > Adam Thomason <[EMAIL PROTECTED]> wr

Re: [FIX] Re: [perl #29257] Build libnci.so by default

2004-05-07 Thread Jeff Clites
On May 7, 2004, at 11:48 AM, chromatic wrote: On Fri, 2004-05-07 at 11:13, Leopold Toetsch wrote: Larry Wall <[EMAIL PROTECTED]> wrote: [I'm assuming that these internal signatures contain actual type No. They are really internal, denoting C data types: 'i' => int, 'd' => double and so on. Thes

Re: [FIX] Re: [perl #29257] Build libnci.so by default

2004-05-07 Thread chromatic
On Fri, 2004-05-07 at 11:13, Leopold Toetsch wrote: > Larry Wall <[EMAIL PROTECTED]> wrote: > > > [I'm assuming that these internal signatures contain actual type > > No. They are really internal, denoting C data types: 'i' => int, 'd' => > double and so on. These signature just happen to live i

Re: [FIX] Re: [perl #29257] Build libnci.so by default

2004-05-07 Thread Leopold Toetsch
Larry Wall <[EMAIL PROTECTED]> wrote: > [I'm assuming that these internal signatures contain actual type No. They are really internal, denoting C data types: 'i' => int, 'd' => double and so on. These signature just happen to live in STRINGs so that we can pass them around e.g. to VTABLEs. > Lar

Re: [FIX] Re: [perl #29257] Build libnci.so by default

2004-05-07 Thread Larry Wall
On Fri, May 07, 2004 at 10:13:13AM +0200, Leopold Toetsch wrote: : Or better create a string_equal_cstring. We are comparing : signatures here, which are just plain ASCII strings. I don't think, that : we should allow non-ASCII signatures. [I'm assuming that these internal signatures contain actua

Re: [perl #29257] Build libnci.so by default

2004-05-07 Thread Jeff Clites
On May 7, 2004, at 5:04 AM, Leopold Toetsch wrote: Nicholas Clark <[EMAIL PROTECTED]> wrote: However, I still have to make libnci.dylib by hand. I'm not sure of the best way to integrate things for that into the Configure system. Your patch is almost ok. But I think dependencies are still wrong

Re: [FIX] Re: [perl #29257] Build libnci.so by default

2004-05-07 Thread Jeff Clites
On May 7, 2004, at 1:13 AM, Leopold Toetsch wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: ... which is trashing the strings we've just made (and are in the middle of using) in build_call_func: 2925if (!string_compare(interpreter, signature, 2926 string_from_cstring(interpret

Re: [perl #29257] Build libnci.so by default

2004-05-07 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > Yes, the fix you committed works. Thanks: Welcome > All tests successful, 1 test and 54 subtests skipped. Fine > However, I still have to make libnci.dylib by hand. I'm not sure of the best > way to integrate things for that into the Configure system

Re: [perl #29257] Build libnci.so by default

2004-05-07 Thread Nicholas Clark
On Fri, May 07, 2004 at 11:56:10AM +0200, Leopold Toetsch wrote: > Nicholas Clark <[EMAIL PROTECTED]> wrote: > > > 0x0002e354 in pobject_lives (interpreter=0x1000200, obj=0xd13a68) > > > Ok, that's exactly: > > > #5 0x001ae474 i

NCI segfault (was: [perl #29257] Build libnci.so by default)

2004-05-07 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > #5 0x001ae474 in Parrot_NCI_set_string_keyed (interpreter=0x1000200, pmc=0x100f6a0, > func=0xd13a68, value=0x1001ba8) at classes/nci.c:86 Ok. Fixed. And this test is removed. It was bogus anyway. The next test has the right way to attach a callback inf

Re: [perl #29257] Build libnci.so by default

2004-05-07 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > 0x0002e354 in pobject_lives (interpreter=0x1000200, obj=0xd13a68) Ok, that's exactly: > #5 0x001ae474 in Parrot_NCI_set_string_keyed (interpreter=0x1000200, \ pmc=0x100f6a0, func=0x

Re: [FIX] Re: [perl #29257] Build libnci.so by default

2004-05-07 Thread Leopold Toetsch
Jeff Clites <[EMAIL PROTECTED]> wrote: > 1707# if ! DISABLE_GC_DEBUG > 1708/* It's easy to forget that string comparison can trigger > GC */ > 1709if (GC_DEBUG(interpreter)) > 1710Parrot_do_dod_run(interpreter, DOD_trace_stack_FLAG); > 1711# endif > Basically,

Re: [perl #29257] Build libnci.so by default

2004-05-07 Thread Leopold Toetsch
Andrew Dougherty <[EMAIL PROTECTED]> wrote: > Off the top of my head, I can think of three instances where building > without dynamic loading is relevant: Ok. We need some more Configure support for this. First: if --disable-shared or such is set on Configure., we should disable dynamic targets i

Re: [perl #29257] Build libnci.so by default

2004-05-07 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > So I don't know what to do next. Difficult. Set a breakpoint (after the C) has executed at nci_test.c:nci_pi, check any used pointer addresses from C code if they match somewhere in that PMC. And: Does it run with: parrot -G t/pmc/nci_23.pasm that

Re: [perl #29257] Build libnci.so by default

2004-05-07 Thread Leopold Toetsch
Adam Thomason <[EMAIL PROTECTED]> wrote: > amd64 breaks. Shared libraries must be compiled with -fPIC; see > http://www.x86-64.org/lists/discuss/msg02621.html for why. LD_SHARED > has the flag, but nci_test.o isn't compiled with it. Well, then we have to add $(LD_SHARED). > needs to be a CC_SH

[FIX] Re: [perl #29257] Build libnci.so by default

2004-05-07 Thread Jeff Clites
On May 6, 2004, at 6:58 AM, Nicholas Clark wrote: On Tue, May 04, 2004 at 02:55:25PM +0200, Leopold Toetsch wrote: Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: 'libnci.so' is used for testing the native call interface. However I noticed that the tests in t/pmc/nci.t were skipped, because 'lib

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Adam Thomason
> -Original Message- > From: Leopold Toetsch [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 04, 2004 5:55 AM > To: [EMAIL PROTECTED] > Subject: Re: [perl #29257] Build libnci.so by default > > > Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > > &

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Nicholas Clark
On Thu, May 06, 2004 at 06:21:23PM +0200, Leopold Toetsch wrote: > Nicholas Clark wrote: > > 0 loadlib P1, "libnci" - P1=NULL, > > 3 dlfunc P0, P1, "nci_pi", "pi"- P0=NULL, > > P1=ParrotLibrary=PMC(0x200f7f0), , DOD > > 8 set I5, 5- I5=0, > > That seems to be nci

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Leopold Toetsch
Nicholas Clark wrote: 0 loadlib P1, "libnci" - P1=NULL, 3 dlfunc P0, P1, "nci_pi", "pi"- P0=NULL, P1=ParrotLibrary=PMC(0x200f7f0), , DOD 8 set I5, 5- I5=0, That seems to be nci_23 from CVS, which is weird: that looks totally different here. This test uses a

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Andrew Dougherty
On Thu, 6 May 2004, Leopold Toetsch wrote: > Nicholas Clark <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 30, 2004 at 01:14:21PM +0200, Leopold Toetsch wrote: > > >> Good. Do we have currently any platforms that don't support dynamic > >> loading at all? > > > Perl5 builds on UNICOS (Crays), which is

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Nicholas Clark
On Thu, May 06, 2004 at 04:43:53PM +0200, Leopold Toetsch wrote: > Nicholas Clark <[EMAIL PROTECTED]> wrote: > > > +$(LIBNCI_SO): $(SRC)/nci_test$(O) > > $(LD) $(LD_SHARED) $(LDFLAGS) \ > > $(LD_OUT)$@ $(SRC)/nci_test$(O) > > Win32 additionally needs the libnci.def thingy. (Except whe

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > +$(LIBNCI_SO): $(SRC)/nci_test$(O) > $(LD) $(LD_SHARED) $(LDFLAGS) \ > $(LD_OUT)$@ $(SRC)/nci_test$(O) Win32 additionally needs the libnci.def thingy. (Except when we put in the proposed dll_export macros). > (gdb) print *obj > $1 = { >

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Nicholas Clark
On Tue, May 04, 2004 at 02:55:25PM +0200, Leopold Toetsch wrote: > Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > > > 'libnci.so' is used for testing the native call interface. However I noticed > > that the tests in t/pmc/nci.t were skipped, because 'libnci.so' wasn't built > > by default. The

Re: [perl #29257] Build libnci.so by default

2004-05-06 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > On Fri, Apr 30, 2004 at 01:14:21PM +0200, Leopold Toetsch wrote: >> Good. Do we have currently any platforms that don't support dynamic >> loading at all? > Perl5 builds on UNICOS (Crays), which is a Unix without dynamic linking. > (As my housemate expl

Re: [perl #29257] Build libnci.so by default

2004-05-05 Thread Nicholas Clark
On Fri, Apr 30, 2004 at 01:14:21PM +0200, Leopold Toetsch wrote: > Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > > > 'libnci.so' is used for testing the native call interface. However I noticed > > that the tests in t/pmc/nci.t were skipped, because 'libnci.so' wasn't built > > by default. The

Re: [perl #29257] Build libnci.so by default

2004-05-04 Thread Leopold Toetsch
Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > 'libnci.so' is used for testing the native call interface. However I noticed > that the tests in t/pmc/nci.t were skipped, because 'libnci.so' wasn't built > by default. The attached patch adds that library to the target 'all'. Thanks, applied. Le

Re: [perl #29257] Build libnci.so by default

2004-04-30 Thread Leopold Toetsch
Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > 'libnci.so' is used for testing the native call interface. However I noticed > that the tests in t/pmc/nci.t were skipped, because 'libnci.so' wasn't built > by default. The attached patch adds that library to the target 'all'. Good. Do we have cu

[perl #29257] Build libnci.so by default

2004-04-30 Thread via RT
# New Ticket Created by Bernhard Schmalhofer # Please include the string: [perl #29257] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=29257 > Hi, 'libnci.so' is used for testing the native call interface. However I not