Ive been searching google and have still not come up with the answer, so hoping someone here can help me.
I've successfully compiled and installed clam and squid - Tested and running.
But when I try compile HAVP Im having all the problems.
Im running Solaris 9.
my first obstacle was:
Code:
./configure
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
So I got around that with:
Code:
./configure --prefix=/usr/local/ --host=sparc-sun-solaris2.9
That runs the configure procedure fine.
make - everything looks good
make install - again looking good
then when I try run:
Code:
/usr/local/sbin/havp
ld.so.1: /usr/local/sbin/havp: fatal: libclamav.so.3: open failed: No such file or directory
Killed
I've tried running it with the
Code:
./configure --prefix=/usr/local/ --host=sparc-sun-solaris2.9 --libdir=/usr/local/
and even:
Code:
./configure --prefix=/usr/local/ --host=sparc-sun-solaris2.9 --libdir=/usr/local/lib
But I'm still getting the same error.
The libfile does exist:
Code:
ls -la /usr/local/lib|grep libclam
-rw-r--r-- 1 root other 2123060 Mar 12 17:25 libclamav.a
-rwxr-xr-x 1 root other 1180 Mar 12 17:25 libclamav.la
lrwxrwxrwx 1 root other 18 Mar 12 17:25 libclamav.so -> libclamav.so.3.0.4
lrwxrwxrwx 1 root other 18 Mar 12 17:25 libclamav.so.3 -> libclamav.so.3.0.4
-rwxr-xr-x 1 root other 1415320 Mar 12 17:25 libclamav.so.3.0.4
-rw-r--r-- 1 root other 207848 Mar 12 17:25 libclamunrar.a
-rwxr-xr-x 1 root other 859 Mar 12 17:25 libclamunrar.la
lrwxrwxrwx 1 root other 21 Mar 12 17:25 libclamunrar.so -> libclamunrar.so.3.0.4
lrwxrwxrwx 1 root other 21 Mar 12 17:25 libclamunrar.so.3 -> libclamunrar.so.3.0.4
-rwxr-xr-x 1 root other 142264 Mar 12 17:25 libclamunrar.so.3.0.4
-rw-r--r-- 1 root other 28608 Mar 12 17:25 libclamunrar_iface.a
-rwxr-xr-x 1 root other 933 Mar 12 17:25 libclamunrar_iface.la
lrwxrwxrwx 1 root other 27 Mar 12 17:25 libclamunrar_iface.so -> libclamunrar_iface.so.3.0.4
lrwxrwxrwx 1 root other 27 Mar 12 17:25 libclamunrar_iface.so.3 -> libclamunrar_iface.so.3.0.4
-rwxr-xr-x 1 root other 27192 Mar 12 17:25 libclamunrar_iface.so.3.0.4
output from my config.log
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure --prefix=/usr/local/ --host=sparc-sun-solaris2.9
## --------- ##
## Platform. ##
## --------- ##
hostname = proxycache01
uname -m = sun4u
uname -r = 5.9
uname -s = SunOS
uname -v = Generic_117171-07
/usr/bin/uname -p = sparc
/bin/uname -X = System = SunOS
Node = proxycache01
Release = 5.9
KernelID = Generic_117171-07
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 2
/bin/arch = sun4
/usr/bin/arch -k = sun4u
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/ccs/bin
PATH: /usr/openwin/bin
PATH: /usr/dt/bin
PATH: /usr/platform/SUNW,Sun-Fire-V240/sbin
PATH: /opt/SUNWvts/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1668: checking for sparc-sun-solaris2.9-g++
configure:1684: found /usr/local/bin/sparc-sun-solaris2.9-g++
configure:1695: result: sparc-sun-solaris2.9-g++
configure:1770: checking for C++ compiler version
configure:1777: sparc-sun-solaris2.9-g++ --version >&5
sparc-sun-solaris2.9-g++ (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:1780: $? = 0
configure:1787: sparc-sun-solaris2.9-g++ -v >&5
Reading specs from /system/local/bin/../lib/gcc/sparc-sun-solaris2.9/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
configure:1790: $? = 0
configure:1797: sparc-sun-solaris2.9-g++ -V >&5
sparc-sun-solaris2.9-g++: `-V' option must have argument
configure:1800: $? = 1
configure:1823: checking for C++ compiler default output file name
configure:1850: sparc-sun-solaris2.9-g++ conftest.cpp >&5
configure:1853: $? = 0
configure:1891: result: a.out
configure:1908: checking whether the C++ compiler works
configure:1918: ./a.out
ld.so.1: ./a.out: fatal: libstdc++.so.6: open failed: No such file or directory
./configure: line 1: 2114 Killed ./$ac_file
configure:1921: $? = 137
configure:1938: result: yes
configure:1945: checking whether we are cross compiling
configure:1947: result: yes
configure:1950: checking for suffix of executables
configure:1957: sparc-sun-solaris2.9-g++ -o conftest conftest.cpp >&5
configure:1960: $? = 0
configure:1984: result:
configure:1990: checking for suffix of object files
configure:2016: sparc-sun-solaris2.9-g++ -c conftest.cpp >&5
configure:2019: $? = 0
configure:2042: result: o
configure:2046: checking whether we are using the GNU C++ compiler
configure:2075: sparc-sun-solaris2.9-g++ -c conftest.cpp >&5
configure:2081: $? = 0
configure:2098: result: yes
configure:2103: checking whether sparc-sun-solaris2.9-g++ accepts -g
configure:2133: sparc-sun-solaris2.9-g++ -c -g conftest.cpp >&5
configure:2139: $? = 0
configure:2238: result: yes
configure:2298: checking for ar
configure:2314: found /usr/ccs/bin/ar
configure:2326: result: ar
configure:2343: checking for perl
configure:2359: found /usr/bin/perl
configure:2371: result: perl
configure:2388: checking for sparc-sun-solaris2.9-gcc
configure:2404: found /usr/local/bin/sparc-sun-solaris2.9-gcc
configure:2415: result: sparc-sun-solaris2.9-gcc
configure:2693: checking for C compiler version
configure:2700: sparc-sun-solaris2.9-gcc --version >&5
sparc-sun-solaris2.9-gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2703: $? = 0
configure:2710: sparc-sun-solaris2.9-gcc -v >&5
Reading specs from /system/local/bin/../lib/gcc/sparc-sun-solaris2.9/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
configure:2713: $? = 0
configure:2720: sparc-sun-solaris2.9-gcc -V >&5
sparc-sun-solaris2.9-gcc: `-V' option must have argument
configure:2723: $? = 1
configure:2726: checking whether we are using the GNU C compiler
configure:2755: sparc-sun-solaris2.9-gcc -c conftest.c >&5
configure:2761: $? = 0
configure:2778: result: yes
configure:2783: checking whether sparc-sun-solaris2.9-gcc accepts -g
configure:2813: sparc-sun-solaris2.9-gcc -c -g conftest.c >&5
configure:2819: $? = 0
configure:2918: result: yes
configure:2935: checking for sparc-sun-solaris2.9-gcc option to accept ISO C89
configure:3009: sparc-sun-solaris2.9-gcc -c -g -O2 conftest.c >&5
configure:3015: $? = 0
configure:3038: result: none needed
configure:3062: checking for initgroups
configure:3118: sparc-sun-solaris2.9-gcc -o conftest -g -O2 conftest.c >&5
configure:3124: $? = 0
configure:3142: result: yes
configure:3062: checking for setgroups
configure:3118: sparc-sun-solaris2.9-gcc -o conftest -g -O2 conftest.c >&5
configure:3124: $? = 0
configure:3142: result: yes
configure:3159: checking OS
configure:3171: result: Solaris
configure:3183: checking for mandatory locking support
configure:3198: result: OS supported
configure:3227: checking for ClamAV scanner library
configure:3271: result: found 0.92.1 in /usr/local/
configure:3278: checking for Trend Micro scanner
configure:3296: result: /etc/iscan/libvsapi.so not found, disabled
configure:3449: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by config.status, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on proxycache01
config.status:597: creating Makefile
config.status:597: creating havp/Makefile
config.status:597: creating havp/scanners/Makefile
config.status:597: creating etc/havp/havp.config
config.status:597: creating havp/default.h
config.status:811: havp/default.h is unchanged
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=sparc-sun-solaris2.9
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_initgroups=yes
ac_cv_func_setgroups=yes
ac_cv_objext=o
ac_cv_prog_AR=ar
ac_cv_prog_CC=sparc-sun-solaris2.9-gcc
ac_cv_prog_CXX=sparc-sun-solaris2.9-g++
ac_cv_prog_PERL=perl
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR='ar'
CC='sparc-sun-solaris2.9-gcc'
CFLAGS='-g -O2 -I/usr/local//include -Wall -g -O2'
CPPFLAGS=''
CXX='sparc-sun-solaris2.9-g++'
CXXFLAGS='-g -O2'
DEFS='-DHAVE_CONFIG_H'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
LDFLAGS=' -L/usr/local//lib -L/usr/local/lib -lclamav -lsocket -lresolv -lnsl'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERL='perl'
SCANNEROBJECTS='clamlibscanner.o'
SHELL='/bin/bash'
ac_ct_CC=''
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host_alias='sparc-sun-solaris2.9'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/usr/local//etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define HAVE_INITGROUPS 1
#define HAVE_SETGROUPS 1
#define USECLAMLIB 1
#define CONFIGFILE "/usr/local//etc/havp/havp.config"
#define WHITELISTFILE "/usr/local//etc/havp/whitelist"
#define BLACKLISTFILE "/usr/local//etc/havp/blacklist"
#define TEMPLATEPATH "/usr/local//etc/havp/templates/en"
#define ACCESSLOG "/var/log/havp/access.log"
#define ERRORLOG "/var/log/havp/error.log"
#define SCANTEMPFILE "/var/tmp/havp/havp-XXXXXX"
#define PIDFILE "/var/run/havp/havp.pid"
Any help will be greatly appreciated.
PS. I got everything working on my FreeBSD 7 Test box. Seems Solaris 9 is the only problem