AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  error of installation of Apache application on AIX 7.1

    Posted Fri September 27, 2019 02:52 PM

    Originally posted by: kahn


    We tried to install Apache application on Aix 7.1. The installation of prerequisite and software of Apache were done without any issue but when we test to start the Apache application, we got the error as below:

    > ./apachectl

    exec(): 0509-036 Cannot load program /patches3/PATCHES/Apache_2.4/bin/httpd because of the following errors:

    rtld: 0712-001 Symbol iconv_close was referenced

          from module /patches3/PATCHES/Apache_2.4/lib/libaprutil-1.so(), but a runtime definition of the symbol was not found.

    rtld: 0712-001 Symbol iconv was referenced

          from module /patches3/PATCHES/Apache_2.4/lib/libaprutil-1.so(), but a runtime definition of the symbol was not found.

    rtld: 0712-001 Symbol iconv_open was referenced

          from module /patches3/PATCHES/Apache_2.4/lib/libaprutil-1.so(), but a runtime definition of the symbol was not found.

     

    I checked the LIBPATH and found as below:

    > echo $LIBPATH

    /patches3/PATCHES/Apache_2.4/lib:/usr/lib:/lib:/opt/freeware/lib:/opt/freeware/lib64:/unix:.

     

     



  • 2.  Re: error of installation of Apache application on AIX 7.1

    Posted Mon September 30, 2019 08:49 AM

    Originally posted by: sangameshm


    Latest available httpd AIX Toolbox is httpd-2.4.39-2.
    And it provides both has 32bit and 64bit support version.
    To start 64bit httpd, one needs to use /opt/freeware/sbin/apachectl_64 start.
    To start 32bit httpd, one needs to use /opt/freeware/sbin/apachectl start.

     

    How the apache present in  /patches3/PATCHES/Apache_2.4/ is installed ? and all the dependencies are downloaded from AIX Toolbox ?

     

    Thanks,

    Sangamesh



  • 3.  Re: error of installation of Apache application on AIX 7.1

    Posted Mon September 30, 2019 04:34 PM

    Originally posted by: kahn


      sangameshm Thanks for reply. While installing we used prefix path to ' /patches3/PATCHES/Apache_2.4/  ' and all dependencies were downloaded & installed from AIX toolbox. Then only make /make install worked.



  • 4.  Re: error of installation of Apache application on AIX 7.1

    Posted Thu October 03, 2019 05:43 AM

    Originally posted by: sangameshm


    Provide the output of "dump -Hov /patches3/PATCHES/Apache_2.4/lib/libaprutil-1.so" and

    dump -Tov /patches3/PATCHES/Apache_2.4/lib/libaprutil-1.so | egrep "iconv_open|iconv_close"

     

    Thanks,

    Sangamesh



  • 5.  Re: error of installation of Apache application on AIX 7.1

    Posted Thu October 03, 2019 09:03 AM

    Originally posted by: kahn


    root@erpdev:/> # dump -Hov /patches3/PATCHES/Apache_2.4/lib/libaprutil-1.so

    /patches3/PATCHES/Apache_2.4/lib/libaprutil-1.so:

                            ***Object Module Header***
    # Sections      Symbol Ptr      # Symbols       Opt Hdr Len     Flags
             5      0x000719fe          16839                72     0x3002
    Flags=( EXEC DYNLOAD SHROBJ DEP_SYSTEM )
    Timestamp = "Aug 29 14:21:23 2019"
    Magic = 0x1df  (32-bit XCOFF)

                            ***Optional Header***
    Tsize       Dsize       Bsize       Tstart      Dstart
    0x0003b278  0x000070e8  0x00000014  0x10000150  0x200003c8

    SNloader    SNentry     SNtext      SNtoc       SNdata
    0x0004      0x0000      0x0001      0x0002      0x0002

    TXTalign    DATAalign   TOC         vstamp      entry
    0x0007      0x0003      0x20006c94  0x0001      0xffffffff

    maxSTACK    maxDATA     SNbss       magic       modtype
    0x00000000  0x00000000  0x0003      0x010b        RE

                            ***Loader Section***
                          Loader Header Information
    VERSION#         #SYMtableENT     #RELOCent        LENidSTR
    0x00000001       0x000001d6       0x0000055b       0x000000b7

    #IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
    0x00000005       0x00006c74       0x00002515       0x00006d2b


                            ***Import File Strings***
    INDEX  PATH                          BASE                MEMBER
    0      /opt/freeware/lib:/patches3/PATCHES/Apache_2.4//lib:/opt/IBM/xlmass/8.1.3/lib/aix61:/opt/IBM/xlc/13                                                            .1.3/lib:/usr/lib:/lib
    1                                    libexpat.a          libexpat.so.1
    2                                    libapr-1.so
    3                                    libc.a              shr.o
    4                                    ..
    root@erpdev:/> # dump -Tov /patches3/PATCHES/Apache_2.4/lib/libaprutil-1.so | egrep "iconv_open|iconv_close"
    [467]   0x00000000    undef      IMP     DS EXTref              .. iconv_close
    [469]   0x00000000    undef      IMP     DS EXTref              .. iconv_open
     



  • 6.  Re: error of installation of Apache application on AIX 7.1

    Posted Thu October 03, 2019 10:02 AM

    Originally posted by: AyappanP


    It's not linked properly against libiconv.a. I think you need to built it properly. 

    The linking flag "-brtl" can be used only if it is required otherwise it will ignore undefined symbols and gives these kind of issues. 



  • 7.  Re: error of installation of Apache application on AIX 7.1

    Posted Thu October 03, 2019 03:04 PM

    Originally posted by: kahn


    We used below command to configure with option :

    ./configure --with-included-apr --with-included-apr --with-pcre --prefix=/patches3/PATCHES/Apache_2.4/MSHS_Apache/Apache --with-expat=/patches3/PATCHES/Apache_2.4/expat/expat-2.2.7

     

    So please suggest how to fix or unset the flag "-brtl"



  • 8.  Re: error of installation of Apache application on AIX 7.1

    Posted Fri October 04, 2019 03:59 AM

    Originally posted by: AyappanP


    Please check our httpd spec file. Look for the CFLAGS and LDFLAGS

    http://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/SPECS/httpd-2.4.39-2.spec

     



  • 9.  Re: error of installation of Apache application on AIX 7.1

    Posted Mon October 07, 2019 11:31 AM

    Originally posted by: kahn


    Which one we  need to update and to what value. Please suggest below are the current Flag values 
    oradisc@erpdev:/patches3/PATCHES/Apache_2.4/bin >
    > grep LDFLAGS *
    apr-1-config:LDFLAGS="-Wl,-brtl"
    apr-1-config:    flags="$flags $LDFLAGS"
    apu-1-config:LDFLAGS="-L/patches3/PATCHES/Apache_2.4/expat/expat-2.2.7/lib/lib"
    apu-1-config:    flags="$flags $LDFLAGS"
    apxs:my $CFG_LDFLAGS    = join ' ', map { get_vars($_) }
    apxs:  qw(LDFLAGS NOTEST_LDFLAGS SH_LDFLAGS);
    apxs:    qw(TARGET CC CFLAGS CFLAGS_SHLIB LD_SHLIB LDFLAGS_SHLIB LIBS_SHLIB
    apxs:    my $ldflags = "$CFG_LDFLAGS";
    oradisc@erpdev:/patches3/PATCHES/Apache_2.4/bin >
    > grep CFLAGS  *
    apr-1-config:CFLAGS="-g -qHALT=E"
    apr-1-config:    flags="$flags $CFLAGS"
    apxs:my $CFG_CFLAGS     = join ' ', map { get_vars($_) }
    apxs:  qw(SHLTCFLAGS CFLAGS NOTEST_CPPFLAGS EXTRA_CPPFLAGS EXTRA_CFLAGS);
    apxs:    qw(TARGET CC CFLAGS CFLAGS_SHLIB LD_SHLIB LDFLAGS_SHLIB LIBS_SHLIB
    apxs:    my $cflags = "$CFG_CFLAGS";
    oradisc@erpdev:/patches3/PATCHES/Apache_2.4/bin >