Hi, all I hope I posted my problem on the right mailing list.
I installed pre-compiled ClamAV and configured it to run. On the Solaris 10 SPARC server, I have Apache2.2.17 installed and running. Now I am trying to compile mod_clamav v0.23 for my Apache server. The configure phase passed no problem. The problem in at "make". # cd mod_clamav-0.23 # ./configure --with-apache=/opt/apache2.2.17 --with-apxs=/opt/apache2.2.17/bin/apxs --with-apr1config=/opt/apache2.2.17/bin/apr-1-config checking for a BSD-compatible install... ./install-sh -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking for APXS tool... using /opt/apache2.2.17/bin/apxs checking for apr-1-config tool... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking build system type... sparc-sun-solaris2.10 checking host system type... sparc-sun-solaris2.10 checking for a sed that does not truncate output... /usr/local/bin/sed checking for grep that handles long lines and -e... /usr/xpg4/bin/grep checking for egrep... /usr/xpg4/bin/grep -E checking for ld used by gcc... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking for /usr/ccs/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/ccs/bin/nm -p checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for g77... g77 checking whether we are using the GNU Fortran 77 compiler... yes checking whether g77 accepts -g... yes checking the maximum length of command line arguments... 786240 checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/ccs/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... yes checking dynamic linker characteristics... solaris2.10 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking whether the g++ linker (/usr/ccs/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/ccs/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... solaris2.10 ld.so checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for g77 option to produce PIC... -fPIC checking if g77 PIC flag -fPIC works... yes checking if g77 static flag -static works... no checking if g77 supports -c -o file.o... yes checking whether the g77 linker (/usr/ccs/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... solaris2.10 ld.so checking how to hardcode library paths into programs... immediate checking for cl_scanfile in -lclamav... yes checking for mkstemp... yes checking alloca.h usability... yes checking alloca.h presence... yes checking for alloca.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for string.h... (cached) yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking /usr/local/clamav/include/clamav.h usability... yes checking /usr/local/clamav/include/clamav.h presence... yes checking for /usr/local/clamav/include/clamav.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes configure: creating ./config.status config.status: creating Makefile config.status: creating mod_clamav_version.h config.status: creating mod_clamav.html config.status: creating config.h config.status: executing depfiles commands # # # make make all-am /bin/bash ./libtool --tag=CC --mode=compile `/opt/apache2.2.17/bin/apxs -q CC` -DHAVE_CONFIG_H -I. `apr-1-config --cppflags` `apr-1-config --includes` -I`/opt/apache2.2.17/bin/apxs -q INCLUDEDIR` `apr-1-config --cflags` `/opt/apache2.2.17/bin/apxs -q CFLAGS_SHLIB` -g -O2 -MT mod_clamav_la-config.lo -MD -MP -MF .deps/mod_clamav_la-config.Tpo -c -o mod_clamav_la-config.lo `test -f 'config.c' || echo './'`config.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/opt/apache2.2.17/include -I/opt/apache2.2.17/include -g -O2 -g -O2 -MT mod_clamav_la-config.lo -MD -MP -MF .deps/mod_clamav_la-config.Tpo -c config.c -fPIC -DPIC -o .libs/mod_clamav_la-config.o mv -f .deps/mod_clamav_la-config.Tpo .deps/mod_clamav_la-config.Plo /bin/bash ./libtool --tag=CC --mode=compile `/opt/apache2.2.17/bin/apxs -q CC` -DHAVE_CONFIG_H -I. `apr-1-config --cppflags` `apr-1-config --includes` -I`/opt/apache2.2.17/bin/apxs -q INCLUDEDIR` `apr-1-config --cflags` `/opt/apache2.2.17/bin/apxs -q CFLAGS_SHLIB` -g -O2 -MT mod_clamav_la-locking.lo -MD -MP -MF .deps/mod_clamav_la-locking.Tpo -c -o mod_clamav_la-locking.lo `test -f 'locking.c' || echo './'`locking.c gcc -DHAVE_CONFIG_H -I. -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/opt/apache2.2.17/include -I/opt/apache2.2.17/include -g -O2 -g -O2 -MT mod_clamav_la-locking.lo -MD -MP -MF .deps/mod_clamav_la-locking.Tpo -c locking.c -fPIC -DPIC -o .libs/mod_clamav_la-locking.o mv -f .deps/mod_clamav_la-locking.Tpo .deps/mod_clamav_la-locking.Plo /bin/bash ./libtool --tag=CC --mode=compile `/opt/apache2.2.17/bin/apxs -q CC` -DHAVE_CONFIG_H -I. `apr-1-config --cppflags` `apr-1-config --includes` -I`/opt/apache2.2.17/bin/apxs -q INCLUDEDIR` `apr-1-config --cflags` `/opt/apache2.2.17/bin/apxs -q CFLAGS_SHLIB` -g -O2 -MT mod_clamav_la-handler.lo -MD -MP -MF .deps/mod_clamav_la-handler.Tpo -c -o mod_clamav_la-handler.lo `test -f 'handler.c' || echo './'`handler.c gcc -DHAVE_CONFIG_H -I. -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/opt/apache2.2.17/include -I/opt/apache2.2.17/include -g -O2 -g -O2 -MT mod_clamav_la-handler.lo -MD -MP -MF .deps/mod_clamav_la-handler.Tpo -c handler.c -fPIC -DPIC -o .libs/mod_clamav_la-handler.o mv -f .deps/mod_clamav_la-handler.Tpo .deps/mod_clamav_la-handler.Plo /bin/bash ./libtool --tag=CC --mode=compile `/opt/apache2.2.17/bin/apxs -q CC` -DHAVE_CONFIG_H -I. `apr-1-config --cppflags` `apr-1-config --includes` -I`/opt/apache2.2.17/bin/apxs -q INCLUDEDIR` `apr-1-config --cflags` `/opt/apache2.2.17/bin/apxs -q CFLAGS_SHLIB` -g -O2 -MT mod_clamav_la-shmem.lo -MD -MP -MF .deps/mod_clamav_la-shmem.Tpo -c -o mod_clamav_la-shmem.lo `test -f 'shmem.c' || echo './'`shmem.c gcc -DHAVE_CONFIG_H -I. -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/opt/apache2.2.17/include -I/opt/apache2.2.17/include -g -O2 -g -O2 -MT mod_clamav_la-shmem.lo -MD -MP -MF .deps/mod_clamav_la-shmem.Tpo -c shmem.c -fPIC -DPIC -o .libs/mod_clamav_la-shmem.o mv -f .deps/mod_clamav_la-shmem.Tpo .deps/mod_clamav_la-shmem.Plo /bin/bash ./libtool --tag=CC --mode=compile `/opt/apache2.2.17/bin/apxs -q CC` -DHAVE_CONFIG_H -I. `apr-1-config --cppflags` `apr-1-config --includes` -I`/opt/apache2.2.17/bin/apxs -q INCLUDEDIR` `apr-1-config --cflags` `/opt/apache2.2.17/bin/apxs -q CFLAGS_SHLIB` -g -O2 -MT mod_clamav_la-init.lo -MD -MP -MF .deps/mod_clamav_la-init.Tpo -c -o mod_clamav_la-init.lo `test -f 'init.c' || echo './'`init.c gcc -DHAVE_CONFIG_H -I. -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/opt/apache2.2.17/include -I/opt/apache2.2.17/include -g -O2 -g -O2 -MT mod_clamav_la-init.lo -MD -MP -MF .deps/mod_clamav_la-init.Tpo -c init.c -fPIC -DPIC -o .libs/mod_clamav_la-init.o init.c: In function `mod_clamav_init_local': init.c:22: error: `CL_INIT_DEFAULT' undeclared (first use in this function) init.c:22: error: (Each undeclared identifier is reported only once init.c:22: error: for each function it appears in.) init.c:33: warning: assignment makes pointer from integer without a cast init.c:38: error: `CL_ENGINE_MAX_FILES' undeclared (first use in this function) init.c:40: error: `CL_ENGINE_MAX_FILESIZE' undeclared (first use in this function) init.c:42: error: `CL_ENGINE_MAX_RECURSION' undeclared (first use in this function) init.c:47: warning: assignment makes pointer from integer without a cast init.c:52: error: `CL_DB_STDOPT' undeclared (first use in this function) *** Error code 1 make: Fatal error: Command failed for target `mod_clamav_la-init.lo' Current working directory /export/home/rc6/mod_clamav-0.23 *** Error code 1 make: Fatal error: Command failed for target `all' # Can anyone help me? Thanks. Ryan Jiang This message (including any attachments) is intended solely for the specific individual(s) or entity(ies) named above, and may contain legally privileged and confidential information. If you are not the intended recipient, please notify the sender immediately by replying to this message and then delete it. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, by other than the intended recipient, is strictly prohibited. _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml
