Unable to build Apache::Scoreboard 0.10 with 5.6.0/1.3.17/1.25/RH 6.2

2001-02-02 Thread Mike Janson


I am encountering the following problem when attempting to
install Apache::Scoreboard 0.10 on a fresh Red Hat 6.2 install
(2.2.14-5.0 kernel) with Perl 5.6.0, Apache 1.3.17, and mod_perl 1.25
(all installed from source, not the RH RPMs):

/usr/local/src/Apache-Scoreboard-0.10 109  perl Makefile.PL 
Checking if your kit is complete...
Looks good
Writing Makefile for Apache::DummyScoreboard
Writing Makefile for Apache::Scoreboard
/usr/local/src/Apache-Scoreboard-0.10 114  make
make[1]: Entering directory `/usr/local/src/Apache-Scoreboard-0.10/Dummy'
cc -c -I../ -I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include 
-I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/modules/perl 
-I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/include 
-I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/regex 
-I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/os/unix 
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 
-DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fpic 
-I/usr/local/lib/perl5/5.6.0/i686-linux/CORE  DummyScoreboard.c
In file included from DummyScoreboard.xs:2:
/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/include/scoreboard.h:151:
 field `start_time' has incomplete type
/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/Apache/include/include/scoreboard.h:152:
 field `stop_time' has incomplete type
make[1]: *** [DummyScoreboard.o] Error 1
make[1]: Leaving directory `/usr/local/src/Apache-Scoreboard-0.10/Dummy'
make: *** [subdirs] Error 2
/usr/local/src/Apache-Scoreboard-0.10 115  

I have seen posts about similar types of problems folks have experienced
in the past, but have verified the above version numbers of related installs,
and am under the impression this should work.  Can anyone help shed some light
on this?


Re: efficient mod_perl alternatives to fork()?

2000-11-28 Thread Mike Janson


You don't mention which OS you're using, but in Richard Stevens'
_Advanced Programming in the UNIX Environment_, on p.189 he states:

"Many current implementations don't perform a complete copy of the 
parent's data, stack, and heap, since a fork is often followed by an 
exec.  Instead, a technique called copy-on-write (COW) is used."

This does exactly what you'd think it would--shared heap is made 
read-only, and additional memory is allocated only when the parent or 
child try to modify data.

So, forking an entire server process isn't as bad as you'd think.

-Mike


At 1:39 PM -0800 11/28/00, Paul wrote:
Hi all.

I'm writing module code which (for backward compatibility with the CGI
it's replacing) needs to be able to execute commands from a file.
(~urgh~) The files have usually been ksh and/or Perl. Commonly, they
contain a directive to execute a line of shell script.

Ideally, such commands will be replaced with equivelent perl code which
could simply be eval()'d, but I'm concerned that one of my coworkers
might write his perl code with backticks in it (like `grep foo *.bar`)
instead of writing the few extra lines of code, particularly since we
have a lot of legacy code in several languages (such as ksh functions).

Wouldn't that effectively fork an entire server process before exec'ing
the qx//? And is there any simple way to prevent that, or any simple
alternative aside from a big stick?

(a stoopid question -- Doesn't a Perl eval() with backticks do a full
blown program fork and exec, too?)

Also, I realize the security holes this might present, but the files in
question are never influenced by user input. Security isn't the
question -- just the fork.

Thanks a mil,
Paul

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]