Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: "Mark Watson" To: cygwin AT sourceware DOT cygnus DOT com Date: Thu, 2 Mar 2000 12:08:43 GMT MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Modules, Perl 5.005_03, Cygwin Beta20.1 Reply-to: mchu7mw4 AT fs2 DOT ee DOT umist DOT ac DOT uk X-mailer: Pegasus Mail for Windows (v2.54) Message-ID: I am trying to connect a C library to Perl. I have this working under Linux. However under Cygwin (on Win98) I am having problems. The problem is in the wrapper code (I am using SWIG). This causes Perl to segfault due to accessing memory address 0. SWIG uses Dynaloader to load the module. Rather than using the automatic booting of modules, I tried using each seperate function. As described in the Camel book. The DLL is loaded correctly. The symbol for boot_matrix (where matrix is the module name) is found and the function is called sucessfully. I tested this with just a printf in the boot_matrix function. With a little further effort I discovered that the problem is due to the macro dSARGS. This breaks down into further macros and eventually it tries to dereference some pointers. PL_stack_something I think - I can't remember:-( Anyway the point is that these pointers are not initialised to anything (i.e. they are normally 0). Presumably these are intialised by importing the variables into the DLL somehow. Has anyone got this sort of thing to work? If so - please help! Thank you, Mark Watson -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com