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 2004/08/05 12:44:25 UTC

DO NOT REPLY [Bug 30487] New: - Apache 2.0.50 refuses to serve pages when compiled with AIX 'xlc' ort 'xlc_r' compiler

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30487>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30487

Apache 2.0.50 refuses to serve pages when compiled with AIX 'xlc' ort 'xlc_r' compiler

           Summary: Apache 2.0.50 refuses to serve pages when compiled with
                    AIX 'xlc' ort 'xlc_r' compiler
           Product: Apache httpd-2.0
           Version: 2.0.50
          Platform: Other
        OS/Version: AIX
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: bozy@fgm.com.cy


Built Apache-2.0.50 on PowerPC 601 machine (IBM 7009 C10) running AIX 5.1 
(maintenance level 006), using Visual Age C for AIX v 6.0 (with latest 
maintenance levels applied). Following options were used:
"./configure" \
"--with-mpm-worker" \
"--enable-so" \
"--enable-layout=Apache" \
"--enable-mods-shared=most" \
"--with-expat=/home/bozy/src/httpd-2.0.50/srclib/apr-util/xml/expat" \
"--enable-static-support" \
"CC=xlc_r" \
"CFLAGS=-O2 -I/usr/local/include" \
"LDFLAGS=-L/usr/local/lib" \

Note: I neded specifically '_r' compiler for Apache to build properly with 
libdb-4.2, since Berkeley DB on AIX builds as multithreaded.

Everything compiled and built OK apart from some compiler warnings about 
incorrect file suffixes on '.la' files (I guess these could be ignored). I made 
an 'apachectl start' - everything started OK, error_log showing:
[quote]
[Thu Aug 05 13:20:40 2004] [notice] Apache/2.0.50 (Unix) PHP/5.0.0 DAV/2 
configured -- resuming normal operations
[unquote]
When trying to telnet to port 80 of the server I get following:
[quote]
$ telnet powerpc 80  
Trying...
Connected to powerpc.unicom.cg.
Escape character is '^]'.
Connection closed.
[unquote]
No errors/messages logged in access_log/error_log. I tried all thinkable 
combinations of optimization flags during compile, unloaded nearly all modules 
(including PHP5) etc. to no avail.

Finally (being almost sure nothing will change) I used 'cc_r' compiler instead 
of 'xlc_r' - not sure exactly what is the difference between the two, I guess 
it may be different C language level/standard and linking with some other set 
of default libraries. And everything works great! I've just checked couple of 
PHP scripts with MySQL - works perfectly fine. It can't be really called 
a 'bug' in Apache software, rather some weirdness of IBM C compiler, but I felt 
like reporting it to save some time to thers trying to compile it, as I've 
spent 3 days myself, must admit - I am no computer programmer. By the way, perl 
5.8.5 compiles, builds and tests with both flavors - either with 'cc_r' 
or 'xlc_r'.


Regards

Alexei

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