deprecated has asked for the wisdom of the Perl Monks concerning the following question:
The above is what I get, if anyone cares or knows how to fix it. The above people said that PostgreSQL was fixed with a 'shim'... but all this C stuff is beyond me.IO.xs: In function `XS_IO__Seekable_getpos': IO.xs:208: `sv_undef' undeclared (first use in this function) IO.xs:208: (Each undeclared identifier is reported only once IO.xs:208: for each function it appears in.) IO.xs: In function `XS_IO__File_new_tmpfile': IO.xs:252: `sv_undef' undeclared (first use in this function) make: *** [IO.o] Error 1
At any rate, I am using this code to poke a fifo:
Initially, I didnt have the second open. But it seemed that after it got input, it would close FIFO and crash. So the second open, I thought, would keep <FIFO> alive.open FIFO, "<foo" or die "$!\n"; while (<FIFO>) { chomp; print "$_\n"; open FIFO, "<foo" or die "$!\n"; }
I was wrong. When I do this:
(thats csh, not perl, for the uninitiated), all I get is foo, bletch, and qip from the perl script. And randomly at that. Sometimes, I only get foo.foreach word (foo bar baz bletch quux qip qua) echo $word > foo end
What I'm trying to do here is create a named pipe from which a perl script can read. I want to direct a log (such as Apache) to the named pipe and have postgres read it into a database so I can run webstats directly off of it, rather than just importing the stupid logfile into the database. That strikes me as unnecessary.
So I'd like to know if anyone has any ideas here. I thought IO::File might be able to help, but it looks like it's suffering from the same problems my named pipe is. Has anyone got another idea? Or perhaps, oh hope of hope, a fix for my IPC? (yes, I am aware there is a kernel patch, and that there is even a kext for darwin. However, I'm not going to use software that threatens it will render my baby scorch unusable!!).
Oh, and I forgot. "foo," above, is the named pipe.
Thanks,
brother dep
one final note... i dont want to hear any jabs at apple. I'm angry enough for everyone here.
update: The fix below worked. Bueno.
--
Laziness, Impatience, Hubris, and Generosity.
|
---|
Replies are listed 'Best First'. | |
---|---|
Undeclared symbol errors
by Fletch (Bishop) on Nov 09, 2001 at 07:52 UTC | |
Re: Improvised pipes (code)
by kjherron (Pilgrim) on Nov 09, 2001 at 22:46 UTC |