Mailing List Archive

Error building 0.97.3 on FreeBSD with external llvm
There is a problem building 0.97.3 on FreeBSD with external
llvm, a user has reported 0.97.2 has the same problem. Follow
the error message:

gmake[3]: Leaving directory
`/work/a/ports/security/clamav/work/clamav-0.97.3/libltdl'
gmake[2]: Leaving directory
`/work/a/ports/security/clamav/work/clamav-0.97.3/libltdl'
Making all in libclamav
gmake[2]: Entering directory
`/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
gmake all-recursive
gmake[3]: Entering directory
`/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
Making all in c++
gmake[4]: Entering directory
`/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
gmake all-am
gmake[5]: Entering directory
`/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
CXX libclamavcxx_la-bytecode2llvm.lo
/bin/sh ./libtool --silent --tag=CXX --mode=compile c++
-DHAVE_CONFIG_H -I. -I./../.. -I./.. -I./../../ -I/usr/local/include
-I./../.. -I./.. -I./../../ -I/usr/local/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
-fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
-fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
-fno-strict-aliasing -c -o libclamavcxx_la-bytecode2llvm.lo `test -f
'bytecode2llvm.cpp' || echo './'`bytecode2llvm.cpp
CXX libclamavcxx_la-ClamBCRTChecks.lo
/bin/sh ./libtool --silent --tag=CXX --mode=compile c++
-DHAVE_CONFIG_H -I. -I./../.. -I./.. -I./../../ -I/usr/local/include
-I./../.. -I./.. -I./../../ -I/usr/local/include -DNDEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
-fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
-fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
-fno-strict-aliasing -c -o libclamavcxx_la-ClamBCRTChecks.lo `test -f
'ClamBCRTChecks.cpp' || echo './'`ClamBCRTChecks.cpp
ClamBCRTChecks.cpp:37:29: error: PointerTracking.h: No such file or directory
ClamBCRTChecks.cpp:264: error: ISO C++ forbids declaration of
'PointerTracking' with no type
ClamBCRTChecks.cpp:264: error: expected ';' before '*' token
ClamBCRTChecks.cpp: In member function 'virtual
bool<unnamed>::PtrVerifier::runOnFunction(llvm::Function&)':
ClamBCRTChecks.cpp:130: error: 'PT' was not declared in this scope
ClamBCRTChecks.cpp:130: error: 'PointerTracking' was not declared in this scope
ClamBCRTChecks.cpp:130: error: no matching function for call to
'<unnamed>::PtrVerifier::getAnalysis()'
ClamBCRTChecks.cpp: In member function 'virtual
void<unnamed>::PtrVerifier::getAnalysisUsage(llvm::AnalysisUsage&)
const':
ClamBCRTChecks.cpp:258: error: 'PointerTracking' was not declared in this scope
ClamBCRTChecks.cpp:258: error: no matching function for call to
'llvm::AnalysisUsage::addRequired()'
ClamBCRTChecks.cpp: In member function
'llvm::Value*<unnamed>::PtrVerifier::getPointerBounds(llvm::Value*)':
ClamBCRTChecks.cpp:400: error: 'PT' was not declared in this scope
gmake[5]: *** [libclamavcxx_la-ClamBCRTChecks.lo] Error 1
gmake[5]: Leaving directory
`/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory
`/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/work/a/ports/security/clamav/work/clamav-0.97.3'
gmake: *** [all] Error 2
*** Error code 1

Regards
--
Renato Botelho
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: Error building 0.97.3 on FreeBSD with external llvm [ In reply to ]
On 10/18/2011 02:37 AM, Renato Botelho wrote:
> There is a problem building 0.97.3 on FreeBSD with external
> llvm, a user has reported 0.97.2 has the same problem.
> Follow
> the error message:
>
> gmake[3]: Leaving directory
> `/work/a/ports/security/clamav/work/clamav-0.97.3/libltdl'
> gmake[2]: Leaving directory
> `/work/a/ports/security/clamav/work/clamav-0.97.3/libltdl'
> Making all in libclamav
> gmake[2]: Entering directory
> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
> gmake all-recursive
> gmake[3]: Entering directory
> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
> Making all in c++
> gmake[4]: Entering directory
> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
> gmake all-am
> gmake[5]: Entering directory
> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
> CXX libclamavcxx_la-bytecode2llvm.lo
> /bin/sh ./libtool --silent --tag=CXX --mode=compile c++
> -DHAVE_CONFIG_H -I. -I./../.. -I./.. -I./../../ -I/usr/local/include
> -I./../.. -I./.. -I./../../ -I/usr/local/include -DNDEBUG
> -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
> -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
> -fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
> -fno-strict-aliasing -c -o libclamavcxx_la-bytecode2llvm.lo `test -f
> 'bytecode2llvm.cpp' || echo './'`bytecode2llvm.cpp
> CXX libclamavcxx_la-ClamBCRTChecks.lo
> /bin/sh ./libtool --silent --tag=CXX --mode=compile c++
> -DHAVE_CONFIG_H -I. -I./../.. -I./.. -I./../../ -I/usr/local/include
> -I./../.. -I./.. -I./../../ -I/usr/local/include -DNDEBUG
> -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
> -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
> -fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
> -fno-strict-aliasing -c -o libclamavcxx_la-ClamBCRTChecks.lo `test -f
> 'ClamBCRTChecks.cpp' || echo './'`ClamBCRTChecks.cpp
> ClamBCRTChecks.cpp:37:29: error: PointerTracking.h: No such file or directory

The file is in the git repository, but it was missing from Makefile.am and as such
'make dist' didn't add it to the release tarballs. The file is only used when building
with external LLVM.

You can get the file from here and drop it in libclamav/c++:
http://git.clamav.net/gitweb?p=clamav-devel.git;a=blob_plain;f=libclamav/c%2B%2B/PointerTracking.h;hb=13b8484e6d9fe77f07554591f914554aa8c703e3

Best regards,
--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: Error building 0.97.3 on FreeBSD with external llvm [ In reply to ]
2011/10/18 Török Edwin <edwin@clamav.net>:
> On 10/18/2011 02:37 AM, Renato Botelho wrote:
>> There is a problem building 0.97.3 on FreeBSD with external
>> llvm, a user has reported 0.97.2 has the same problem.
>> Follow
>> the error message:
>>
>> gmake[3]: Leaving directory
>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libltdl'
>> gmake[2]: Leaving directory
>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libltdl'
>> Making all in libclamav
>> gmake[2]: Entering directory
>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
>> gmake  all-recursive
>> gmake[3]: Entering directory
>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
>> Making all in c++
>> gmake[4]: Entering directory
>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
>> gmake  all-am
>> gmake[5]: Entering directory
>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
>>   CXX    libclamavcxx_la-bytecode2llvm.lo
>> /bin/sh ./libtool --silent --tag=CXX   --mode=compile c++
>> -DHAVE_CONFIG_H -I.  -I./../.. -I./.. -I./../../  -I/usr/local/include
>>   -I./../.. -I./.. -I./../../  -I/usr/local/include  -DNDEBUG
>> -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
>> -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
>> -fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
>> -fno-strict-aliasing -c -o libclamavcxx_la-bytecode2llvm.lo `test -f
>> 'bytecode2llvm.cpp' || echo './'`bytecode2llvm.cpp
>>   CXX    libclamavcxx_la-ClamBCRTChecks.lo
>> /bin/sh ./libtool --silent --tag=CXX   --mode=compile c++
>> -DHAVE_CONFIG_H -I.  -I./../.. -I./.. -I./../../  -I/usr/local/include
>>   -I./../.. -I./.. -I./../../  -I/usr/local/include  -DNDEBUG
>> -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
>> -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
>> -fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
>> -fno-strict-aliasing -c -o libclamavcxx_la-ClamBCRTChecks.lo `test -f
>> 'ClamBCRTChecks.cpp' || echo './'`ClamBCRTChecks.cpp
>> ClamBCRTChecks.cpp:37:29: error: PointerTracking.h: No such file or directory
>
> The file is in the git repository, but it was missing from Makefile.am and as such
> 'make dist' didn't add it to the release tarballs. The file is only used when building
> with external LLVM.
>
> You can get the file from here and drop it in libclamav/c++:
> http://git.clamav.net/gitweb?p=clamav-devel.git;a=blob_plain;f=libclamav/c%2B%2B/PointerTracking.h;hb=13b8484e6d9fe77f07554591f914554aa8c703e3

Do you have plans to fix it on Makefile.am? Or i need to copy
this file from git when new version is released?

Regards
--
Renato Botelho
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: Error building 0.97.3 on FreeBSD with external llvm [ In reply to ]
On 10/18/2011 02:50 PM, Renato Botelho wrote:
> 2011/10/18 Török Edwin <edwin@clamav.net>:
>> On 10/18/2011 02:37 AM, Renato Botelho wrote:
>>> There is a problem building 0.97.3 on FreeBSD with external
>>> llvm, a user has reported 0.97.2 has the same problem.
>>> Follow
>>> the error message:
>>>
>>> gmake[3]: Leaving directory
>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libltdl'
>>> gmake[2]: Leaving directory
>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libltdl'
>>> Making all in libclamav
>>> gmake[2]: Entering directory
>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
>>> gmake all-recursive
>>> gmake[3]: Entering directory
>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
>>> Making all in c++
>>> gmake[4]: Entering directory
>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
>>> gmake all-am
>>> gmake[5]: Entering directory
>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
>>> CXX libclamavcxx_la-bytecode2llvm.lo
>>> /bin/sh ./libtool --silent --tag=CXX --mode=compile c++
>>> -DHAVE_CONFIG_H -I. -I./../.. -I./.. -I./../../ -I/usr/local/include
>>> -I./../.. -I./.. -I./../../ -I/usr/local/include -DNDEBUG
>>> -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
>>> -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
>>> -fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
>>> -fno-strict-aliasing -c -o libclamavcxx_la-bytecode2llvm.lo `test -f
>>> 'bytecode2llvm.cpp' || echo './'`bytecode2llvm.cpp
>>> CXX libclamavcxx_la-ClamBCRTChecks.lo
>>> /bin/sh ./libtool --silent --tag=CXX --mode=compile c++
>>> -DHAVE_CONFIG_H -I. -I./../.. -I./.. -I./../../ -I/usr/local/include
>>> -I./../.. -I./.. -I./../../ -I/usr/local/include -DNDEBUG
>>> -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
>>> -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
>>> -fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
>>> -fno-strict-aliasing -c -o libclamavcxx_la-ClamBCRTChecks.lo `test -f
>>> 'ClamBCRTChecks.cpp' || echo './'`ClamBCRTChecks.cpp
>>> ClamBCRTChecks.cpp:37:29: error: PointerTracking.h: No such file or directory
>>
>> The file is in the git repository, but it was missing from Makefile.am and as such
>> 'make dist' didn't add it to the release tarballs. The file is only used when building
>> with external LLVM.
>>
>> You can get the file from here and drop it in libclamav/c++:
>> http://git.clamav.net/gitweb?p=clamav-devel.git;a=blob_plain;f=libclamav/c%2B%2B/PointerTracking.h;hb=13b8484e6d9fe77f07554591f914554aa8c703e3
>
> Do you have plans to fix it on Makefile.am? Or i need to copy
> this file from git when new version is released?

Just pushed it to the 0.97 branch (it was already fixed on master in an unrelated commit), but 0.97.3 was already released
yesterday. But if you're using git then you already have the file, even without that commit.
Do you build ClamAV from Sourceforge tarballs or from git tags in FreeBSD?

Best regards,
--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: Error building 0.97.3 on FreeBSD with external llvm [ In reply to ]
2011/10/18 Török Edwin <edwin@clamav.net>:
> On 10/18/2011 02:50 PM, Renato Botelho wrote:
>> 2011/10/18 Török Edwin <edwin@clamav.net>:
>>> On 10/18/2011 02:37 AM, Renato Botelho wrote:
>>>> There is a problem building 0.97.3 on FreeBSD with external
>>>> llvm, a user has reported 0.97.2 has the same problem.
>>>> Follow
>>>> the error message:
>>>>
>>>> gmake[3]: Leaving directory
>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libltdl'
>>>> gmake[2]: Leaving directory
>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libltdl'
>>>> Making all in libclamav
>>>> gmake[2]: Entering directory
>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
>>>> gmake  all-recursive
>>>> gmake[3]: Entering directory
>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
>>>> Making all in c++
>>>> gmake[4]: Entering directory
>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
>>>> gmake  all-am
>>>> gmake[5]: Entering directory
>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
>>>>   CXX    libclamavcxx_la-bytecode2llvm.lo
>>>> /bin/sh ./libtool --silent --tag=CXX   --mode=compile c++
>>>> -DHAVE_CONFIG_H -I.  -I./../.. -I./.. -I./../../  -I/usr/local/include
>>>>   -I./../.. -I./.. -I./../../  -I/usr/local/include  -DNDEBUG
>>>> -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
>>>> -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
>>>> -fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
>>>> -fno-strict-aliasing -c -o libclamavcxx_la-bytecode2llvm.lo `test -f
>>>> 'bytecode2llvm.cpp' || echo './'`bytecode2llvm.cpp
>>>>   CXX    libclamavcxx_la-ClamBCRTChecks.lo
>>>> /bin/sh ./libtool --silent --tag=CXX   --mode=compile c++
>>>> -DHAVE_CONFIG_H -I.  -I./../.. -I./.. -I./../../  -I/usr/local/include
>>>>   -I./../.. -I./.. -I./../../  -I/usr/local/include  -DNDEBUG
>>>> -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
>>>> -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
>>>> -fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
>>>> -fno-strict-aliasing -c -o libclamavcxx_la-ClamBCRTChecks.lo `test -f
>>>> 'ClamBCRTChecks.cpp' || echo './'`ClamBCRTChecks.cpp
>>>> ClamBCRTChecks.cpp:37:29: error: PointerTracking.h: No such file or directory
>>>
>>> The file is in the git repository, but it was missing from Makefile.am and as such
>>> 'make dist' didn't add it to the release tarballs. The file is only used when building
>>> with external LLVM.
>>>
>>> You can get the file from here and drop it in libclamav/c++:
>>> http://git.clamav.net/gitweb?p=clamav-devel.git;a=blob_plain;f=libclamav/c%2B%2B/PointerTracking.h;hb=13b8484e6d9fe77f07554591f914554aa8c703e3
>>
>> Do you have plans to fix it on Makefile.am? Or i need to copy
>> this file from git when new version is released?
>
> Just pushed it to the 0.97 branch (it was already fixed on master in an unrelated commit), but 0.97.3 was already released
> yesterday. But if you're using git then you already have the file, even without that commit.
> Do you build ClamAV from Sourceforge tarballs or from git tags in FreeBSD?

From tarballs. I just added the file as a patch for 0.97.3, i was just
wondering about when a new version is released. :)

Thanks for your quick response.
--
Renato Botelho
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: Error building 0.97.3 on FreeBSD with external llvm [ In reply to ]
On 10/18/2011 03:02 PM, Renato Botelho wrote:
> 2011/10/18 Török Edwin <edwin@clamav.net>:
>> On 10/18/2011 02:50 PM, Renato Botelho wrote:
>>> 2011/10/18 Török Edwin <edwin@clamav.net>:
>>>> On 10/18/2011 02:37 AM, Renato Botelho wrote:
>>>>> There is a problem building 0.97.3 on FreeBSD with external
>>>>> llvm, a user has reported 0.97.2 has the same problem.
>>>>> Follow
>>>>> the error message:
>>>>>
>>>>> gmake[3]: Leaving directory
>>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libltdl'
>>>>> gmake[2]: Leaving directory
>>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libltdl'
>>>>> Making all in libclamav
>>>>> gmake[2]: Entering directory
>>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
>>>>> gmake all-recursive
>>>>> gmake[3]: Entering directory
>>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
>>>>> Making all in c++
>>>>> gmake[4]: Entering directory
>>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
>>>>> gmake all-am
>>>>> gmake[5]: Entering directory
>>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
>>>>> CXX libclamavcxx_la-bytecode2llvm.lo
>>>>> /bin/sh ./libtool --silent --tag=CXX --mode=compile c++
>>>>> -DHAVE_CONFIG_H -I. -I./../.. -I./.. -I./../../ -I/usr/local/include
>>>>> -I./../.. -I./.. -I./../../ -I/usr/local/include -DNDEBUG
>>>>> -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
>>>>> -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
>>>>> -fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
>>>>> -fno-strict-aliasing -c -o libclamavcxx_la-bytecode2llvm.lo `test -f
>>>>> 'bytecode2llvm.cpp' || echo './'`bytecode2llvm.cpp
>>>>> CXX libclamavcxx_la-ClamBCRTChecks.lo
>>>>> /bin/sh ./libtool --silent --tag=CXX --mode=compile c++
>>>>> -DHAVE_CONFIG_H -I. -I./../.. -I./.. -I./../../ -I/usr/local/include
>>>>> -I./../.. -I./.. -I./../../ -I/usr/local/include -DNDEBUG
>>>>> -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
>>>>> -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
>>>>> -fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
>>>>> -fno-strict-aliasing -c -o libclamavcxx_la-ClamBCRTChecks.lo `test -f
>>>>> 'ClamBCRTChecks.cpp' || echo './'`ClamBCRTChecks.cpp
>>>>> ClamBCRTChecks.cpp:37:29: error: PointerTracking.h: No such file or directory
>>>>
>>>> The file is in the git repository, but it was missing from Makefile.am and as such
>>>> 'make dist' didn't add it to the release tarballs. The file is only used when building
>>>> with external LLVM.
>>>>
>>>> You can get the file from here and drop it in libclamav/c++:
>>>> http://git.clamav.net/gitweb?p=clamav-devel.git;a=blob_plain;f=libclamav/c%2B%2B/PointerTracking.h;hb=13b8484e6d9fe77f07554591f914554aa8c703e3
>>>
>>> Do you have plans to fix it on Makefile.am? Or i need to copy
>>> this file from git when new version is released?
>>
>> Just pushed it to the 0.97 branch (it was already fixed on master in an unrelated commit), but 0.97.3 was already released
>> yesterday. But if you're using git then you already have the file, even without that commit.
>> Do you build ClamAV from Sourceforge tarballs or from git tags in FreeBSD?
>
> From tarballs. I just added the file as a patch for 0.97.3, i was just
> wondering about when a new version is released. :)
>
> Thanks for your quick response.

BTW once LLVM 3.0 is released how long does it take for it to make its way into FreeBSD?
(according to llvm.org its scheduled for release next month)
I.e. is it something we should be concerned with for 0.97.4 (if we do an 0.97.4), or is it something that can wait for 0.98?

FWIW master already has some support for the 3.0 API.

Best regards,
--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: Error building 0.97.3 on FreeBSD with external llvm [ In reply to ]
2011/10/18 Török Edwin <edwintorok@gmail.com>:
> On 10/18/2011 03:02 PM, Renato Botelho wrote:
>> 2011/10/18 Török Edwin <edwin@clamav.net>:
>>> On 10/18/2011 02:50 PM, Renato Botelho wrote:
>>>> 2011/10/18 Török Edwin <edwin@clamav.net>:
>>>>> On 10/18/2011 02:37 AM, Renato Botelho wrote:
>>>>>> There is a problem building 0.97.3 on FreeBSD with external
>>>>>> llvm, a user has reported 0.97.2 has the same problem.
>>>>>> Follow
>>>>>> the error message:
>>>>>>
>>>>>> gmake[3]: Leaving directory
>>>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libltdl'
>>>>>> gmake[2]: Leaving directory
>>>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libltdl'
>>>>>> Making all in libclamav
>>>>>> gmake[2]: Entering directory
>>>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
>>>>>> gmake  all-recursive
>>>>>> gmake[3]: Entering directory
>>>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav'
>>>>>> Making all in c++
>>>>>> gmake[4]: Entering directory
>>>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
>>>>>> gmake  all-am
>>>>>> gmake[5]: Entering directory
>>>>>> `/work/a/ports/security/clamav/work/clamav-0.97.3/libclamav/c++'
>>>>>>   CXX    libclamavcxx_la-bytecode2llvm.lo
>>>>>> /bin/sh ./libtool --silent --tag=CXX   --mode=compile c++
>>>>>> -DHAVE_CONFIG_H -I.  -I./../.. -I./.. -I./../../  -I/usr/local/include
>>>>>>   -I./../.. -I./.. -I./../../  -I/usr/local/include  -DNDEBUG
>>>>>> -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
>>>>>> -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
>>>>>> -fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
>>>>>> -fno-strict-aliasing -c -o libclamavcxx_la-bytecode2llvm.lo `test -f
>>>>>> 'bytecode2llvm.cpp' || echo './'`bytecode2llvm.cpp
>>>>>>   CXX    libclamavcxx_la-ClamBCRTChecks.lo
>>>>>> /bin/sh ./libtool --silent --tag=CXX   --mode=compile c++
>>>>>> -DHAVE_CONFIG_H -I.  -I./../.. -I./.. -I./../../  -I/usr/local/include
>>>>>>   -I./../.. -I./.. -I./../../  -I/usr/local/include  -DNDEBUG
>>>>>> -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
>>>>>> -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
>>>>>> -fexceptions -DLLVM28 -DLLVM29 -O2 -pipe -march=i486
>>>>>> -fno-strict-aliasing -c -o libclamavcxx_la-ClamBCRTChecks.lo `test -f
>>>>>> 'ClamBCRTChecks.cpp' || echo './'`ClamBCRTChecks.cpp
>>>>>> ClamBCRTChecks.cpp:37:29: error: PointerTracking.h: No such file or directory
>>>>>
>>>>> The file is in the git repository, but it was missing from Makefile.am and as such
>>>>> 'make dist' didn't add it to the release tarballs. The file is only used when building
>>>>> with external LLVM.
>>>>>
>>>>> You can get the file from here and drop it in libclamav/c++:
>>>>> http://git.clamav.net/gitweb?p=clamav-devel.git;a=blob_plain;f=libclamav/c%2B%2B/PointerTracking.h;hb=13b8484e6d9fe77f07554591f914554aa8c703e3
>>>>
>>>> Do you have plans to fix it on Makefile.am? Or i need to copy
>>>> this file from git when new version is released?
>>>
>>> Just pushed it to the 0.97 branch (it was already fixed on master in an unrelated commit), but 0.97.3 was already released
>>> yesterday. But if you're using git then you already have the file, even without that commit.
>>> Do you build ClamAV from Sourceforge tarballs or from git tags in FreeBSD?
>>
>> From tarballs. I just added the file as a patch for 0.97.3, i was just
>> wondering about when a new version is released. :)
>>
>> Thanks for your quick response.
>
> BTW once LLVM 3.0 is released how long does it take for it to make its way into FreeBSD?
> (according to llvm.org its scheduled for release next month)
> I.e. is it something we should be concerned with for 0.97.4 (if we do an 0.97.4), or is it something that can wait for 0.98?
>
> FWIW master already has some support for the 3.0 API.

I need to contact llvm maintainer to give you a precise answer, but
usually it goes to ports fast.

Remembering that the default build on FreeBSD ports is using clamav
internal llvm, user can choose to use external one.

--
Renato Botelho
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net