Problems with 3rd party libraries and creating modules

2001-03-19 Thread Piers Harding
supply all the code - but unfortunately unless you have access to an SAP system it is fairly meaning less ( these are the problems with closed source systems :-( ). Thanks. Piers harding.

Re: Has anyone built Inline for HP-UX 11.0?

2001-04-30 Thread Piers Harding
I have done this but I used the GCC on HP-UX - available from http://devresource.hp.com. I have had so much trouble with building other products such as Apache with mod_perl and openssl, and openldap, that I discarded the hp compiler ( you should see the comments about the hp compiler in the

Re: Has anyone built Inline for HP-UX 11.0?

2001-04-30 Thread Piers Harding
30, 2001 at 08:31:47AM -0700, Brian Ingerson wrote: Piers Harding wrote: I have done this but I used the GCC on HP-UX - available from http://devresource.hp.com. I have had so much trouble with building other products such as Apache with mod_perl and openssl, and openldap, that I discarded

Re: Has anyone built Inline for HP-UX 11.0?

2001-04-30 Thread Piers Harding
OK - some more evidence - look on google for pointers towards problems with thread local storage and HP compilers ( TLS ) - these are also a source of pain for me ( in particular with linking in the oracle client libraries for instance ). Cheers. On Mon, Apr 30, 2001 at 11:18:45AM -0700,

Re: Has anyone built Inline for HP-UX 11.0?

2001-04-30 Thread Piers Harding
using gcc typically don't run gcc with the -ansi switch. -Clint On Apr 30, Piers Harding wrote: I have done this but I used the GCC on HP-UX - available from http://devresource.hp.com. I have had so much trouble with building other products such as Apache with mod_perl and openssl

Re: Inlining C++ libraries that are threaded and need to callback to perl

2001-08-26 Thread Piers Harding
- this is a bit over my head, and is also experimenting with modifications to perl itself ( things called Solar variables ). Cheers. On Sun, Aug 26, 2001 at 02:46:07PM -0400, Sam Tregar wrote: On Sun, 26 Aug 2001, Piers Harding wrote: (1) Wrappering the libraries as a whole is possible - I have done

Re: Inlining C++ libraries that are threaded and need to callback to perl

2001-08-30 Thread Piers Harding
:38PM -0400, Sam Tregar wrote: On Sun, 26 Aug 2001, Piers Harding wrote: I have tried doing direct ( unprotected - no locking ) calls back into the parent interpreter - this barfed badly. Yup, that's no good. 2ndly I have tried the approach of creating separate interpreter instances

How do you have multiple Inline .pm's in a Makefile.PL

2001-09-03 Thread Piers Harding
looked through the Inline mail archives and noticed someone else asking this question, but I don't seem to be able to find the answer. Also, it doesn't appear to be mentioned in Inline.pod which does talk about Inline::MakeMaker. Thanks. Piers Harding

Re: How do you have multiple Inline .pm's in a Makefile.PL

2001-09-04 Thread Piers Harding
talk mode=sheepish My fault - I should have realised /talk Cheers. On Tue, Sep 04, 2001 at 12:09:32AM -0700, Brian Ingerson wrote: On 04/09/01 06:41 +0100, Piers Harding wrote: Sorry if I have offended you in any way... It was not my intention at all, and perhaps - as you suggest below

Re: How do you have multiple Inline .pm's in a Makefile.PL

2001-09-05 Thread Piers Harding
wrote: On 03/09/01 18:30 +0100, Piers Harding wrote: Hi, I'm trying to publish an Inline based suite that contains several modules in the same directory that have a C++ component, but I can't seem to figure out how to get them into the single Makefile.PL ( and hence Makefile ) to be built

Installable CPP based Inline modules

2001-09-05 Thread Piers Harding
Hello, Are ther any plans to make CPP modules installable like C? I am in the process of publishing a set of modules based on Inline::CPP, and I'm trying to figure out what options I have for delivering them. Thanks, Piers harding

Essay: using Inline - perl 2 c++ 2 perl 2 c++

2001-09-20 Thread Piers Harding
Hello Everybody, As a result of my painful learning experiences of embedding C++ in perl, and then doing various nested callbacks, I have written a small essay on the topic, with a full ( 1 file based ) example. For those that are interested, please go to

Re: Inline and the 5.6.0 that comes with OS X

2002-08-18 Thread Piers Harding
How would Inline/Module::Build take care of ( in a platform independent way ) processes like moving files, copying etc. Would it still use the ExtUtils::Command routines for this? It is dealing with these kinds of issues that are also dealt with in make that need to be overcome. Would there

Re: Inline and the 5.6.0 that comes with OS X

2002-08-18 Thread Piers Harding
the favour. Cheers. On Sun, Aug 18, 2002 at 07:15:55PM +1000, Ken Williams wrote: [Adding the Module::Build list to recipient list, and getting rid of Mac OS X...] On Sunday, August 18, 2002, at 06:11 PM, Piers Harding wrote: How would Inline/Module::Build take care of ( in a platform

Re: Simple Inline C Problem.

2002-08-27 Thread Piers Harding
Try it like this: use Inline C; greet(); __END__ __C__ void greet() { printf(Hello, world\n); } Cheers. On Tue, Aug 27, 2002 at 11:12:53AM -0700, Yimeng Dou wrote: I have this very simple inline C code, but somehow it doesn't work. I receive INIT failed--call queue aborted. when I run

Re: Simple Inline C Problem.

2002-08-27 Thread Piers Harding
OK. What are you running this on. The code I gave you was run under Linux RH7.3 + perl 5.6.1 + Inline 0.43. you could also trygiving us some of the output from the _Inline directory ( located from where you are running that script ). CHeers. On Tue, Aug 27, 2002 at 07:43:21PM +0100, Piers

Re: Simple Inline C Problem.

2002-08-28 Thread Piers Harding
\try_pl_419e.dll Error 2: File Not Found :blib\arch\auto\try_pl_419e\try_pl_419e.dll NMAKE : fatal error U1077: 'link' : return code '0x1' Stop. -Original Message- From: Piers Harding [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 12:59 PM To: Piers Harding Cc: Yimeng Dou; [EMAIL

Re: Patch for Inline::C-Cookbook

2002-09-02 Thread Piers Harding
Perl is full of surprises :-) - I'd never heard of it too, or perlapio ( pointed to herein ) *sigh* so little time so much to learn Cheers. On Tue, Sep 03, 2002 at 12:09:05PM +1000, Ken Williams wrote: On Monday, September 2, 2002, at 06:41 PM, Neil Watkiss wrote: Hi Ken, You

Re: About Inline 0.50

2002-10-05 Thread Piers Harding
. On Sat, Oct 05, 2002 at 12:24:03AM +0200, nadim wrote: Hi all I think it's time to set the clocks so we stop arguing about nothing. My general feeling first then some precise answers. On Friday 04 October 2002 19:50, Piers Harding wrote: So Brian - +1 from me, and keep up the good work

Re: out.make

2002-10-06 Thread Piers Harding
It might be worth thinking about giving varying degrees of the output depending on command line options, or CONFIG directives. For me - 9/10 times the error tracks back to things like actual C code/XS problems, or some kind of issue arround gcc directives like INC or LIB pathes - maybe there

Re: Inline-0.44-TRIAL4.tar.gz -- CPPTest.pm installation problem

2002-10-15 Thread Piers Harding
Thanks. I'll look into developing some tests. How do we want to build up a test suite - as the dependency is on an ILSM not on Inline perse? CHeers. On Tue, Oct 15, 2002 at 06:51:42PM -0400, Mitchell N Charity wrote: I've got a problem with this one for the Installable CPP module:

ANNOUNCE: Inline::BC (VERSION 0.01)

2002-10-18 Thread Piers Harding
Announcing Inline::BC Version 0.01, a new ILSM for the Gnu bc arbitrary precision maths language (man bc, or http://www.gnu.org/software/bc/bc.html). This is winging it's way to CPAN as I speak, and should be at a mirror near you, soon :-). Cheers.

Re: Inline-0.44-TRIAL5

2002-10-18 Thread Piers Harding
My tests (CPP) work fine. Cheers. On Fri, Oct 18, 2002 at 01:16:51AM -0700, Brian Ingerson wrote: http://ttul.org/~ingy/release/Inline-0.44-TRIAL5.tar.gz --- version: 0.44 date:Thu Oct 17 20:00:46 PDT 2002 changes: - Shortened BUILD_TIMER precision, per Leon Brocard's suggestion.

Re: Inline-0.44-RELEASE-CANDIDATE-1

2002-10-25 Thread Piers Harding
Works fine for me :-). On Thu, Oct 24, 2002 at 09:24:39PM -0700, Brian Ingerson wrote: http://ttul.org/~ingy/release/Inline-0.44-RELEASE-CANDIDATE-1.tar.gz All bugs reported since TRIAL8 have been fixed. I did a bunch of work on ParseRecDescent and added more regression tests. ParseRegExp

Re: Using Inline.pm from an embedded perl interpreter.

2002-10-29 Thread Piers Harding
I presented on this at OSCON - there are a whole bunch of things to think about when calling back and forth. Have a look at http://www.piersharding.com/tydwp/tydwp.dkb Cheers. On Tue, Oct 29, 2002 at 06:53:25PM -0800, Brian Ingerson wrote: On 30/10/02 02:28 +, Christian Goetze wrote:

Re: Using Inline.pm from an embedded perl interpreter.

2002-10-31 Thread Piers Harding
Sounds like it is running into the either the Taint checking issue or Inline is not bootstraping the module. You could try something like: require DynaLoader; eval { DynaLoader::bootstrap(Yax) }; inside your module to make sure this is happening? Cheers. On Thu, Oct 31, 2002 at 01:59:53AM

Re: Default Inline::C includes

2002-11-12 Thread Piers Harding
Does AUTO_INCLUDE work for C ( like CPP )? 'Config' = 'AUTO_INCLUDE' = [ undef, myheader.h, ... ] Cheers. On Tue, Nov 12, 2002 at 05:19:54PM -0500, Patrick LeBoutillier wrote: Hi all, I'm writing a

Re: sort() function

2005-03-07 Thread Piers Harding
You could potentially emulate the Perl way using the macros and functions. See the perlapi (perldoc) for: sortsv - to do the sort (doh!) hv_iterkeysv - to grab the keys, and av_push to build the array for sorting. # warning - example stolen from tt2 code AV *result = newAV(); HE *he;

Re: Inline::CPP problem = Virtual destructors and Editor::Copy()

2005-03-21 Thread Piers Harding
Hi, I have just tried this under Perl 5.8.5, and renamed Copy to xCopy, which has compiled cleanly. Further - I had to change $e-cut to $e-Cut. Cheers, Piers Harding. On Mon, Mar 21, 2005 at 03:36:00PM +0100, Subir Sarkar wrote: Hi all, I'm trying to use a C++ library from Perl using