Re: APXS troubles

2007-07-20 Thread Farokh Irani
On Fri, 2007-07-20 at 14:39 +0200, Mike wrote: On 7/20/07, Farokh Irani <[EMAIL PROTECTED]> wrote: > So, somewhere there is still something going on with .c vs .cpp. I'll > poke at apxs a bit and see if I can figure out why, but a crash > course in perl wasn't what I was looking at doing righ

Re: APXS troubles

2007-07-20 Thread William A. Rowe, Jr.
Mike wrote: > On 7/20/07, Farokh Irani <[EMAIL PROTECTED]> wrote: >> >So you mean a change from *.cpp to *.c is the only real working >> >solution? That's strange but anyway it works now... >> That is how it appears to be. Unfortunately, it's not a good solution >> because I really don't want to ha

Re: APXS troubles

2007-07-20 Thread Mike
On 7/20/07, Farokh Irani <[EMAIL PROTECTED]> wrote: >So you mean a change from *.cpp to *.c is the only real working >solution? That's strange but anyway it works now... That is how it appears to be. Unfortunately, it's not a good solution because I really don't want to have to rename a bunch of

Re: APXS troubles

2007-07-20 Thread Farokh Irani
On 7/20/07, Farokh Irani <[EMAIL PROTECTED]> wrote: So, somewhere there is still something going on with .c vs .cpp. I'll poke at apxs a bit and see if I can figure out why, but a crash course in perl wasn't what I was looking at doing right now :) So you mean a change from *.cpp to *.c is the o

Re: APXS troubles

2007-07-20 Thread Ralf Mattes
On Fri, 2007-07-20 at 14:39 +0200, Mike wrote: > On 7/20/07, Farokh Irani <[EMAIL PROTECTED]> wrote: > > So, somewhere there is still something going on with .c vs .cpp. I'll > > poke at apxs a bit and see if I can figure out why, but a crash > > course in perl wasn't what I was looking at doing ri

Re: APXS troubles

2007-07-20 Thread Mike
On 7/20/07, Farokh Irani <[EMAIL PROTECTED]> wrote: So, somewhere there is still something going on with .c vs .cpp. I'll poke at apxs a bit and see if I can figure out why, but a crash course in perl wasn't what I was looking at doing right now :) So you mean a change from *.cpp to *.c is the o

Re: APXS troubles

2007-07-20 Thread Mike
On 7/20/07, Ralf Mattes <[EMAIL PROTECTED]> wrote: I'd go for: if ( $f = ~m/\.c(c|pp){0,1}$/i ) This variant avoids backtracking and makes the regexp case insensitive. Yes, it does accept monsters like 'Foo.cPp'. but who cares :-) which is equal to if ( $f =~m/\.c(c|pp)?$/i )

Re: APXS troubles

2007-07-20 Thread Farokh Irani
There's a typo. It should be: if ( $f =~ m/\.c(c|pp){0,1}$/i ) OK, that seemed to work, but the .so file is once again an empty library. I then recompiled using .c as the extension, but when I tried to load apache, it complained of an unknown symbol, something with _gxx_personality. Mike

Re: APXS troubles

2007-07-20 Thread Ralf Mattes
On Fri, 2007-07-20 at 12:38 +0100, Jeremy Sowden wrote: > Farokh Irani wrote: > > >On Fri, 2007-07-20 at 08:36 +0200, Mike wrote: > > >> > > if ($f =~ m|\.c$|) { < Here, bad > > coder! BAD! > > >> > I don't know perl at all, so those were > > >> > stabs in the dark. Any poi

Re: APXS troubles

2007-07-20 Thread Jeremy Sowden
Farokh Irani wrote: > >On Fri, 2007-07-20 at 08:36 +0200, Mike wrote: > >> > > if ($f =~ m|\.c$|) { < Here, bad > coder! BAD! > >> > I don't know perl at all, so those were > >> > stabs in the dark. Any pointers on that would be appreciated. > >> Try: > > > if( $f =~ m/\.c$

Re: APXS troubles

2007-07-20 Thread Farokh Irani
On Fri, 2007-07-20 at 08:36 +0200, Mike wrote: > > if ($f =~ m|\.c$|) { < Here, bad coder! BAD! > I don't know perl at all, so those were > stabs in the dark. Any pointers on that would be appreciated. Try: > if( $f =~ m/\.c$|\.cpp$|\.cc$/ ) OK, I tried this and w

Re: APXS troubles

2007-07-20 Thread Ralf Mattes
On Fri, 2007-07-20 at 08:36 +0200, Mike wrote: > > > if ($f =~ m|\.c$|) { < Here, bad coder! BAD! > > I don't know perl at all, so those were > > stabs in the dark. Any pointers on that would be appreciated. > Try: > if( $f =~ m/\.c$|\.cpp$|\.cc$/ ) > Kind regards. I'd go