You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Eric Snyder <er...@janasnyder.com> on 2007/03/22 03:51:02 UTC
Having problems installing mod_perl on Slackware
Be patient with me, I am new to perl. I am attempting to install perl,
apache and mod_perl so I can use the mod_perl cgi in BackupPC. I get
through most of the process but my mod_perl MAKE blows up. I am
following the instructions at
http://perl.apache.org/docs/2.0/user/install/install.html
Running as root I have:
Installed Bundle::Apache2 from CPAN - no problems.
configured perl with:
./Configure -des -Uusethreads
% make && make test && make install
all no problems
I then downloaded and extracted apache 2.2.4
I then changed directories to mod_perl-2.0.3 and ran:
perl Makefile.PL MP_USE_STATIC=1 MP_AP_PREFIX=/usr/src/httpd-2.2.4
MP_AP_CONFIGURE="--with-mpm=prefork"
This seemed to go with no problems.
Make totally blew up on me. I get massive errors from the start. Here is
the top of the output:
make[1]: Entering directory `/usr/src/mod_perl-2.0.3/src/modules/perl'
cc -I/usr/src/mod_perl-2.0.3/src/modules/perl
-I/usr/src/mod_perl-2.0.3/xs -I/usr/src/httpd-2.2.4/include
-I/usr/src/httpd-2.2.4/srclib/apr/include
-I/usr/src/httpd-2.2.4/srclib/apr-util/include
-I/usr/src/httpd-2.2.4/os/unix -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include
-I/usr/local/lib/perl5/5.8.8/i686-linux/CORE -DMOD_PERL -DMP_COMPAT_1X
-O2 -c mod_perl.c
In file included from /usr/src/httpd-2.2.4/include/httpd.h:43,
from modperl_apache_includes.h:27,
from mod_perl.h:20,
from mod_perl.c:17:
/usr/src/httpd-2.2.4/include/ap_config.h:25:17: apr.h: No such file or
directory
In file included from /usr/src/httpd-2.2.4/include/ap_config.h:26,
from /usr/src/httpd-2.2.4/include/httpd.h:43,
from modperl_apache_includes.h:27,
from mod_perl.h:20,
from mod_perl.c:17:
/usr/src/httpd-2.2.4/srclib/apr-util/include/apr_hooks.h:20:17: apu.h:
No such file or directory
In file included from
/usr/src/httpd-2.2.4/srclib/apr-util/include/apr_hooks.h:22,
from /usr/src/httpd-2.2.4/include/ap_config.h:26,
from /usr/src/httpd-2.2.4/include/httpd.h:43,
from modperl_apache_includes.h:27,
from mod_perl.h:20,
from mod_perl.c:17:
/usr/src/httpd-2.2.4/srclib/apr/include/apr_tables.h:25:17: apr.h: No
such file or directory
In file included from
/usr/src/httpd-2.2.4/srclib/apr/include/apr_pools.h:38,
from
/usr/src/httpd-2.2.4/srclib/apr/include/apr_tables.h:26,
from
/usr/src/httpd-2.2.4/srclib/apr-util/include/apr_hooks.h:22,
from /usr/src/httpd-2.2.4/include/ap_config.h:26,
from /usr/src/httpd-2.2.4/include/httpd.h:43,
from modperl_apache_includes.h:27,
from mod_perl.h:20,
from mod_perl.c:17:
/usr/src/httpd-2.2.4/srclib/apr/include/apr_errno.h:52: error: syntax
error before "apr_strerror"
/usr/src/httpd-2.2.4/srclib/apr/include/apr_errno.h:53: error: syntax
error before "apr_size_t"
/usr/src/httpd-2.2.4/srclib/apr/include/apr_errno.h:53: warning: data
definition has no type or storage class
What is wrong and how do I fix this?
Re: Having problems installing mod_perl on Slackware
Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
> [Thu Mar 22 21:34:14 2007] [error] [client 127.0.0.1] Handler for
> modperl returned invalid result code 2
> # Failed test 3 in
> /usr/src/mod_perl-2.0.3/t/response/TestAPI/server_const.pm at line 39
This was due API changes from 2.2.3 -> 2.2.4 in httpd.
This is largely irrelevant for general mp use since its just the Server
'Banner' functions.
This is also about to be fixed in SVN and will be part of 2.0.4
See Message-ID: <46...@p6m7g8.com>
for the patch thats in the works from Gozer.
--
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF
Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
Re: Having problems installing mod_perl on Slackware
Posted by Eric Snyder <er...@janasnyder.com>.
I notice that at the top it references Apache/2.2.4. I attenpted to use
2.2.4 first and when that did not work configured, compiled and
installed 2.0.59. Is there a leftover that may be causing this problem?
Log contents:
END in modperl_extra.pl, pid=7593
[Thu Mar 22 21:33:01 2007] [notice] Apache/2.2.4 (Unix) world domination
series/2.0 mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal
operations
[Thu Mar 22 21:33:01 2007] [info] Server built: Mar 20 2007 21:35:24
[Thu Mar 22 21:33:01 2007] [debug] prefork.c(991): AcceptMutex: sysvsem
(default: sysvsem)
*** The following warn entry is expected and harmless ***
[Thu Mar 22 21:33:38 2007] [info] [client 127.0.0.1] TestAPI::aplog test
in progress
*** The following warn entry is expected and harmless ***
This log message comes with no header
*** The following warn entry is expected and harmless ***
[Thu Mar 22 21:33:38 2007] [debug] aplog.pm(71): log_serror test 1
*** The following warn entry is expected and harmless ***
[Thu Mar 22 21:33:38 2007] [debug] aplog.pm(83): (20014)Internal error:
log_serror test 2
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:33:38 2007] [crit] [client 127.0.0.1] (20007)No time was
provided and one was required.: log_rerror test
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:33:38 2007] [error] $r->log_error test
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:33:38 2007] [error] $s->log_error test
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:33:38 2007] [error] access to /TestAPI__aplog failed for
127.0.0.1, reason: $r->log_reason test
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:33:38 2007] [error] access to filename failed for
127.0.0.1, reason: $r->log_reason filename test
*** The following warn entry is expected and harmless ***
[Thu Mar 22 21:33:38 2007] [debug] aplog.pm(144): TestAPI::aplog test done
[Thu Mar 22 21:33:38 2007] [notice] [client 127.0.0.1] This message
should appear with LogLevel=error!
*** The following warn entry is expected and harmless ***
[Thu Mar 22 21:33:38 2007] [warn] $s->warn test
*** The following warn entry is expected and harmless ***
[Thu Mar 22 21:33:38 2007] [warn] Apache2::ServerRec::warn test
*** The following warn entry is expected and harmless ***
[Thu Mar 22 21:33:38 2007] [warn] Apache2::ServerRec::warn test
*** The following warn entry is expected and harmless ***
[Thu Mar 22 21:33:38 2007] [warn] warn test
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:34:09 2007] [error] Process 7602 terminates itself\n
[Thu Mar 22 21:34:14 2007] [error] [client 127.0.0.1] Handler for
modperl returned invalid result code 2
[Thu Mar 22 21:34:14 2007] [error] [client 127.0.0.1] Handler for
modperl returned invalid result code 2
# Failed test 3 in
/usr/src/mod_perl-2.0.3/t/response/TestAPI/server_const.pm at line 39
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:35:28 2007] [error] Apache::log_error test ok
*** The following warn entry is expected and harmless ***
[Thu Mar 22 21:35:28 2007] [warn] Apache->warn ok
*** The following warn entry is expected and harmless ***
[Thu Mar 22 21:35:28 2007] [warn] Apache::warn ok
*** The following warn entry is expected and harmless ***
[Thu Mar 22 21:35:28 2007] [warn] Apache::Server->warn ok
*** The following warn entry is expected and harmless ***
[Thu Mar 22 21:35:28 2007] [warn] Apache::Server::warn ok
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:36:12 2007] [error] [client 127.0.0.1] APR::Socket::recv:
(11) Resource temporarily unavailable at
/usr/src/mod_perl-2.0.3/t/response/TestError/runtime.pm line 156
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:36:12 2007] [error] [client 127.0.0.1] Undefined
subroutine &TestError::runtime::no_such_func called at
/usr/src/mod_perl-2.0.3/t/response/TestError/runtime.pm line 150.\n
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:36:12 2007] [error] [client 127.0.0.1] APR::Socket::recv:
(11) Resource temporarily unavailable at
/usr/src/mod_perl-2.0.3/t/response/TestError/runtime.pm line
156\n\tTestError::runtime::mp_error('APR::Socket=SCALAR(0x947b1f8)')
called at /usr/src/mod_perl-2.0.3/t/response/TestError/runtime.pm line
75\n\tTestError::runtime::die_hook_confess_mp_error('Apache2::RequestRec=SCALAR(0x9474560)',
'APR::Socket=SCALAR(0x947b1f8)') called at
/usr/src/mod_perl-2.0.3/t/response/TestError/runtime.pm line
31\n\tTestError::runtime::handler('Apache2::RequestRec=SCALAR(0x9474560)')
called at -e line 0\n\teval {...} called at -e line 0\n
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:36:12 2007] [error] [client 127.0.0.1] Undefined
subroutine &TestError::runtime::no_such_func called at
/usr/src/mod_perl-2.0.3/t/response/TestError/runtime.pm line 150.\n at
/usr/src/mod_perl-2.0.3/t/response/TestError/runtime.pm line
150\n\tTestError::runtime::non_mp_error('APR::Socket=SCALAR(0x96886b0)')
called at /usr/src/mod_perl-2.0.3/t/response/TestError/runtime.pm line
82\n\tTestError::runtime::die_hook_confess_non_mp_error('Apache2::RequestRec=SCALAR(0x965d498)',
'APR::Socket=SCALAR(0x96886b0)') called at
/usr/src/mod_perl-2.0.3/t/response/TestError/runtime.pm line
31\n\tTestError::runtime::handler('Apache2::RequestRec=SCALAR(0x965d498)')
called at -e line 0\n\teval {...} called at -e line 0\n
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:36:12 2007] [error] [client 127.0.0.1] custom die hook:
APR::Socket::recv: (11) Resource temporarily unavailable at
/usr/src/mod_perl-2.0.3/t/response/TestError/runtime.pm line 156 at
/usr/src/mod_perl-2.0.3/t/response/TestError/runtime.pm line 87.\n
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:36:12 2007] [error] [client 127.0.0.1] custom die hook:
Undefined subroutine &TestError::runtime::no_such_func called at
/usr/src/mod_perl-2.0.3/t/response/TestError/runtime.pm line 150.\n
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:36:14 2007] [error] [client 127.0.0.1] failed to resolve
handler `TestError::syntax': syntax error at
/usr/src/mod_perl-2.0.3/t/response/TestError/syntax.pm line 17, near
"\\;"\nCompilation failed in require at (eval 180) line 3.\n
*** The following 2 error entries are expected and harmless ***
[Thu Mar 22 21:36:34 2007] [error] [client 127.0.0.1] This filter must
die at /usr/src/mod_perl-2.0.3/t/filter/TestFilter/in_error.pm line 26.\n
[Thu Mar 22 21:36:34 2007] [error] [client 127.0.0.1]
Apache2::RequestIO::read: (120001) filter handler has failed at
/usr/src/mod_perl-2.0.3/t/filter/TestFilter/in_error.pm line 41
[Thu Mar 22 21:37:32 2007] [error] [client 127.0.0.1] Undefined
subroutine &TestHooks::error::bomb called at
/usr/src/mod_perl-2.0.3/t/hooks/TestHooks/error.pm line 21.\n
[Thu Mar 22 21:37:32 2007] [error] [client 127.0.0.1] Undefined
subroutine &TestHooks::error::bomb called at
/usr/src/mod_perl-2.0.3/t/hooks/TestHooks/error.pm line 21.\n
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:37:54 2007] [error] [client 127.0.0.1] File does not
exist: /usr/src/mod_perl-2.0.3/t/htdocs/nope
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:38:46 2007] [error] [client 127.0.0.1] need AuthName:
/TestModperl__setauth
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:38:52 2007] [error] [client 127.0.0.1] File does not
exist: /usr/src/mod_perl-2.0.3/t/htdocs/TestModperl__status
[Thu Mar 22 21:38:52 2007] [error] [client 127.0.0.1] Handler for
modperl returned invalid result code 601
[Thu Mar 22 21:38:52 2007] [error] [client 127.0.0.1] Handler for
modperl returned invalid result code 1
*** The following error entry is expected and harmless ***
[Thu Mar 22 21:38:52 2007] [error] [client 127.0.0.1] Died at
/usr/src/mod_perl-2.0.3/t/response/TestModperl/status.pm line 24.\n
*** The following error entry is expected and harmless ***
Argument "foobar" isn't numeric.
*** The following error entry is expected and harmless ***
Argument "foo9bar" isn't numeric.
[Thu Mar 22 21:39:05 2007] [error] server reached MaxClients setting,
consider raising the MaxClients setting
Constant subroutine Apache2::Reload::Test::const redefined at
/usr/src/mod_perl-2.0.3/blib/lib/ModPerl/Util.pm line 69,
<fh00001perlfunc.pod> line 7040.
Subroutine subpackage redefined at
/usr/src/mod_perl-2.0.3/t/lib/Apache2/Reload/Test.pm line 7,
<fh00001perlfunc.pod> line 7040.
Subroutine run redefined at
/usr/src/mod_perl-2.0.3/t/lib/Apache2/Reload/Test.pm line 9,
<fh00001perlfunc.pod> line 7040.
Subroutine simple redefined at
/usr/src/mod_perl-2.0.3/t/lib/Apache2/Reload/Test.pm line 15,
<fh00001perlfunc.pod> line 7040.
Prototype mismatch: sub Apache2::Reload::Test::const: none vs () at
/usr/local/lib/perl5/5.8.8/constant.pm line 103, <fh00001perlfunc.pod>
line 7040.
Subroutine prototype redefined at
/usr/src/mod_perl-2.0.3/t/lib/Apache2/Reload/Test.pm line 17,
<fh00001perlfunc.pod> line 7040.
Constant subroutine Apache2::Reload::Test::const redefined at
/usr/src/mod_perl-2.0.3/blib/lib/ModPerl/Util.pm line 69,
<fh00001perlfunc.pod> line 7040.
Subroutine subpackage redefined at
/usr/src/mod_perl-2.0.3/t/lib/Apache2/Reload/Test.pm line 7,
<fh00001perlfunc.pod> line 7040.
Subroutine run redefined at
/usr/src/mod_perl-2.0.3/t/lib/Apache2/Reload/Test.pm line 9,
<fh00001perlfunc.pod> line 7040.
Subroutine simple redefined at
/usr/src/mod_perl-2.0.3/t/lib/Apache2/Reload/Test.pm line 15,
<fh00001perlfunc.pod> line 7040.
Prototype mismatch: sub Apache2::Reload::Test::const: none vs () at
/usr/local/lib/perl5/5.8.8/constant.pm line 103, <fh00001perlfunc.pod>
line 7040.
Subroutine prototype redefined at
/usr/src/mod_perl-2.0.3/t/lib/Apache2/Reload/Test.pm line 17,
<fh00001perlfunc.pod> line 7040.
Constant subroutine Apache2::Reload::Test::const redefined at
/usr/src/mod_perl-2.0.3/blib/lib/ModPerl/Util.pm line 69,
<fh00001perlfunc.pod> line 7040.
[Thu Mar 22 21:39:47 2007] [error] [client 127.0.0.1] user stas:
authentication failure for "/": Password Mismatch
[Thu Mar 22 21:39:52 2007] [info] Child process pid=7619 is exiting
[Thu Mar 22 21:39:52 2007] [info] Child process pid=7619 is exiting -
server push
END in modperl_extra.pl, pid=7619
[Thu Mar 22 21:39:52 2007] [info] Child process pid=7787 is exiting
[Thu Mar 22 21:39:52 2007] [info] Child process pid=7787 is exiting -
server push
END in modperl_extra.pl, pid=7787
[Thu Mar 22 21:39:52 2007] [info] Child process pid=7601 is exiting
[Thu Mar 22 21:39:52 2007] [info] Child process pid=7601 is exiting -
server push
END in TestModperl::print, pid=7601
END in modperl_extra.pl, pid=7601
[Thu Mar 22 21:39:52 2007] [info] removed PID file
/usr/src/mod_perl-2.0.3/t/logs/httpd.pid (pid=7597)
[Thu Mar 22 21:39:52 2007] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=7597
Perrin Harkins wrote:
> On 3/22/07, Eric Snyder <er...@janasnyder.com> wrote:
>> [ error] error running tests (please examine t/logs/error_log)
>
> What did you find in t/logs/error_log?
>
> - Perrin
>
Re: Having problems installing mod_perl on Slackware
Posted by Perrin Harkins <ph...@gmail.com>.
On 3/22/07, Eric Snyder <er...@janasnyder.com> wrote:
> [ error] error running tests (please examine t/logs/error_log)
What did you find in t/logs/error_log?
- Perrin
Re: Having problems installing mod_perl on Slackware
Posted by Eric Snyder <er...@janasnyder.com>.
I did a couple of things wrong. I changed to Apache 2.0.59 and I did not
run ./configure on mod_perl.
Make ran fine but I get the following when I run make test:
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/api/server_const.t 3 1 3
10 tests and 13 subtests skipped.
Failed 1/236 test scripts. 1/2392 subtests failed.
Files=236, Tests=2392, 410 wallclock secs (343.37 cusr + 29.90 csys =
373.27 CPU)
Failed 1/236 test programs. 1/2392 subtests failed.
[warning] server localhost:8529 shutdown
[ error] error running tests (please examine t/logs/error_log)
Looking higher in the terminal I see the lines:
t/api/server_const......................FAILED test 3
Failed 1/3 tests, 66.67% okay
Now I don't know how one can be 66.67% OK but apparently I am. How would
this linux newbie resolve this?
Thanks,
Eric
Perrin Harkins wrote:
> On 3/22/07, Eric Snyder <er...@janasnyder.com> wrote:
>> You are saying to use Apache 2.0.59 rather than 2.2.4?
>
> Yes.
>
> - Perrin
>
Re: Having problems installing mod_perl on Slackware
Posted by Perrin Harkins <ph...@gmail.com>.
On 3/22/07, Eric Snyder <er...@janasnyder.com> wrote:
> You are saying to use Apache 2.0.59 rather than 2.2.4?
Yes.
- Perrin
Re: Having problems installing mod_perl on Slackware
Posted by Eric Snyder <er...@janasnyder.com>.
The instructions said the -Uusethreads if I do not want thread support.
<snip>
If you need the threads support
<http://perl.apache.org/docs/2.0/user/install/install.html#Prerequisites>,
run:
% ./Configure -des -Dusethreads
Most likely you don't want perl-support for threads enabled, in which
case pass: |-Uusethreads| instead of |-Dusethreads|.
<snip>
Perrin:
You are saying to use Apache 2.0.59 rather than 2.2.4?
Eric
Perrin Harkins wrote:
> On 3/21/07, Eric Snyder <er...@janasnyder.com> wrote:
>> configured perl with:
>> ./Configure -des -Uusethreads
>
> It would be better not to compile threads unless you have something
> that requires them.
>
>> I then downloaded and extracted apache 2.2.4
>
> Could you try it with the latest 2.0.x version instead?
>
> - Perrin
>
Re: Having problems installing mod_perl on Slackware
Posted by Perrin Harkins <ph...@gmail.com>.
On 3/21/07, Eric Snyder <er...@janasnyder.com> wrote:
> configured perl with:
> ./Configure -des -Uusethreads
It would be better not to compile threads unless you have something
that requires them.
> I then downloaded and extracted apache 2.2.4
Could you try it with the latest 2.0.x version instead?
- Perrin
Re: Having problems installing mod_perl on Slackware
Posted by Fred Moyer <fr...@redhotpenguin.com>.
Fred Moyer wrote:
> Eric Snyder wrote:
>> /usr/src/httpd-2.2.4/srclib/apr/include/apr_tables.h:25:17: apr.h: No
>> such file or directory
>> In file included from
>> /usr/src/httpd-2.2.4/srclib/apr/include/apr_pools.h:38,
>> from
>> /usr/src/httpd-2.2.4/srclib/apr/include/apr_tables.h:26,
>> from
>> /usr/src/httpd-2.2.4/srclib/apr-util/include/apr_hooks.h:22,
>> from /usr/src/httpd-2.2.4/include/ap_config.h:26,
>> from /usr/src/httpd-2.2.4/include/httpd.h:43,
>> from modperl_apache_includes.h:27,
>> from mod_perl.h:20,
>> from mod_perl.c:17:
>> /usr/src/httpd-2.2.4/srclib/apr/include/apr_errno.h:52: error: syntax
>> error before "apr_strerror"
>> /usr/src/httpd-2.2.4/srclib/apr/include/apr_errno.h:53: error: syntax
>> error before "apr_size_t"
>> /usr/src/httpd-2.2.4/srclib/apr/include/apr_errno.h:53: warning: data
>> definition has no type or storage class
>>
>> What is wrong and how do I fix this?
>
> You're missing the apr development package. I'm not familiar with
> slackware so I can't say what exact package is missing, but if you
> search your package tree there should be some apr packages. Install
> those, and you should be ok.
Erm, you installed from source so scratch my last. Figure out where
apr.h is and add MP_APR_CONFIG=/dir/to/apr/installation. That directory
should have an include and lib directory beneath it, and apr.h will be
in the include directory.
HTH
Re: Having problems installing mod_perl on Slackware
Posted by Fred Moyer <fr...@redhotpenguin.com>.
Eric Snyder wrote:
...
> perl Makefile.PL MP_USE_STATIC=1 MP_AP_PREFIX=/usr/src/httpd-2.2.4
> MP_AP_CONFIGURE="--with-mpm=prefork"
>
> This seemed to go with no problems.
>
> Make totally blew up on me. I get massive errors from the start. Here is
> the top of the output:
...
> /usr/src/httpd-2.2.4/srclib/apr/include/apr_tables.h:25:17: apr.h: No
> such file or directory
> In file included from
> /usr/src/httpd-2.2.4/srclib/apr/include/apr_pools.h:38,
> from
> /usr/src/httpd-2.2.4/srclib/apr/include/apr_tables.h:26,
> from
> /usr/src/httpd-2.2.4/srclib/apr-util/include/apr_hooks.h:22,
> from /usr/src/httpd-2.2.4/include/ap_config.h:26,
> from /usr/src/httpd-2.2.4/include/httpd.h:43,
> from modperl_apache_includes.h:27,
> from mod_perl.h:20,
> from mod_perl.c:17:
> /usr/src/httpd-2.2.4/srclib/apr/include/apr_errno.h:52: error: syntax
> error before "apr_strerror"
> /usr/src/httpd-2.2.4/srclib/apr/include/apr_errno.h:53: error: syntax
> error before "apr_size_t"
> /usr/src/httpd-2.2.4/srclib/apr/include/apr_errno.h:53: warning: data
> definition has no type or storage class
>
> What is wrong and how do I fix this?
You're missing the apr development package. I'm not familiar with
slackware so I can't say what exact package is missing, but if you
search your package tree there should be some apr packages. Install
those, and you should be ok.