Re: h2xs -x

2012-11-05 Thread Paul Johnson
Did you ever manage to get anywhere with this?

Or does anyone on the list have any suggestions?


On Fri, Oct 28, 2011 at 03:40:21PM +0100, Dirk Koopman wrote:
 Has anyone managed to get h2xs -x to produce anything on a modern
 gcc / linux combination? It seems to barf parsing the interstices of
 stdio.h etc and, BTW, with totally useless error messages.
 
 I also notice that debian removed the package on 2008 on the grounds
 that nobody used it (and it produced this error then).
 
 Expecting parenth after identifier in `struct _IO_FILE_plus _IO_2_1_stdin_;
 extern struct _IO_FILE_plus _IO_2_1_stdout_;
 extern struct _IO_FILE_plus _IO_2_1_stderr_;
 # 364 /usr/include/libio.h 3 4
 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t
 __nbytes);
 
 typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
  size_t __n);
 
 typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
 typedef int __io_close_fn (void *__cookie);
 typedef __io_read_fn cookie_read_function_t;
 typedef __io_write_fn cookie_write_function_t;
 typedef __io_seek_fn cookie_seek_function_t;
 typedef __io_close_fn cookie_close_function_t;
 
 typedef struct
 {
   __io_read_fn *read;
   __io_write_fn *write;
   __io_seek_fn *seek;
   __io_close_fn *close;
 } _IO_cookie_io_functions_t;
 typedef _IO_cookie_io_functions_t cookie_io_functions_t;
 
 struct _IO_cookie_file;
 
 extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int
 __read_write,
 void *__cookie, _IO_cookie_io_functions_t __fns)'
 after `struct _IO_FILE_plus _IO_2_1_stdin_' at
 /usr/local/share/perl/5.8.8/C/Scan.pm line 729.
 

-- 
Paul Johnson - p...@pjcj.net
http://www.pjcj.net


[ANNOUNCE] London Perl M[ou]ngers November Social - 2012-11-08 - The Mad Bishop and Bear, Paddington, W2 1HB

2012-11-05 Thread Dagfinn Ilmari Mannsåker
Hi all,

The Official November London.pm Social will be this Thursday, November
8th, at The Mad Bishop and Bear in Paddington Station.  It's a Fullers
pub, serving tasty food, foamy beers and and crisp ciders.  We've got
tables booked in the raised area to the left of the bar from 18:00.

See you there!
The Mad Bishop  Bear
Paddington Station
London, W2 1HB
http://london.randomness.org.uk/wiki.cgi?Mad_Bishop_And_Bear,_W2_1HB
http://madbishopandbear.co.uk/

Social meets are a chance for the various members of the group to meet
up face to face and chat with each other about things - both Perl and
(mostly) non-Perl - and newcomers are more than welcome. The monthly
meets tend to be bigger than the other ad hoc meetings that take place
at other times, and we make sure that they're in easy to get to
locations and the pub serves food (meaning that people can eat in the
bar if they want to). They normally start around 6.30pm (or whenever
people get there after work) and a group tends to be left come closing
time.

If you're a newcomer or other first timer (even if you've been lurking
on the mailing list or on IRC) then please seek our Substitute Glorious
Leader James out - we have a tradition that the leader (or a substitute)
of this motley crew buys the new people a drink and introduces them to
people.

-- 
ilmari
A disappointingly low fraction of the human race is,
 at any given time, on fire. - Stig Sandbeck Mathisen





Re: h2xs -x

2012-11-05 Thread Anthony Lucas
I don't do any C-perl stuff, but I see a lot of people using CPAN modules
for this now.

*
*

*
Anthony Lucas (アンソニ ルーカス)*
IMPORTANT: The contents of this email and any attachments are confidential.
They are intended for the named recipient(s) only. If you have received
this email by mistake, please notify the sender immediately and do not
disclose the contents to anyone or make copies thereof.
[image: My QR VCard]



On 5 November 2012 12:47, Dirk Koopman d...@tobit.co.uk wrote:

 On 05/11/12 12:34, Paul Johnson wrote:

 Did you ever manage to get anywhere with this?

 Or does anyone on the list have any suggestions?


 On Fri, Oct 28, 2011 at 03:40:21PM +0100, Dirk Koopman wrote:

 Has anyone managed to get h2xs -x to produce anything on a modern
 gcc / linux combination? It seems to barf parsing the interstices of
 stdio.h etc and, BTW, with totally useless error messages.


 etc

 No.

 Dirk




Re: h2xs -x

2012-11-05 Thread Joel Bernstein
On 5 November 2012 19:39, Anthony Lucas anthonyjlu...@gmail.com wrote:
 IMPORTANT: The contents of this email and any attachments are confidential.
 They are intended for the named recipient(s) only. If you have received
 this email by mistake, please notify the sender immediately and do not
 disclose the contents to anyone or make copies thereof.

I'm obviously in violation of this entirely worthy and undoubtedly
legally enforceable disclaimer by replying to it, but could we try to
keep such nonsense off the list? If it *were* enforceable it'd be a
bit of a disaster.

/joel


Re: h2xs -x

2012-11-05 Thread Anthony Lucas

lol, I did notice that. Some stupid plugin I forgot to turn off. Sue me.

Although I'm not sure the disclaimer allows it.
--Original Message--
From: Joel Bernstein
Sender: london.pm-boun...@london.pm.org
To: London.pm Perl M[ou]ngers
ReplyTo: London.pm Perl M\[ou\]ngers
Subject: Re: h2xs -x
Sent: 5 Nov 2012 18:58

On 5 November 2012 19:39, Anthony Lucas anthonyjlu...@gmail.com wrote:
 IMPORTANT: The contents of this email and any attachments are confidential.
 They are intended for the named recipient(s) only. If you have received
 this email by mistake, please notify the sender immediately and do not
 disclose the contents to anyone or make copies thereof.

I'm obviously in violation of this entirely worthy and undoubtedly
legally enforceable disclaimer by replying to it, but could we try to
keep such nonsense off the list? If it *were* enforceable it'd be a
bit of a disaster.

/joel




Re: h2xs -x

2012-11-05 Thread Yitzchak Scott-Thoennes
On Ubuntu 12.04, I was able to follow exactly the example here:

http://perldoc.perl.org/perlxstut.html#EXAMPLE-4

except for adding -x to the h2xs invocation and not adding the foo stub to
the .xs file manually, and all worked just fine.

I'm a little confused that you say modern linux/gcc but appear to have perl
5.8.8.


On Fri, Oct 28, 2011 at 7:40 AM, Dirk Koopman d...@tobit.co.uk wrote:

 Has anyone managed to get h2xs -x to produce anything on a modern gcc /
 linux combination? It seems to barf parsing the interstices of stdio.h etc
 and, BTW, with totally useless error messages.

 I also notice that debian removed the package on 2008 on the grounds that
 nobody used it (and it produced this error then).

 Expecting parenth after identifier in `struct _IO_FILE_plus _IO_2_1_stdin_;
 extern struct _IO_FILE_plus _IO_2_1_stdout_;
 extern struct _IO_FILE_plus _IO_2_1_stderr_;
 # 364 /usr/include/libio.h 3 4
 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t
 __nbytes);

 typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
  size_t __n);

 typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
 typedef int __io_close_fn (void *__cookie);
 typedef __io_read_fn cookie_read_function_t;
 typedef __io_write_fn cookie_write_function_t;
 typedef __io_seek_fn cookie_seek_function_t;
 typedef __io_close_fn cookie_close_function_t;

 typedef struct
 {
   __io_read_fn *read;
   __io_write_fn *write;
   __io_seek_fn *seek;
   __io_close_fn *close;
 } _IO_cookie_io_functions_t;
 typedef _IO_cookie_io_functions_t cookie_io_functions_t;

 struct _IO_cookie_file;

 extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int
 __read_write,
 void *__cookie, _IO_cookie_io_functions_t __fns)'
 after `struct _IO_FILE_plus _IO_2_1_stdin_' at
 /usr/local/share/perl/5.8.8/C/**Scan.pm line 729.





Re: h2xs -x

2012-11-05 Thread DAVID HODGKINSON
Me too!

On 5 Nov 2012, at 18:58, Joel Bernstein j...@fysh.org wrote:

 On 5 November 2012 19:39, Anthony Lucas anthonyjlu...@gmail.com wrote:
 IMPORTANT: The contents of this email and any attachments are confidential.
 They are intended for the named recipient(s) only. If you have received
 this email by mistake, please notify the sender immediately and do not
 disclose the contents to anyone or make copies thereof.
 
 I'm obviously in violation of this entirely worthy and undoubtedly
 legally enforceable disclaimer by replying to it, but could we try to
 keep such nonsense off the list? If it *were* enforceable it'd be a
 bit of a disaster.
 
 /joel