On Wed, Nov 10, 2004 at 04:45:07PM -0600, Alex S Moore wrote: > On Wed, 2004-11-10 at 14:24 -0800, Sakshale eQuorian wrote: > > Hi; > > > > Since I wanted to upgrade to 8.0, I decided to install > > GMP on my solaris box to get rid of the "SECURITY WARNING" > > that came with version 7.0. > > > > Shouldn't /usr/local/include be included in the path? > > Especially given that I built clamav to run in /usr/local. > > I would not put anything in /usr. There are options that you should use > when building programs, such as CFLAGS, LDFLAGS, LD_OPTIONS, to point to > other locations, for things like -I, -L, -R respectively.
Specifically, the below 'configure' line works for me on Solaris. There is no '-lgmp' needed because the configure script picks that up. The installation prefix and user/group are, obviously, specific to our site. Also, on Solaris 9 (and 8, I think) make sure you build clam and gmp to the same ABI. We compiled gmp as 32-bit and clamav with the defaults. ABI=32 ./configure --prefix=/usr/local/graft/gmp-<version> make make install graft -v -i gmp-<version> LDFLAGS='-L/usr/local/lib -R/usr/local/lib -lgcc_s' \ ./configure --prefix=/usr/local/graft/clamav-<version> \ --with-user=amavisd --with-group=amavisd make make install the man page for ld(1) has all the info you might need. Alternatively, you could look at crle(1) to define additional system library locations. (P.S. graft is great for managing clamav installations: http://www.gormand.com.au/peters/tools/graft/graft.html) cheers rob _______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users