- 论坛徽章:
- 0
|
本帖最后由 8小时 于 2012-12-27 22:36 编辑
[root@bogon mod_bw]# /opt/lampp/bin/apxs -i -a -c mod_bw.c
/opt/lampp/build/libtool --silent --mode=compile gcc -prefer-pic -O3 -Wl,--rpath -Wl,/opt/lampp/lib -Wl,--rpath -Wl,/opt/lampp/lib/mysql -I/opt/lampp/include -L/opt/lampp/lib -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/opt/lampp/include -I/opt/lampp/include/apr-1 -I/opt/lampp/include/apr-1 -I/opt/lampp/include -c -o mod_bw.lo mod_bw.c && touch mod_bw.slo
gcc: --rpath: linker input file unused because linking not done
gcc: /opt/lampp/lib: linker input file unused because linking not done
gcc: --rpath: linker input file unused because linking not done
gcc: /opt/lampp/lib/mysql: linker input file unused because linking not done
/opt/lampp/build/libtool --silent --mode=link gcc -R/opt/lampp/lib -o mod_bw.la -rpath /opt/lampp/modules -module -avoid-version mod_bw.lo
/opt/lampp/build/instdso.sh SH_LIBTOOL='/opt/lampp/build/libtool' mod_bw.la /opt/lampp/modules
/opt/lampp/build/libtool --mode=install cp mod_bw.la /opt/lampp/modules/
cp .libs/mod_bw.so /opt/lampp/modules/mod_bw.so
cp .libs/mod_bw.lai /opt/lampp/modules/mod_bw.la
cp .libs/mod_bw.a /opt/lampp/modules/mod_bw.a
chmod 644 /opt/lampp/modules/mod_bw.a
ranlib /opt/lampp/modules/mod_bw.a
PATH="$PATH:/sbin" ldconfig -n /opt/lampp/modules
----------------------------------------------------------------------
Libraries have been installed in:
/opt/lampp/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
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so( manual pages.
----------------------------------------------------------------------
chmod 755 /opt/lampp/modules/mod_bw.so
[activating module `bw' in /opt/lampp/etc/httpd.conf]
[root@bogon mod_bw]# /opt/lampp/bin/apachectl -t
httpd: Syntax error on line 163 of /opt/lampp/etc/httpd.conf: Cannot load modules/mod_bw.so into server: /opt/lampp/modules/mod_bw.so: undefined symbol: apr_atomic_cas
有人遇到过么
APACHE版本为 2.2.21 XAMPP集成环境 |
|