Menu

error rebuilding apache_1.3.24

Help
Anonymous
2002-05-24
2002-05-25
  • Anonymous

    Anonymous - 2002-05-24

    I have installed php_tuxedo_0_4_1 on Linux with tuxedo  7.1 , php4.1.1 and apache_1.3.24.
    There is no problem during the php compilation (with php_tuxedo).
    But, when i try to execute " ./configure --with-apache=/usr/local/apache  --activate-module=src/modules/php4/libphp4.a" the following error appears :

    Configuring for Apache, Version 1.3.24
    + using installation path layout: Apache (config.layout)
    + activated php4 module (modules/php4/libphp4.a)
    Creating Makefile
    Creating Configuration.apaci in src
    Creating Makefile in src
    + configured for Linux platform
    + setting C compiler to gcc
    + setting C pre-processor to gcc -E
    + checking for system header files
    + adding selected modules
        o php4_module uses ConfigStart/End
    + using system Expat
    + using -ldl for vendor DSO support
    + checking sizeof various data types
    + doing sanity check on compiler and options
    ** A test compilation with your Makefile configuration
    ** failed.  The below error output from the compilation
    ** test will give you an idea what is failing. Note that
    ** Apache requires an ANSI C Compiler, such as gcc.

    ======== Error Output for sanity check ========
    cd ..; gcc  -DLINUX=22 -I/app/php-4.1.1 -I/app/php-4.1.1/main -I/app/php-4.1.
    ain -I/app/php-4.1.1/Zend -I/app/php-4.1.1/Zend -I/app/php-4.1.1/TSRM -I/app/
    -4.1.1/TSRM -I/app/php-4.1.1 `./apaci`     -o helpers/dummy helpers/dummy.c
    l,-rpath,/app/tuxedo/lib  -rdynamic -L/app/tuxedo/lib -Lmodules/php4 -L../mod
    s/php4 -L../../modules/php4 -lmodphp4  -lpam  -ldl -ldl -lengine -lfml32 -lfm
    lgpnet -lbuft -lwsc -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt   -lm -
    ypt -lexpat -ldl
    /app/tuxedo/lib/libengine.so: undefined reference to `pthread_create'
    /app/tuxedo/lib/libengine.so: undefined reference to `pthread_getspecific'
    /app/tuxedo/lib/libengine.so: undefined reference to `pthread_detach'
    /app/tuxedo/lib/libengine.so: undefined reference to `pthread_once'
    /app/tuxedo/lib/libengine.so: undefined reference to `pthread_key_create'
    /app/tuxedo/lib/libengine.so: undefined reference to `pthread_mutex_trylock'
    /app/tuxedo/lib/libengine.so: undefined reference to `pthread_join'
    /app/tuxedo/lib/libengine.so: undefined reference to `pthread_cond_timedwait'
    /app/tuxedo/lib/libengine.so: undefined reference to `pthread_setspecific'
    collect2: ld returned 1 exit status
    make: *** [dummy] Error 1
    ============= End of Error Report =============
    Any help ?
    Thanks

     
    • Brian Foddy

      Brian Foddy - 2002-05-25

      You have me a little confused...
      The ./configure line you quote seems to have options from both
      the PHP and Apache configure programs in it.  If that is correct,
      and its valid, its a config method I've never heard of or tried before.  I always build Apache, then extract the PHP and PHP_Tuxedo source, build them and then install.  So I don't have
      any first hand experience in exactly how you are trying to build
      this.

      That said, if I just look at your error output, its far easier to
      understand what is wrong.
      New Tuxedo clients (of which Php-tuxedo is) build as
      a multi-threaded client.  Getting the libraries correct for
      the several versions of Tuxedo has always been the biggest
      headache of this project. 

      You need to get a statement like -lpthread in the link step.
      Edit the config.m4 file that came with php-tux and make something like these
      mods:

      PHP_ADD_LIBRARY(pthread)
      and add -lpthread to the TUXEDO_LIBS line.

      For the best, most exact mods, if you can take the
      output of "buildclient -v" of a sample program and copy
      the libs it uses, that is what is needed by php-tuxedo.

      If I get time this weekend, I'll try and rebuild my dev
      environment with something like yours and see if I can
      get you more exact mods to make.

      Brian

       

Log in to post a comment.