[mod-lisp-devel] compiling mod_lisp2 for Apache2

Sheng Han shengh at cadence.com
Fri Nov 12 12:03:15 UTC 2004


hi all,

I compiled the newly released mod_lisp2 for Apache2 under Solaris.

With httpd-2-0-52, I have the error of .so file didn't get compiled:

    ./bin/apxs -i -c ./modules/mod_lisp2.c
    /home2/pcuser/shengh/software/httpd-2-0-52/build/libtool --silent
    --mode=compile gcc -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER
    -DSOLARIS2=9 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2
    -pthreads -I/home2/pcuser/shengh/software/httpd-2-0-52/include 
    -I/home2/pcuser/shengh/software/httpd-2-0-52/include  
    -I/home2/pcuser/shengh/software/httpd-2-0-52/include   -c -o
    ./modules/mod_lisp2.lo ./modules/mod_lisp2.c && touch
    ./modules/mod_lisp2.slo
    gcc: unrecognized option `-pthreads'
    /home2/pcuser/shengh/software/httpd-2-0-52/build/libtool --silent
    --mode=link gcc -o ./modules/mod_lisp2.la  -rpath
    /home2/pcuser/shengh/software/httpd-2-0-52/modules -module
    -avoid-version    ./modules/mod_lisp2.lo
    /home2/pcuser/shengh/software/httpd-2-0-52/build/instdso.sh
    SH_LIBTOOL='/home2/pcuser/shengh/software/httpd-2-0-52/build/libtool'
    ./modules/mod_lisp2.la
    /home2/pcuser/shengh/software/httpd-2-0-52/modules
    /home2/pcuser/shengh/software/httpd-2-0-52/build/libtool
    --mode=install cp ./modules/mod_lisp2.la
    /home2/pcuser/shengh/software/httpd-2-0-52/modules/
    cp ./modules/.libs/mod_lisp2.lai
    /home2/pcuser/shengh/software/httpd-2-0-52/modules/mod_lisp2.la
    cp ./modules/.libs/mod_lisp2.a
    /home2/pcuser/shengh/software/httpd-2-0-52/modules/mod_lisp2.a
    ranlib /home2/pcuser/shengh/software/httpd-2-0-52/modules/mod_lisp2.a
    chmod 644 /home2/pcuser/shengh/software/httpd-2-0-52/modules/mod_lisp2.a
    ----------------------------------------------------------------------
    Libraries have been installed in:
       /home2/pcuser/shengh/software/httpd-2-0-52/modules

    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
       - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
         during execution
       - use the `-RLIBDIR' linker flag

    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------
    Warning!  dlname not found in
    /home2/pcuser/shengh/software/httpd-2-0-52/modules/mod_lisp2.la.
    Assuming installing a .so rather than a libtool archive.
    chmod 755
    /home2/pcuser/shengh/software/httpd-2-0-52/modules/mod_lisp2.so
    chmod: WARNING: can't access
    /home2/pcuser/shengh/software/httpd-2-0-52/modules/mod_lisp2.so
    apxs:Error: Command failed with rc=65536


With httpd-2-0-50, it was fine:

    <muvcso33> httpd 534>./bin/apxs -i -c ./modules/mod_lisp2.c
    /home2/pcuser/shengh/software/httpd/build/libtool --silent
    --mode=compile gcc -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER
    -DSOLARIS2=9 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2
    -pthreads -I/home2/pcuser/shengh/software/httpd/include 
    -I/home2/pcuser/shengh/software/httpd/include  
    -I/home2/pcuser/shengh/software/httpd/include   -c -o
    ./modules/mod_lisp2.lo ./modules/mod_lisp2.c && touch
    ./modules/mod_lisp2.slo
    gcc: unrecognized option `-pthreads'
    /home2/pcuser/shengh/software/httpd/build/libtool --silent
    --mode=link gcc -o ./modules/mod_lisp2.la  -rpath
    /home2/pcuser/shengh/software/httpd/modules -module
    -avoid-version    ./modules/mod_lisp2.lo
    /home2/pcuser/shengh/software/httpd/build/instdso.sh
    SH_LIBTOOL='/home2/pcuser/shengh/software/httpd/build/libtool'
    ./modules/mod_lisp2.la /home2/pcuser/shengh/software/httpd/modules
    /home2/pcuser/shengh/software/httpd/build/libtool --mode=install cp
    ./modules/mod_lisp2.la /home2/pcuser/shengh/software/httpd/modules/
    cp ./modules/.libs/mod_lisp2.so
    /home2/pcuser/shengh/software/httpd/modules/mod_lisp2.so
    chmod +x /home2/pcuser/shengh/software/httpd/modules/mod_lisp2.so
    cp ./modules/.libs/mod_lisp2.lai
    /home2/pcuser/shengh/software/httpd/modules/mod_lisp2.la
    cp ./modules/.libs/mod_lisp2.a
    /home2/pcuser/shengh/software/httpd/modules/mod_lisp2.a
    ranlib /home2/pcuser/shengh/software/httpd/modules/mod_lisp2.a
    chmod 644 /home2/pcuser/shengh/software/httpd/modules/mod_lisp2.a
    ----------------------------------------------------------------------
    Libraries have been installed in:
       /home2/pcuser/shengh/software/httpd/modules

    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
       - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
         during execution
       - add LIBDIR to the `LD_RUN_PATH' environment variable
         during linking
       - use the `-Wl,--rpath -Wl,LIBDIR' linker flag

    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------
    chmod 755 /home2/pcuser/shengh/software/httpd/modules/mod_lisp2.so

Anyone knows why? 

Cheers,
sheng




More information about the mod-lisp-devel mailing list