Menu

Compiling w/ Static PHP

Help
2003-05-13
2003-05-13
  • Shane Brennan

    Shane Brennan - 2003-05-13

    I'm compiling Apache 1.3.27 w/ php 4.3.1 and having an issue.  Here's my WHOLE ./configure statement used inside mod_ssl:
    ./configure --with-apache=../apache1  --with-ssl=../openssl --with-mm=../mm --prefix=/usr/local/apache1 --enable-module=so --enable-module=rewrite --enable-shared=rewrite --enable-module=setenvif --enable-shared=setenvif --enable-module=mime --enable-shared=mime --enable-module=mime_magic --enable-shared=mime_magic --enable-module=speling --enable-shared=speling --enable-module=dir --enable-shared=dir --enable-module=auth --enable-shared=auth --enable-module=access --enable-shared=access --enable-module=alias --enable-shared=alias --enable-module=status --enable-shared=status --enable-module=userdir --enable-shared=userdir --enable-module=vhost_alias --enable-shared=vhost_alias --enable-module=env --enable-shared=env --enable-module=log_referer --enable-shared=log_referer --enable-module=log_config --enable-shared=log_config --enable-module=log_agent --enable-shared=log_agent --enable-module=headers --enable-shared=headers --activate-module=src/modules/php4/libphp4.a

    I get :
    ======== Error Output for sanity check ========
    cd ..; gcc  -DLINUX=22 -I/usr/include/gdbm -DMOD_SSL=208112 -DEAPI -DEAPI_MM `./apaci` -I./../../mm  -L/usr/local/src/openssl -L./../../mm/.libs  -o helpers/dummy helpers/dummy.c   -Wl,-rpath,/usr/local/mcal/lib -Wl,-rpath,/usr/local/mysql3/lib/mysql -Wl,-rpath,/usr/local/pdflib/lib -Wl,-rpath,/usr/local/mm/lib  -rdynamic -L/usr/local/mcal/lib -L/usr/local/mysql3/lib/mysql -L/usr/local/pdflib/lib -L/usr/local/mm/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4    -rdynamic -L/usr/local/mcal/lib -L/usr/local/mysql3/lib/mysql -L/usr/local/pdflib/lib -L/usr/local/mm/lib  -lmcal  -lmm -lpdf -lz -lmysqlclient -lz -lcrypt -lresolv -lm -ldl -lnsl  -lcrypt   -lm -lcrypt -lgdbm  -lssl -lcrypto -lmm -lexpat -ldl
    /usr/local/mcal/lib/libmcal.so: undefined reference to `cc_login'
    /usr/local/mcal/lib/libmcal.so: undefined reference to `cc_searched'
    /usr/local/mcal/lib/libmcal.so: undefined reference to `cc_vlog'
    /usr/local/mcal/lib/libmcal.so: undefined reference to `cc_vdlog'
    collect2: ld returned 1 exit status
    make: *** [dummy] Error 1
    ============= End of Error Report =============

    I have updated my ld.so.conf, run ldconfig, and PHP compiles fine with the support for mcal.   Any ideas?

     
    • Shane Brennan

      Shane Brennan - 2003-05-13

      P.S.   I'd prefer to run PHP statically, but I'm going to recompile apache and use APXS to load it dynamically, and see if that makes a difference.

       
      • Lauren Matheson

        Lauren Matheson - 2003-05-13

        Sorry Shane, no help here .. it has been ages since I've compiled mcal, and recently where I've use it I've used the debian package which works nicely.

         

Log in to post a comment.