Mailing List Archive

One more FreeBSD user problem report
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/145509

Any idea?

--
Renato Botelho
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: One more FreeBSD user problem report [ In reply to ]
On 04/13/2010 06:59 PM, Renato Botelho wrote:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/145509
>
> Any idea?
>

Its probably one of the broken compilers listed here:
http://llvm.org/docs/GettingStarted.html#brokengcc

Which gcc version is it, and on what architecture?

Best regards,
--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: One more FreeBSD user problem report [ In reply to ]
2010/4/13 Török Edwin <edwintorok@gmail.com>:
> On 04/13/2010 06:59 PM, Renato Botelho wrote:
>>
>> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/145509
>>
>> Any idea?
>>
>
> Its probably one of the broken compilers listed here:
> http://llvm.org/docs/GettingStarted.html#brokengcc
>
> Which gcc version is it, and on what architecture?

gcc 4.2.1
FreeBSD 7.2-RELEASE amd64

--
Renato Botelho
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: One more FreeBSD user problem report [ In reply to ]
On 04/13/2010 07:11 PM, Renato Botelho wrote:
> 2010/4/13 Török Edwin<edwintorok@gmail.com>:
>> On 04/13/2010 06:59 PM, Renato Botelho wrote:
>>>
>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/145509
>>>
>>> Any idea?
>>>
>>
>> Its probably one of the broken compilers listed here:
>> http://llvm.org/docs/GettingStarted.html#brokengcc
>>
>> Which gcc version is it, and on what architecture?
>
> gcc 4.2.1
> FreeBSD 7.2-RELEASE amd64
>

Then open a gcc bugreport. Doesn't 7.2 have a newer gcc though?

Best regards,
--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: One more FreeBSD user problem report [ In reply to ]
2010/4/13 Török Edwin <edwin@clamav.net>:
> On 04/13/2010 07:11 PM, Renato Botelho wrote:
>>
>> 2010/4/13 Török Edwin<edwintorok@gmail.com>:
>>>
>>> On 04/13/2010 06:59 PM, Renato Botelho wrote:
>>>>
>>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/145509
>>>>
>>>> Any idea?
>>>>
>>>
>>> Its probably one of the broken compilers listed here:
>>> http://llvm.org/docs/GettingStarted.html#brokengcc
>>>
>>> Which gcc version is it, and on what architecture?
>>
>> gcc 4.2.1
>> FreeBSD 7.2-RELEASE amd64
>>
>
> Then open a gcc bugreport. Doesn't 7.2 have a newer gcc though?

It can be installed by ports, this is the version of gcc
contained in base system.

The strange thing is just this user reported a problem,
i asked for more people test now, depending of the
results, i'll open the bug on gcc.

Thanks
--
Renato Botelho
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: One more FreeBSD user problem report [ In reply to ]
On 04/13/2010 07:26 PM, Renato Botelho wrote:
> 2010/4/13 Török Edwin<edwin@clamav.net>:
>> On 04/13/2010 07:11 PM, Renato Botelho wrote:
>>>
>>> 2010/4/13 Török Edwin<edwintorok@gmail.com>:
>>>>
>>>> On 04/13/2010 06:59 PM, Renato Botelho wrote:
>>>>>
>>>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/145509
>>>>>
>>>>> Any idea?
>>>>>
>>>>
>>>> Its probably one of the broken compilers listed here:
>>>> http://llvm.org/docs/GettingStarted.html#brokengcc
>>>>
>>>> Which gcc version is it, and on what architecture?
>>>
>>> gcc 4.2.1
>>> FreeBSD 7.2-RELEASE amd64
>>>
>>
>> Then open a gcc bugreport. Doesn't 7.2 have a newer gcc though?
>
> It can be installed by ports, this is the version of gcc
> contained in base system.
>
> The strange thing is just this user reported a problem,
> i asked for more people test now, depending of the
> results, i'll open the bug on gcc.

Or he might have run out of memory, and gcc didn't handle that gracefully.

Best regards,
--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: One more FreeBSD user problem report [ In reply to ]
Hello !

I'm trying to compile clamav 0.96 on
FreeBSD 7.2 release
gcc 4.2.1

and I have same kind of issue as Renato :

In function `(anonymous namespace)::LLVMCodegen::convertMDNode(unsigned
int)':
: undefined reference to `operator new[](unsigned int)'

In function `(anonymous namespace)::LLVMCodegen::convertMDNode(unsigned
int)':
: undefined reference to `operator delete[](void*)'
...
..
..
and a lot of other errors like that.


Do you have any idea ?

Thanks in advance for your help.

Regards,
Nicolas.

2010/4/13 Török Edwin <edwintorok@gmail.com>

> On 04/13/2010 07:26 PM, Renato Botelho wrote:
>
>> 2010/4/13 Török Edwin<edwin@clamav.net>:
>>
>> On 04/13/2010 07:11 PM, Renato Botelho wrote:
>>>
>>>>
>>>> 2010/4/13 Török Edwin<edwintorok@gmail.com>:
>>>>
>>>>>
>>>>> On 04/13/2010 06:59 PM, Renato Botelho wrote:
>>>>>
>>>>>>
>>>>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/145509
>>>>>>
>>>>>> Any idea?
>>>>>>
>>>>>>
>>>>> Its probably one of the broken compilers listed here:
>>>>> http://llvm.org/docs/GettingStarted.html#brokengcc
>>>>>
>>>>> Which gcc version is it, and on what architecture?
>>>>>
>>>>
>>>> gcc 4.2.1
>>>> FreeBSD 7.2-RELEASE amd64
>>>>
>>>>
>>> Then open a gcc bugreport. Doesn't 7.2 have a newer gcc though?
>>>
>>
>> It can be installed by ports, this is the version of gcc
>> contained in base system.
>>
>> The strange thing is just this user reported a problem,
>> i asked for more people test now, depending of the
>> results, i'll open the bug on gcc.
>>
>
> Or he might have run out of memory, and gcc didn't handle that gracefully.
>
> Best regards,
> --Edwin
>
> _______________________________________________
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: One more FreeBSD user problem report [ In reply to ]
On 04/15/2010 02:58 PM, nicolas dumont wrote:
> Hello !
>
> I'm trying to compile clamav 0.96 on
> FreeBSD 7.2 release
> gcc 4.2.1
>
> and I have same kind of issue as Renato :

This looks like a different issue, does GCC complain about an internal
error for you?

>
> In function `(anonymous namespace)::LLVMCodegen::convertMDNode(unsigned
> int)':
> : undefined reference to `operator new[](unsigned int)'
>
> In function `(anonymous namespace)::LLVMCodegen::convertMDNode(unsigned
> int)':
> : undefined reference to `operator delete[](void*)'

What is the output of gcc -v, and g++ -v?

Best regards,
--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: One more FreeBSD user problem report [ In reply to ]
2010/4/15 Török Edwin <edwin@clamav.net>

> On 04/15/2010 02:58 PM, nicolas dumont wrote:
>
>> Hello !
>>
>> I'm trying to compile clamav 0.96 on
>> FreeBSD 7.2 release
>> gcc 4.2.1
>>
>> and I have same kind of issue as Renato :
>>
>
> This looks like a different issue, does GCC complain about an internal
> error for you?


It's not an internal error and the libclamav is correctly compiled.

I've the errors when I try to link the libclamav with my own dameon ( same
way as for 0.95.3 )

I have a lot of errors like that :
clamav/work/clamav-0.96/libclamav/.libs/libclamav.a(LegalizeTypes.o)(.text+0x86a2):
In function `llvm::SelectionDAG::LegalizeTypes()':
: undefined reference to `operator delete(void*)'

and an other one :

clamav/work/clamav-0.96/libclamav/.libs/libclamav.a(LegalizeTypes.o)(.gnu.linkonce.t._ZN4llvm8DenseMapINS_7SDValueESt4pairIS1_S1_ENS_12DenseMapInfoIS1_EENS4_IS3_EEE4growEj+0x42):
In function `llvm::DenseMap<llvm::SDValue, std::pair<llvm::SDValue,
llvm::SDValue>, llvm::DenseMapInfo<llvm::SDValue>,
llvm::DenseMapInfo<std::pair<llvm::SDValue, llvm::SDValue> >
: undefined reference to `operator new(unsigned int)'



>
>
>> In function `(anonymous namespace)::LLVMCodegen::convertMDNode(unsigned
>> int)':
>> : undefined reference to `operator new[](unsigned int)'
>>
>> In function `(anonymous namespace)::LLVMCodegen::convertMDNode(unsigned
>> int)':
>> : undefined reference to `operator delete[](void*)'
>>
>
> What is the output of gcc -v, and g++ -v?


gcc --v and g++ -v are the same :
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]


>
> Best regards,
> --Edwin
> _______________________________________________
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: One more FreeBSD user problem report [ In reply to ]
On 04/15/2010 04:00 PM, nicolas dumont wrote:
> 2010/4/15 Török Edwin<edwin@clamav.net>
>
>> On 04/15/2010 02:58 PM, nicolas dumont wrote:
>>
>>> Hello !
>>>
>>> I'm trying to compile clamav 0.96 on
>>> FreeBSD 7.2 release
>>> gcc 4.2.1
>>>
>>> and I have same kind of issue as Renato :
>>>
>>
>> This looks like a different issue, does GCC complain about an internal
>> error for you?
>
>
> It's not an internal error and the libclamav is correctly compiled.
>
> I've the errors when I try to link the libclamav with my own dameon ( same
> way as for 0.95.3 )


Are you using libtool to link?
If not are you trying to link with libclamav.a, or libclamav.so?
If you're trying to link with libclamav.a you should add -lstdc++ to
your linker command-line, or use libtool to link against libclamav.la
(which will automatically add that).
Its recommended however that you link your daemon against libclamav.so,
then you don't need to rebuild it everytime libclamav is upgraded.

Best regards,
--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: One more FreeBSD user problem report [ In reply to ]
Hello Török

I don't link the lib libtool
and I'm linking with libclamav.a

I tried with -lstdc++ and it works !!!

Thank you very much !!

Best regards,
Nicolas Dumont.

2010/4/15 Török Edwin <edwintorok@gmail.com>

> On 04/15/2010 04:00 PM, nicolas dumont wrote:
>
>> 2010/4/15 Török Edwin<edwin@clamav.net>
>>
>> On 04/15/2010 02:58 PM, nicolas dumont wrote:
>>>
>>> Hello !
>>>>
>>>> I'm trying to compile clamav 0.96 on
>>>> FreeBSD 7.2 release
>>>> gcc 4.2.1
>>>>
>>>> and I have same kind of issue as Renato :
>>>>
>>>>
>>> This looks like a different issue, does GCC complain about an internal
>>> error for you?
>>>
>>
>>
>> It's not an internal error and the libclamav is correctly compiled.
>>
>> I've the errors when I try to link the libclamav with my own dameon ( same
>> way as for 0.95.3 )
>>
>
>
> Are you using libtool to link?
> If not are you trying to link with libclamav.a, or libclamav.so?
> If you're trying to link with libclamav.a you should add -lstdc++ to your
> linker command-line, or use libtool to link against libclamav.la (which
> will automatically add that).
> Its recommended however that you link your daemon against libclamav.so,
> then you don't need to rebuild it everytime libclamav is upgraded.
>
>
> Best regards,
> --Edwin
> _______________________________________________
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net