AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Problem adding SSL sopport for Apache 2 in AIX

    Posted Fri July 24, 2009 06:49 PM

    Originally posted by: SystemAdmin


    My name is Enrique, I've tried to install Apache with SSL support but I have had some Issues with that.

    This is my AIX envrironment:

    AIX 5.3.0.0

    xlC.adt.include 9.0.0.0 COMMITTED C Set ++ Application
    xlC.aix50.rte 9.0.0.1 COMMITTED XL C/C++ Runtime for AIX 5.2
    xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
    xlC.msg.en_US.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
    xlC.msg.en_US.rte 9.0.0.1 COMMITTED XL C/C++ Runtime
    xlC.rte 9.0.0.1 COMMITTED XL C/C++ Runtime

    bos.adt.base 5.3.8.0 C F Base Application Development
    bos.adt.include 5.3.8.0 C F Base Application Development
    bos.adt.lib 5.3.8.0 C F Base Application Development
    bos.adt.libm 5.3.8.0 C F Base Application Development
    openssl.base 0.9.8.600 C F Open Secure Socket Layer
    openssl 0.9.7l-2 C R Secure Sockets Layer and
    openssl-devel 0.9.7l-2 C R Secure Sockets Layer and

    /myhttp/httpd-2.2.11 => whereis openssl
    openssl: /usr/bin/openssl /usr/include/openssl
    This is the way a launch configure:

    /myhttp/httpd-2.2.11 =>./configure --enable-mods-shared=ALL \
    > --enable-proxy --enable-proxy-html --enable-proxy-ftp
    > --enable-proxy-balancer --enable-rewrite --enable-cache
    > --enable-ssl=static --with-ssl=/usr/include/openssl
    I got this messages among others:

    configure: WARNING: openssl/ssl.h: present but cannot be compiled
    configure: WARNING: openssl/ssl.h: check for missing prerequisite headers?
    configure: WARNING: openssl/ssl.h: see the Autoconf documentation
    configure: WARNING: openssl/ssl.h: section "Present But Cannot Be Compiled"
    configure: WARNING: openssl/ssl.h: proceeding with the preprocessor's result
    configure: WARNING: openssl/ssl.h: in the future, the compiler will take precedence
    checking for openssl/ssl.h... yes
    OK

    checking openssl/engine.h usability... no
    checking openssl/engine.h presence... yes
    configure: WARNING: openssl/engine.h: present but cannot be compiled
    configure: WARNING: openssl/engine.h: check for missing prerequisite headers?
    configure: WARNING: openssl/engine.h: see the Autoconf documentation
    configure: WARNING: openssl/engine.h: section "Present But Cannot Be Compiled"
    configure: WARNING: openssl/engine.h: proceeding with the preprocessor's result
    configure: WARNING: openssl/engine.h: in the future, the compiler will take precedence
    checking for openssl/engine.h... yes

    when I type make a get this error

    Making all in ssl
    /myhttp/httpd-2.2.11/srclib/apr/libtool --silent --mode=compile cc -qlanglvl=extc89 -g -qHALT=E -U__STR__ -D_THREAD_SAFE -D_USE_IRS -D_LARGEFILE64_SOURCE -I/myhttp/httpd-2.2.11/srclib/pcre -I. -I/myhttp/httpd-2.2.11/os/unix -I/myhttp/httpd-2.2.11/server/mpm/prefork -I/myhttp/httpd-2.2.11/modules/http -I/myhttp/httpd-2.2.11/modules/filters -I/myhttp/httpd-2.2.11/modules/proxy -I/myhttp/httpd-2.2.11/include -I/myhttp/httpd-2.2.11/modules/generators -I/myhttp/httpd-2.2.11/modules/mappers -I/myhttp/httpd-2.2.11/modules/database -I/myhttp/httpd-2.2.11/srclib/apr/include -I/myhttp/httpd-2.2.11/srclib/apr-util/include -I/myhttp/httpd-2.2.11/modules/proxy/../generators -I/myhttp/httpd-2.2.11/modules/ssl -I/myhttp/httpd-2.2.11/modules/dav/main -prefer-non-pic -static -c mod_ssl.c && touch mod_ssl.lo
    "/usr/include/openssl/pq_compat.h", line 1.3: 1506-218 (E) Unknown preprocessing directive #IBM_PROLOG_BEGIN_TAG.
    "/usr/include/openssl/pq_compat.h", line 2.3: 1506-218 (E) Unknown preprocessing directive #This.
    "/usr/include/openssl/pq_compat.h", line 4.3: 1506-220 (E) #line value 53ssl985 must contain only decimal digits.
    "/usr/include/openssl/pq_compat.h", line 4.12: 1506-288 (W) Expecting file name or new-line character on #line directive.
    "/usr/include/openssl/pq_compat.h", line 6.3: 1506-218 (E) Unknown preprocessing directive #Licensed.
    "/usr/include/openssl/pq_compat.h", line 8.3: 1506-218 (E) Unknown preprocessing directive #Restricted.
    "/usr/include/openssl/pq_compat.h", line 10.3: 1506-218 (E) Unknown preprocessing directive #COPYRIGHT.
    "/usr/include/openssl/pq_compat.h", line 11.3: 1506-218 (E) Unknown preprocessing directive #All.
    "/usr/include/openssl/pq_compat.h", line 13.3: 1506-218 (E) Unknown preprocessing directive #US.
    "/usr/include/openssl/pq_compat.h", line 14.3: 1506-218 (E) Unknown preprocessing directive #disclosure.
    "/usr/include/openssl/pq_compat.h", line 16.3: 1506-218 (E) Unknown preprocessing directive #IBM_PROLOG_END_TAG.
    "/usr/include/openssl/dtls1.h", line 1.3: 1506-218 (E) Unknown preprocessing directive #IBM_PROLOG_BEGIN_TAG.
    "/usr/include/openssl/dtls1.h", line 2.3: 1506-218 (E) Unknown preprocessing directive #This.
    "/usr/include/openssl/dtls1.h", line 4.3: 1506-220 (E) #line value 53ssl985 must contain only decimal digits.
    "/usr/include/openssl/dtls1.h", line 4.12: 1506-288 (W) Expecting file name or new-line character on #line directive.
    "/usr/include/openssl/dtls1.h", line 6.3: 1506-218 (E) Unknown preprocessing directive #Licensed.
    "/usr/include/openssl/dtls1.h", line 8.3: 1506-218 (E) Unknown preprocessing directive #Restricted.
    "/usr/include/openssl/dtls1.h", line 10.3: 1506-218 (E) Unknown preprocessing directive #COPYRIGHT.
    "/usr/include/openssl/dtls1.h", line 11.3: 1506-218 (E) Unknown preprocessing directive #All.
    "/usr/include/openssl/dtls1.h", line 13.3: 1506-218 (E) Unknown preprocessing directive #US.
    "/usr/include/openssl/dtls1.h", line 14.3: 1506-218 (E) Unknown preprocessing directive #disclosure.
    "/usr/include/openssl/dtls1.h", line 16.3: 1506-218 (E) Unknown preprocessing directive #IBM_PROLOG_END_TAG.
    "/usr/include/openssl/pqueue.h", line 1.3: 1506-218 (E) Unknown preprocessing directive #IBM_PROLOG_BEGIN_TAG.
    "/usr/include/openssl/pqueue.h", line 2.3: 1506-218 (E) Unknown preprocessing directive #This.
    "/usr/include/openssl/pqueue.h", line 4.3: 1506-220 (E) #line value 53ssl985 must contain only decimal digits.
    "/usr/include/openssl/pqueue.h", line 4.12: 1506-288 (W) Expecting file name or new-line character on #line directive.
    "/usr/include/openssl/pqueue.h", line 6.3: 1506-218 (E) Unknown preprocessing directive #Licensed.
    "/usr/include/openssl/pqueue.h", line 8.3: 1506-218 (E) Unknown preprocessing directive #Restricted.
    "/usr/include/openssl/pqueue.h", line 10.3: 1506-218 (E) Unknown preprocessing directive #COPYRIGHT.
    "/usr/include/openssl/pqueue.h", line 11.3: 1506-218 (E) Unknown preprocessing directive #All.
    "/usr/include/openssl/pqueue.h", line 13.3: 1506-218 (E) Unknown preprocessing directive #US.
    "/usr/include/openssl/pqueue.h", line 14.3: 1506-218 (E) Unknown preprocessing directive #disclosure.
    "/usr/include/openssl/pqueue.h", line 16.3: 1506-218 (E) Unknown preprocessing directive #IBM_PROLOG_END_TAG.
    "/usr/include/openssl/pq_compat.h", line 1.3: 1506-218 (E) Unknown preprocessing directive #IBM_PROLOG_BEGIN_TAG.
    "/usr/include/openssl/pq_compat.h", line 2.3: 1506-218 (E) Unknown preprocessing directive #This.
    "/usr/include/openssl/pq_compat.h", line 4.3: 1506-220 (E) #line value 53ssl985 must contain only decimal digits.
    "/usr/include/openssl/pq_compat.h", line 4.12: 1506-288 (W) Expecting file name or new-line character on #line directive.
    "/usr/include/openssl/pq_compat.h", line 6.3: 1506-218 (E) Unknown preprocessing directive #Licensed.
    "/usr/include/openssl/pq_compat.h", line 8.3: 1506-218 (E) Unknown preprocessing directive #Restricted.
    "/usr/include/openssl/pq_compat.h", line 10.3: 1506-218 (E) Unknown preprocessing directive #COPYRIGHT.
    "/usr/include/openssl/pq_compat.h", line 11.3: 1506-218 (E) Unknown preprocessing directive #All.
    "/usr/include/openssl/pq_compat.h", line 13.3: 1506-218 (E) Unknown preprocessing directive #US.
    "/usr/include/openssl/pq_compat.h", line 14.3: 1506-218 (E) Unknown preprocessing directive #disclosure.
    "/usr/include/openssl/pq_compat.h", line 16.3: 1506-218 (E) Unknown preprocessing directive #IBM_PROLOG_END_TAG.
    "/usr/include/openssl/store.h", line 1.3: 1506-218 (E) Unknown preprocessing directive #IBM_PROLOG_BEGIN_TAG.
    "/usr/include/openssl/store.h", line 2.3: 1506-218 (E) Unknown preprocessing directive #This.
    "/usr/include/openssl/store.h", line 4.3: 1506-220 (E) #line value 53ssl985 must contain only decimal digits.
    "/usr/include/openssl/store.h", line 4.12: 1506-288 (W) Expecting file name or new-line character on #line directive.
    "/usr/include/openssl/store.h", line 6.3: 1506-218 (E) Unknown preprocessing directive #Licensed.
    "/usr/include/openssl/store.h", line 8.3: 1506-218 (E) Unknown preprocessing directive #Restricted.
    "/usr/include/openssl/store.h", line 10.3: 1506-218 (E) Unknown preprocessing directive #COPYRIGHT.
    "/usr/include/openssl/store.h", line 11.3: 1506-218 (E) Unknown preprocessing directive #All.
    "/usr/include/openssl/store.h", line 13.3: 1506-218 (E) Unknown preprocessing directive #US.
    "/usr/include/openssl/store.h", line 14.3: 1506-218 (E) Unknown preprocessing directive #disclosure.
    "/usr/include/openssl/store.h", line 16.3: 1506-218 (E) Unknown preprocessing directive #IBM_PROLOG_END_TAG.
    make: 1254-004 The error code from the last command is 1.
    Stop.
    make: 1254-004 The error code from the last command is 1.
    Stop.
    make: 1254-004 The error code from the last command is 1.
    Stop.
    make: 1254-004 The error code from the last command is 1.
    Stop.

    I think there is a problem with ssl Libraries or something like that, be cause of when I compiled Apache without ssl support every thing goes fine.

    I check my Environment Variables libraries and I add new path (/opt/freeware/lib):

    LOCPATH=/usr/lib/nls/loc
    NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
    LIBPATH=/opt/freeware/lib:/usr/lib:/lib
    LD_LIBRARY_PATH=/opt/freeware/lib:/usr/lib:/lib
    I configure and make again but I got the same result

    by the way either I type --enable-ssl or --enable-ssl=static --with-ssl=/usr/include/openssl in configure options, I got the same result.

    What I making bad?

    thks for your help!
    #AIX-Forum


  • 2.  Re: Problem adding SSL sopport for Apache 2 in AIX

    Posted Mon July 27, 2009 12:53 AM

    Originally posted by: SystemAdmin


    FROM FF
    #AIX-Forum


  • 3.  Re: Problem adding SSL sopport for Apache 2 in AIX

    Posted Mon July 27, 2009 12:11 PM

    Originally posted by: pinne65


    Change the comment characters from # to regular old C comments /* */
    #AIX-Forum


  • 4.  Re: Problem adding SSL sopport for Apache 2 in AIX

    Posted Mon July 27, 2009 12:25 PM

    Originally posted by: garethr


    Quick question: Are your package versions actually compatible? You have a devel of 0.9.7 and a base of 0.9.8:

    
    openssl.base 0.9.8.600 C F Open Secure Socket Layer openssl 0.9.7l-2 C R Secure Sockets Layer and openssl-devel 0.9.7l-2 C R Secure Sockets Layer and
    


    I've got this:

    
    >lslpp -l | grep openssl openssl.base             0.9.8.800  COMMITTED  Open Secure Socket Layer openssl.license          0.9.8.800  COMMITTED  Open Secure Socket License openssl.man.en_US        0.9.8.800  COMMITTED  Open Secure Socket Layer openssl.base             0.9.8.800  COMMITTED  Open Secure Socket Layer
    

    #AIX-Forum