Re: Compile Apache2 From Source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rick Johnson <rjohnson@xxxxxxxxxx> wrote:

>Jeff Grossman wrote:
>> Hello, I just installed Red Hat 9 yesterday, upgraded from 7.3.  I was
>> running Apache 1.3.27 on Red Hat 7.3.  I also compile from source for
>> Apache and prefer not to use RPM's.  When I tried to compile Apache2 from
>> source using --with-mpm=worker, the install crashed.  Does anybody know
>> how I can enable thread mode in Apache2 under Red Hat 9?
>
>I experimented with this a while back by modifying the spec within the
>apache<version>.src.rpm. This was under Red Hat 8.0, and it caused
>instability on certain content (SquirrelMail comes to mind).
>
>I posted this back in December, for Red Hat 8.0's Apache 2.0.40, but I
>believe it should more or less apply for Red Hat 9.
>
>https://listman.redhat.com/pipermail/redhat-list/2002-December/159512.html
>
>In the above linked post, I've outlined how to modify the Apache spec in
>order to use worker threads, and incidentally noted how to increase your max
>connections as well at compile time.

Thanks for the information.  But, I have a few problems with that.
First of all, I am compiling from source, not from an RPM.  Secondly,
when I use --with-mpm=worker on the configure line, I get an error.

I used the configure line of:
./configure --enable-cgi --enable-so --with-mpm=worker

and I get the following error:

server/.libs/libmain.al(mpm_common.lo)(.text+0x3a0): In function
`ap_mpm_pod_ope
n':
/temp/httpd-2.0.45/server/mpm_common.c:398: multiple definition of
`ap_mpm_pod_o
pen'
server/mpm/worker/.libs/libworker.al(pod.lo)(.text+0x0):/temp/httpd-2.0.45/serve
r/mpm/worker/pod.c:66: first defined here
/usr/bin/ld: Warning: size of symbol `ap_mpm_pod_open' changed from 82
to 134 in
 server/.libs/libmain.al(mpm_common.lo)
server/.libs/libmain.al(mpm_common.lo)(.text+0x428): In function
`ap_mpm_pod_che
ck':
/temp/httpd-2.0.45/server/mpm_common.c:421: multiple definition of
`ap_mpm_pod_c
heck'
server/mpm/worker/.libs/libworker.al(pod.lo)(.text+0x54):/temp/httpd-2.0.45/serv
er/mpm/worker/pod.c:87: first defined here
/usr/bin/ld: Warning: size of symbol `ap_mpm_pod_check' changed from
75 to 56 in
 server/.libs/libmain.al(mpm_common.lo)
server/.libs/libmain.al(mpm_common.lo)(.text+0x460): In function
`ap_mpm_pod_clo
se':
/temp/httpd-2.0.45/server/mpm_common.c:440: multiple definition of
`ap_mpm_pod_c
lose'
server/mpm/worker/.libs/libworker.al(pod.lo)(.text+0xa0):/temp/httpd-2.0.45/serv
er/mpm/worker/pod.c:109: first defined here
/usr/bin/ld: Warning: size of symbol `ap_mpm_pod_close' changed from
47 to 59 in
 server/.libs/libmain.al(mpm_common.lo)
server/.libs/libmain.al(mpm_common.lo)(.text+0x618): In function
`ap_mpm_pod_sig
nal':
/temp/httpd-2.0.45/server/mpm_common.c:532: multiple definition of
`ap_mpm_pod_s
ignal'
server/mpm/worker/.libs/libworker.al(pod.lo)(.text+0x144):/temp/httpd-2.0.45/ser
ver/mpm/worker/pod.c:141: first defined here
/usr/bin/ld: Warning: size of symbol `ap_mpm_pod_signal' changed from
6 to 40 in
 server/.libs/libmain.al(mpm_common.lo)
server/.libs/libmain.al(mpm_common.lo)(.text+0x640): In function
`ap_mpm_pod_kil
lpg':
/temp/httpd-2.0.45/server/mpm_common.c:544: multiple definition of
`ap_mpm_pod_k
illpg'
server/mpm/worker/.libs/libworker.al(pod.lo)(.text+0x14c):/temp/httpd-2.0.45/ser
ver/mpm/worker/pod.c:146: first defined here
/usr/bin/ld: Warning: size of symbol `ap_mpm_pod_killpg' changed from
56 to 53 i
n server/.libs/libmain.al(mpm_common.lo)
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/temp/httpd-2.0.45'
make: *** [all-recursive] Error 1


If I do not include the --with-mpm=worker part, it will compile fine.

Jeff
-- 
Jeff Grossman (jeff@xxxxxxxxxxx)





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux