[clamav-users] Version 0.98.3 fails on Solaris

Lawrence K. Chen, P.Eng. lkchen at ksu.edu
Mon May 12 20:33:26 UTC 2014


So, what's the definitive answer.....

I gave up late Friday night on getting it working on Solaris for the weekend
maintenance window.

Though the last thing I tried was to force "-D__EXTENSIONS__" in...and caught
a glimpse of it finally finishing its compile as I was securing my workstation.

I also had to do some massaging, because the openssl we build is installed in
a non-standard location.

Before I had resorted to setting "-D__EXTENSIONS__" from reading the headers
to find out why definitions weren't being seen....

I had done some fiddling with some of the source files, but reverting those
changes and trying again with just "-D__EXTENSIONS__" has compiled all the way
through.

Now I suppose its to figure out if I need to test it before deploying into
production.

Had mentioned in the past, that with our Solaris package CM system, I would
often just update clamav project's source and go straight to making a release
package and immediately distribute it.

This is the first time that I'm not sure its release package worthy. Not sure
I have somewhere to install a scratch package anymore....

FWIW,

our build server is Solaris/x64 10 Generic_138889-07 (update 6) with gcc
4.1.1, ours is using gnu-as (/usr/sfw/bin/gas) and the system linker
(/usr/ccs/bin/ld).



> On 05/10/14 11:13, James Lee wrote:
>
>> On 10/05/2014 11:22, James Lee wrote:
>>
> 
> Indeed <rant>it's the usual brain dead pile-O-rubbish that is configure and friends</rant>.
> 
> *** simple workaround:
> CPPFLAGS="... -DHAVE_ATTRIB_PACKED"
> 
> My complete CPPFLAGS are:
> CPPFLAGS="-D__EXTENSIONS__ -DHAVE_ATTRIB_PACKED"


On 05/12/14 06:28, Martin Preen wrote:
> James Lee wrote:
>> On 10/05/2014 17:34, Shawn Webb wrote:
>>
>> Hello,
>>> The attached two patches will make building (with gcc)
>> I'm not but..
>>>   and running on Solaris work.
>>
>> when using gcc configure sets HAVE_ATTRIB_PACKED=1 and the problem doesn't
>> exist, ie, no patch is needed for gcc.
>>
>> In fact no patches need for cc if the value of HAVE_ATTRIB_PACKED is forced
>> post
>> configure. Any patch/fix should be for configure.
> 
> Thats interesting. Without Shawns patches, but with HAVE_ATTRIB_PACKED
> and using Sun-CC it works (freshclam & clamscan tested so far).
> 
> But including the posted patches, the errors are back again.
> 
> So it looks like a problem with the build system and the patch
> is (at least partly) compiler specific.
> 
> Regards,
> Martin
> 
> ----------------------------------------------------------------------
> Martin Preen, Universität Freiburg, Institut für Informatik
> Georges-Koehler-Allee 52, Raum EG-006, 79110 Freiburg, Germany
> 
> phone: ++49 761 203-8250    preen at informatik.uni-freiburg.de
> fax: ++49 761 203-8242      swt.informatik.uni-freiburg.de/staff/preen
> 
> 
> 
> _______________________________________________
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
> http://www.clamav.net/support/ml
> 

-- 
Who: Lawrence K. Chen, P.Eng. - W0LKC - Sr. Unix Systems Administrator
For: Enterprise Server Technologies (EST) -- & SafeZone Ally



More information about the clamav-users mailing list