You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/10/25 18:41:25 UTC

DO NOT REPLY [Bug 50152] New: Problem with mpm worker on 64bit platform!

https://issues.apache.org/bugzilla/show_bug.cgi?id=50152

           Summary: Problem with mpm worker on 64bit platform!
           Product: Apache httpd-2
           Version: 2.2.17
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Event MPM
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: phanquochien@gmail.com


Hi!
I'm interesting compile apache httpd 2.2.17 on my centos5 x64.When I try use
mpm=worker it raised error. See detail below:

My configure:
 ./configure --prefix=/usr/local/apache --with-mpm=worker --enable-deflate
--enable-reqtimeout --enable-headers --enable-rewrite --enable-so
--enable-vhost-alias --enable-suexec --with-suexec-docroot=/home
And make proccess:


make[1]: Entering directory `/usr/local/src/httpd-2.2.17'
/usr/local/apache/build/libtool --silent --mode=compile gcc -g -O2 -pthread   
-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE   
-I/usr/local/src/httpd-2.2.17/srclib/pcre -I.
-I/usr/local/src/httpd-2.2.17/os/unix
-I/usr/local/src/httpd-2.2.17/server/mpm/worker
-I/usr/local/src/httpd-2.2.17/modules/http
-I/usr/local/src/httpd-2.2.17/modules/filters
-I/usr/local/src/httpd-2.2.17/modules/proxy
-I/usr/local/src/httpd-2.2.17/include
-I/usr/local/src/httpd-2.2.17/modules/generators
-I/usr/local/src/httpd-2.2.17/modules/mappers
-I/usr/local/src/httpd-2.2.17/modules/database -I/usr/local/apache/include
-I/usr/local/src/httpd-2.2.17/modules/proxy/../generators
-I/usr/local/src/httpd-2.2.17/modules/ssl
-I/usr/local/src/httpd-2.2.17/modules/dav/main  -prefer-non-pic -static -c
modules.c && touch modules.lo
gcc -g -O2 -pthread    -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE   
-I/usr/local/src/httpd-2.2.17/srclib/pcre -I.
-I/usr/local/src/httpd-2.2.17/os/unix
-I/usr/local/src/httpd-2.2.17/server/mpm/worker
-I/usr/local/src/httpd-2.2.17/modules/http
-I/usr/local/src/httpd-2.2.17/modules/filters
-I/usr/local/src/httpd-2.2.17/modules/proxy
-I/usr/local/src/httpd-2.2.17/include
-I/usr/local/src/httpd-2.2.17/modules/generators
-I/usr/local/src/httpd-2.2.17/modules/mappers
-I/usr/local/src/httpd-2.2.17/modules/database -I/usr/local/apache/include
-I/usr/local/src/httpd-2.2.17/modules/proxy/../generators
-I/usr/local/src/httpd-2.2.17/modules/ssl
-I/usr/local/src/httpd-2.2.17/modules/dav/main  -c
/usr/local/src/httpd-2.2.17/server/buildmark.c
/usr/local/apache/build/libtool --silent --mode=link gcc -g -O2 -pthread       
-o httpd  modules.lo buildmark.o -export-dynamic server/libmain.la
modules/aaa/libmod_authn_file.la modules/aaa/libmod_authn_default.la
modules/aaa/libmod_authz_host.la modules/aaa/libmod_authz_groupfile.la
modules/aaa/libmod_authz_user.la modules/aaa/libmod_authz_default.la
modules/aaa/libmod_auth_basic.la modules/filters/libmod_reqtimeout.la
modules/filters/libmod_include.la modules/filters/libmod_filter.la
modules/filters/libmod_deflate.la modules/loggers/libmod_log_config.la
modules/metadata/libmod_env.la modules/metadata/libmod_headers.la
modules/metadata/libmod_setenvif.la modules/metadata/libmod_version.la
modules/http/libmod_http.la modules/http/libmod_mime.la
modules/generators/libmod_status.la modules/generators/libmod_autoindex.la
modules/generators/libmod_asis.la modules/generators/libmod_suexec.la
modules/generators/libmod_cgid.la modules/mappers/libmod_vhost_alias.la
modules/mappers/libmod_negotiation.la modules/mappers/libmod_dir.la
modules/mappers/libmod_actions.la modules/mappers/libmod_userdir.la
modules/mappers/libmod_alias.la modules/mappers/libmod_rewrite.la
modules/mappers/libmod_so.la server/mpm/worker/libworker.la os/unix/libos.la
-lm /usr/local/src/httpd-2.2.17/srclib/pcre/libpcre.la
/usr/local/apache/lib/libaprutil-1.la -lexpat /usr/local/apache/lib/libapr-1.la
-luuid -lrt -lcrypt -lpthread -ldl
server/mpm/worker/.libs/libworker.a(worker.o): In function `child_main':
/usr/local/src/httpd-2.2.17/server/mpm/worker/worker.c:1203: undefined
reference to `ap_thread_stacksize'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/usr/local/src/httpd-2.2.17'
make: *** [all-recursive] Error 1
-bash-3.2#

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50152] Problem with mpm worker on 64bit platform!

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50152

Rainer Jung <ra...@kippdata.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Event MPM                   |worker

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50152] Problem with mpm worker on 64bit platform!

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50152

Mr.Hien <ph...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Mr.Hien <ph...@gmail.com> 2010-10-26 09:34:11 EDT ---
Problem has been resolved by using "make clean" and make again!
Thanks anyone help!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50152] Problem with mpm worker on 64bit platform!

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50152

--- Comment #1 from Rainer Jung <ra...@kippdata.de> 2010-10-26 08:09:44 EDT ---
The symbol should be in libmain.a. I describe the steps how it gets there and
you can check step by step, where we have lost it.

First the symbol should be im mpm_common.o. You should find the file inside
your build tree in server/mpm_common.o. To verify, whether the symbol is in
there, you can type

% nm server/mpm_common.o | grep ap_thread_stacksize
0000000000000020 B ap_thread_stacksize

If it is not, please provide the result of that command and also the line in
your make output, that contain "mpm_common". It should be similar to:

/usr/local/src/httpd-2.2.17/srclib/apr/libtool --silent --mode=compile gcc
-pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE  
-I/usr/local/src/httpd-2.2.17/srclib/pcre -I.
-I/usr/local/src/httpd-2.2.17/os/unix
-I/usr/local/src/httpd-2.2.17/server/mpm/worker ...  -prefer-non-pic -static -c
mpm_common.c && touch mpm_common.lo



Now when linking libmain.a, the symbol should become part of that:

% nm ./server/.libs/libmain.a|grep ap_thread_stacksize
0000000000000020 B ap_thread_stacksize

The make output for linking libmain was:

/usr/local/src/httpd-2.2.17/srclib/apr/libtool --silent --mode=link gcc
-pthread -I/usr/local/src/httpd-2.2.17/srclib/pcre      -o libmain.la -static 
test_char.h config.lo log.lo main.lo vhost.lo util.lo util_script.lo
util_md5.lo util_cfgtree.lo util_ebcdic.lo util_time.lo connection.lo listen.lo
mpm_common.lo util_charset.lo util_debug.lo util_xml.lo util_filter.lo
util_pcre.lo exports.lo scoreboard.lo error_bucket.lo protocol.lo core.lo
request.lo provider.lo eoc_bucket.lo core_filters.lo

and you can see the mpm_common.lo.

When looking closer at your make output snippet, I suspect that you have a
confusion between the contents of /usr/local/apache/include and the include
files provided by your 2.2.17 source in /usr/local/src/httpd-2.2.17.
Furthermore I wonder why libtool in /usr/local/apache/build/libtool is being
used and apr and apr-util in /usr/local/apache/lib.

You might want to temporarily remove your whole /usr/local/apache to build the
new version without any dependencies to your old one.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50152] Problem with mpm worker on 64bit platform!

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50152

Jeff Trawick <tr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |INVALID

--- Comment #3 from Jeff Trawick <tr...@apache.org> 2010-10-26 11:04:13 EDT ---
not a bug

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org