I am having the following "problem" when building mod_perl/Apache. I have a
.makepl_args.mod_perl file in my $HOME, and "perl Makefile.PL" works almost
perfectly, using Apaci to configure both Apache and mod_perl compilation just the way
I want. Then "make" from the mod_perl dir, fails in the Apache src/support dir,
trying to compile suexec. Here are the two "errors" that are generated, and their
commands, the second coming after fixing the first:

gcc -c -I.. -I/opt/perl5.6.0/lib/5.6.0/sun4-solaris/CORE -I../os/unix -I../include  
-DSOLARIS2=280 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing
-I/opt/BerkeleyDB.3.1/include -I/opt/include/X11 \
                -DHTTPD_USER=\"httpd\" \
                -DUID_MIN=100 \
                -DGID_MIN=100 \
                -DUSERDIR_SUFFIX=\"public_html\" \
                -DLOG_EXEC=\"/opt/Apache.new/logs/suexec_log\" \
                -DDOC_ROOT=\"/export/home/htdocs\" \
                -DSAFE_PATH=\"/usr/local/bin:/usr/bin:/bin\" \ suexec.c
gcc:  suexec.c: No such file or directory
gcc: No input files
*** Error code 1
make: Fatal error: Command failed for target `suexec.o'

Copy/pasting this into a shell that is in the Apache src/support dir, and removing
the \ before suexec.c at the end, works fine. (Or, I could put in a cr after the \
:):) Then, back in the mod_perl dir, "make" gives me this:

gcc  -DSOLARIS2=280 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing
-I/opt/BerkeleyDB.3.1/include -I/opt/include/X11 \
                -DHTTPD_USER=\"httpd\" \
                -DUID_MIN=100 \
                -DGID_MIN=100 \
                -DUSERDIR_SUFFIX=\"public_html\" \
                -DLOG_EXEC=\"/opt/Apache.new/logs/suexec_log\" \
                -DDOC_ROOT=\"/export/home/htdocs\" \
                -DSAFE_PATH=\"/usr/local/bin:/usr/bin:/bin\" \ -o suexec  
-L../os/unix -L../ap suexec.o -lap -los  -lsocket -lnsl    -L/opt/BerkeleyDB.3.1/lib
-L/opt/lib/X11 /opt/perl5.6.0/lib/5.6.0/sun4-solaris/auto/DynaLoader/DynaLoader.a
-L/opt/perl5.6.0/lib/5.6.0/sun4-solaris/CORE -lperl -lsocket -lnsl -ldb -ldl -lm -lc
-lcrypt -lsec  -ldl
gcc:  -o: No such file or directory
gcc: suexec: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `suexec'

Again, I copy/paste, remove the \ before the -o suexec, and the command works. Back
in mod_perl, "make", "make test", and "make install" all work perfectly.

Obviously, a problem in the Makefile generation, and a simple one for someone who
understands all the interaction between all the Makefiles. But, unfortunately, that
is not me. :(   Yet ;)

This is not a show-stopper, but it does it make it impossible to do a clean "install
Apache" from the CPAN shell, or a Bundle file. :(

Relevant info:

Solaris 2.6 and 8
perl 5.6.0
mod_perl 1.24
Apache 1.3.12
gcc 2.95.2 19991024 (release)

Everything was compiled from the same gcc, the packages from sunfreeware.com, for 2.6
and 8. As a matter of fact, on new installations, I build _everything_ I need/use
from nice shell/perl scripts and CPAN Bundle files that I have built over the past
four years. That is why I would love to have this fixed. :):) (I can run the patch
program, or even apply by hand. I have done both many times. :):)



David McCabe  Unix System Administrator
Le Groupe Videotron [EMAIL PROTECTED]   (514) 380 4433

Microsoft seems to have gotten a lot of mileage out of the
C2 rating for NT with no network connection. I wonder if a B3
rating for Linux with no power cord might be of value.
                                             -- unknown

Reply via email to