delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
From: | "Mark Watson" <mchu7mw4 AT fs2 DOT ee DOT umist DOT ac DOT uk> |
To: | cygwin AT sourceware DOT cygnus DOT com |
Date: | Thu, 2 Mar 2000 12:08:43 GMT |
MIME-Version: | 1.0 |
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: | <D385167F6B@fs2.ee.umist.ac.uk> |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |