10 Replies Latest reply on May 8, 2013 7:00 AM by jginer

    make not create .so in aix7.1 and httpd 2.2.14

    jginer

      We need to create the modules .so in aix 7.1 and httpd 2.2.14

       

      We follow instructions of the documentation:

      Download the mod_cluster sources: mod_cluster.1.1.3.Final-src-ssl.tar.gz

       

      Build the mod_cluster modules components, for each subdirectory advertise, mod_manager, mod_proxy_cluster and mod_slotmem. We do:

      sh buildconf
           Creating configure

      ./configure --with-apxs=/usr/IBMAHS/bin/apxs
           checking for Apache httpd installation... APXS is /usr/IBMAHS/bin/apxs
           apxs support is true
           configure: creating ./config.status
           config.status:creating Makefile
          
      make
           /usr/IBMAHS/build/libtool --silet --mode=link xlC -g -qHALT=E -Wl,-brtl -L/usr/include/openssl/lib -Wl,-brtl -L /usr/include/openssl/lib -lm -p mod_advertise.la -rpath /usr/IBMAHS/modules
           -module -avoid-version mod_advertise.lo
           libtool: link: unable to infer tagged configuration
           libtool: link: specidy a tag with '--tag'
           make: 1254-004 The error code from the last command is 1.

      Can someone help me?

        • 1. Re: make not create .so in aix7.1 and httpd 2.2.14
          jfclere

          It looks like the libtool you have is broken, where did you get the Apache httpd?

          I guess libtool can't find the C compiler may be -tag=CC could help.

          What does apxs -q CC says? Do you have the same compiler?

          • 2. Re: make not create .so in aix7.1 and httpd 2.2.14
            jginer

            It is the Apache distribution for IBM AIX compiles and distributes 'Expansion Pack'

            Apache HTTP Server 2.2.14.0 httpd.base


            • 3. Re: make not create .so in aix7.1 and httpd 2.2.14
              jfclere

              Ok (I was hoping you compile it your self) :-(

               

              So What does apxs -q CC says? Do you have the same compiler?

              • 4. Re: make not create .so in aix7.1 and httpd 2.2.14
                jginer

                (/usr/IBMAHS/bin)# ./apxs -q CC
                xlC
                (/usr/IBMAHS/bin)# xlC -qversion
                ksh: xlC:  not found.
                (/usr/IBMAHS/bin)# lslpp -l|grep xlC
                  xlC.aix61.rte             12.1.0.0  COMMITTED  IBM XL C++ Runtime for AIX 6.1
                  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         12.1.0.0  COMMITTED  IBM XL C++ Runtime
                  xlC.rte                   12.1.0.0  COMMITTED  IBM XL C++ Runtime for AIX
                  xlC.sup.aix50.rte          9.0.0.1  COMMITTED  XL C/C++ Runtime for AIX 5.2

                Does mean that the compiler is not installed?

                • 5. Re: make not create .so in aix7.1 and httpd 2.2.14
                  jfclere

                  Yes that seems to the problem.

                  • 6. Re: make not create .so in aix7.1 and httpd 2.2.14
                    jginer

                    Can we use another compiler (gcc)? How?

                    • 7. Re: make not create .so in aix7.1 and httpd 2.2.14
                      jfclere

                      Using gcc isn't a good idea you have to use the same compiler for httpd and mod_cluster otherwise it won't work.

                      • 8. Re: make not create .so in aix7.1 and httpd 2.2.14
                        jginer

                        We install xlc:

                        xlc -qversion

                        IBM XL C/C++ for AIX, V12.1 (5765-J02, 5725-C72)

                        Version: 12.01.0000.0000

                         

                        We repeat instructions of the documentation for each module (proxy, slotmem, manager, proxy_cluster), and only advertise was erroneous:

                         

                        sh buildconf

                             Creating configure

                         

                        ./configure --with-apxs=/usr/IBMAHS/bin/apxs

                             checking for Apache httpd installation... APXS is /usr/IBMAHS/bin/apxs

                             apxs support is true

                             configure: creating ./config.status

                             config.status:creating Makefile

                         

                        make

                                /usr/IBMAHS/build/libtool --silent --tag=CC --mode=link xlC -g -qHALT=E    -Wl,-brtl -L/usr/include/openssl/lib   -Wl,-brtl -L/usr/include/openssl/lib -lm   -o mod_advertise.la -rpath /usr/IBMAHS/modules -module -avoid-version  mod_advertise.lo

                        Usage: nm [-ACfhlprTv] [-B|-P] [-e|-g|-u] [-d|-o|-x|{-t [d|x|o]}]

                                        [-X{32|64|32_64|d64|any}] [--] File ...

                        ld: 0711-244 ERROR: No csects or exported symbols have been saved.

                        make: 1254-004 The error code from the last command is 8.

                         

                         

                        Stop.

                         

                        Any suggestion?

                        • 9. Re: make not create .so in aix7.1 and httpd 2.2.14
                          jfclere

                          The only difference in the makefile is that advertise has only a single source file... Weird :-(

                          Would it be possible to run:

                          /usr/IBMAHS/build/libtool with --debug to see what failed in the build.

                          • 10. Re: make not create .so in aix7.1 and httpd 2.2.14
                            jginer

                            Hi,

                             

                            One week later, we try it again and the archive .so is created.

                             

                            We only do a "make clean" before to repeat the instructions.

                             

                            Thank you for your help.

                             

                            Regards,