- 论坛徽章:
- 0
|
edf@EDFA1PPD:~/install/fastdfs-apache-module/src$ cat Makefile
##
## Makefile -- Build procedure for sample fastdfs Apache module
## Autogenerated via ``apxs -n fastdfs -g''.
##
APACHE_BASE_PATH=/appedf/soft/apache
builddir=.
top_srcdir=$(APACHE_BASE_PATH)
top_builddir=$(APACHE_BASE_PATH)
include $(APACHE_BASE_PATH)/build/special.mk
# the used tools
APXS=$(APACHE_BASE_PATH)/bin/apxs
APACHECTL=$(APACHE_BASE_PATH)/bin/apachectl
# additional defines, includes and libraries
CFLAGS=-Wall
DEFS=-D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='"/home/edf/install/mod_fastdfs.conf"'
INCLUDES=-I/appedf/soft/fastdfs/include/fastdfs -I/appedf/soft/fastdfs/include/fastcommon/
LIBS=-L/appedf/soft/fastdfs/lib -lfastcommon -lfdfsclient
SH_LIBS=-lfastcommon -lfdfsclient
# the default target
all: local-shared-build
# install the shared object file into Apache
install: install-modules-yes
if [ ! -f /etc/fdfs/mod_fastdfs.conf ]; then cp mod_fastdfs.conf /etc/fdfs/; fi
# cleanup
clean:
-rm -f mod_fastdfs.o mod_fastdfs.lo mod_fastdfs.slo mod_fastdfs.la
# simple test
test: reload
lynx -mime_header http://localhost/fastdfs
# install and activate shared object by reloading Apache to
# force a reload of the shared object file
reload: install restart
# the general Apache start/restart/stop
# procedures
start:
$(APACHECTL) start
restart:
$(APACHECTL) restart
stop:
$(APACHECTL) stop
edf@EDFA1PPD:~/install/fastdfs-apache-module/src$ make
/appedf/soft/apache/build/libtool --silent --mode=compile gcc -g -O2 -pthread -Wall -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='"/home/edf/install/mod_fastdfs.conf"' -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/appedf/soft/fastdfs/include/fastdfs -I/appedf/soft/fastdfs/include/fastcommon/ -I/appedf/soft/apache/include -I. -I/home/edf/install/httpd-2.2.25/srclib/apr/include -I/home/edf/install/httpd-2.2.25/srclib/apr-util/include -I/home/edf/install/httpd-2.2.25/srclib/apr-util/xml/expat/lib -prefer-pic -c mod_fastdfs.c && touch mod_fastdfs.slo
/appedf/soft/apache/build/libtool --silent --mode=link gcc -g -O2 -pthread -Wall -lfastcommon -lfdfsclient -o mod_fastdfs.la -rpath /appedf/soft/apache/modules -module -avoid-version mod_fastdfs.lo
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lfastcommon
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lfdfsclient
collect2: ld returned 1 exit status
make: *** [mod_fastdfs.la] Error 1
edf@EDFA1PPD:~/install/fastdfs-apache-module/src$
|
|