Re: [Clamav-devel] Clamav snapshot 20081114 build error at FreeBSD

2008-11-17 Thread Török Edwin
On 2008-11-17 20:46, Renato Botelho wrote:
> On Mon, Nov 17, 2008 at 4:39 PM, Török Edwin <[EMAIL PROTECTED]> wrote:
>   
>> On 2008-11-17 20:02, Renato Botelho wrote:
>> 
>>> It built removing libtool dependency, thanks!!!
>>>
>>>   
>> Ok.
>>
>> 
> Anyway, the current ports version (20081105) build without
> any problems, something happened between 05 and 14 Nov
> that make it stop building.
>
>
>   
 Yep, libltdl was added.

 Also I think you may want to get rid of this warning, can I see the
 configure flags?

 ** WARNING:
 ** You are either cross compiling to a different host or
 ** you have manually disabled important configure checks.
 ** Please be aware that this build may be badly broken.
 ** DO NOT REPORT BUGS BASED ON THIS BUILD !!!

 
>>> I didn't check this part yet, but arguments has changed to:
>>>
>>> [EMAIL PROTECTED]:~/prs/clamav-devel> make -V CONFIGURE_ARGS
>>> --libdir=/usr/local/lib  --with-dbdir=/var/db/clamav  --with-zlib=/usr
>>>  --disable-zlib-vcheck  --disable-clamuko  --disable-clamav
>>> --enable-bigstack  --enable-readdir_r  --disable-dependency-tracking
>>> --enable-gethostbyname_r  --enable-experimental --with-iconv
>>> --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
>>>
>>>   
>> Please remove --disable-zlib-vcheck, FreeBSD should have a recent enough
>> zlib by now (>=1.2.2).
>> That should remove that configure warning as well.
>> 
>
> After trying one by one, i found removing this it stops warning :)
>
>   
>> You may want to add 'check' to the dependencies,
>> and have 'make check' being run during a build to see if everything is ok.
>> 
>
> When? After configure?
>
> Thanks for all the help
>   

Yes, after configure, and after you've run make:
./configure
make
make check
make install

That is the usual order, you can pass --enable-check to configure to
make sure it picks up 'libcheck' (by default it disables parts that
depend on it if it can't find it).
Maybe something not for the users, but for you, when you build the package.

Best regards,
--Edwin
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


Re: [Clamav-devel] Clamav snapshot 20081114 build error at FreeBSD

2008-11-17 Thread Renato Botelho
On Mon, Nov 17, 2008 at 4:39 PM, Török Edwin <[EMAIL PROTECTED]> wrote:
> On 2008-11-17 20:02, Renato Botelho wrote:
>> It built removing libtool dependency, thanks!!!
>>
>
> Ok.
>
>>
 Anyway, the current ports version (20081105) build without
 any problems, something happened between 05 and 14 Nov
 that make it stop building.


>>> Yep, libltdl was added.
>>>
>>> Also I think you may want to get rid of this warning, can I see the
>>> configure flags?
>>>
>>> ** WARNING:
>>> ** You are either cross compiling to a different host or
>>> ** you have manually disabled important configure checks.
>>> ** Please be aware that this build may be badly broken.
>>> ** DO NOT REPORT BUGS BASED ON THIS BUILD !!!
>>>
>>
>> I didn't check this part yet, but arguments has changed to:
>>
>> [EMAIL PROTECTED]:~/prs/clamav-devel> make -V CONFIGURE_ARGS
>> --libdir=/usr/local/lib  --with-dbdir=/var/db/clamav  --with-zlib=/usr
>>  --disable-zlib-vcheck  --disable-clamuko  --disable-clamav
>> --enable-bigstack  --enable-readdir_r  --disable-dependency-tracking
>> --enable-gethostbyname_r  --enable-experimental --with-iconv
>> --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
>>
>
> Please remove --disable-zlib-vcheck, FreeBSD should have a recent enough
> zlib by now (>=1.2.2).
> That should remove that configure warning as well.

After trying one by one, i found removing this it stops warning :)

> You may want to add 'check' to the dependencies,
> and have 'make check' being run during a build to see if everything is ok.

When? After configure?

Thanks for all the help
-- 
Renato Botelho
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


Re: [Clamav-devel] Clamav snapshot 20081114 build error at FreeBSD

2008-11-17 Thread Török Edwin
On 2008-11-17 20:02, Renato Botelho wrote:
> It built removing libtool dependency, thanks!!!
>   

Ok.

>   
>>> Anyway, the current ports version (20081105) build without
>>> any problems, something happened between 05 and 14 Nov
>>> that make it stop building.
>>>
>>>   
>> Yep, libltdl was added.
>>
>> Also I think you may want to get rid of this warning, can I see the
>> configure flags?
>>
>> ** WARNING:
>> ** You are either cross compiling to a different host or
>> ** you have manually disabled important configure checks.
>> ** Please be aware that this build may be badly broken.
>> ** DO NOT REPORT BUGS BASED ON THIS BUILD !!!
>> 
>
> I didn't check this part yet, but arguments has changed to:
>
> [EMAIL PROTECTED]:~/prs/clamav-devel> make -V CONFIGURE_ARGS
> --libdir=/usr/local/lib  --with-dbdir=/var/db/clamav  --with-zlib=/usr
>  --disable-zlib-vcheck  --disable-clamuko  --disable-clamav
> --enable-bigstack  --enable-readdir_r  --disable-dependency-tracking
> --enable-gethostbyname_r  --enable-experimental --with-iconv
> --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
>   

Please remove --disable-zlib-vcheck, FreeBSD should have a recent enough
zlib by now (>=1.2.2).
That should remove that configure warning as well.

You may want to add 'check' to the dependencies,
and have 'make check' being run during a build to see if everything is ok.

Best regards,
--Edwin
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


Re: [Clamav-devel] Clamav snapshot 20081114 build error at FreeBSD

2008-11-17 Thread Renato Botelho
On Mon, Nov 17, 2008 at 3:41 PM, Török Edwin <[EMAIL PROTECTED]> wrote:
> On 2008-11-17 19:35, Renato Botelho wrote:
>> On Mon, Nov 17, 2008 at 3:16 PM, Török Edwin <[EMAIL PROTECTED]> wrote:
>>
>>> On 2008-11-17 17:29, Renato Botelho wrote:
>>>
 libtool: link: 
 `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libltdl/dlopen.la'
 is not a valid libtool archive
 gmake[4]: *** [libclamav.la] Error 1
 gmake[4]: Leaving directory
 `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
 gmake[3]: *** [all-recursive] Error 1
 gmake[3]: Leaving directory
 `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
 gmake[2]: *** [all] Error 2
 gmake[2]: Leaving directory
 `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory
 `/home/garga/prs/clamav-devel/work/clamav-devel-20081114'
 gmake: *** [all] Error 2

 The content of 
 /home/garga/prs/clamav-devel/work/clamav-devel-20081114/libltdl/dlopen.la
 is here:

 http://pastebin.com/f13ec7157


>>> This says that it was generated by libtool 1.5.26, which is wrong.
>>> ClamAV currently uses libtool 2.2.6a. Perhaps you accidentally
>>> downgraded libtool by running autoreconf -fvi, or libtoolize --copy --force?
>>>
>>
>> Here you can see a complete buildlog:
>>
>> http://pastebin.com/f13816143
>>
>> I never ran libtoolize nor autoreconf.
>>
>> I don't know if it matters but the only version of libtool we have
>> available on FreeBSD ports is 1.5.26.
>>
>
> The problem is that it uses /usr/local/bin/libtool, instead of the
> libtool distributed with ClamAV (2.2.6a).
> Is the ports system changing that?
> I think you can solve the build problem my making sure that clamav uses
> the libtool we distribute, and not the system's libtool.
>
> If clamav is built directly from svn, by a simple configure && make, it
> builds without problems:
> http://farm.0xacab.net/build/show/593

It built removing libtool dependency, thanks!!!

>> Anyway, the current ports version (20081105) build without
>> any problems, something happened between 05 and 14 Nov
>> that make it stop building.
>>
>
> Yep, libltdl was added.
>
> Also I think you may want to get rid of this warning, can I see the
> configure flags?
>
> ** WARNING:
> ** You are either cross compiling to a different host or
> ** you have manually disabled important configure checks.
> ** Please be aware that this build may be badly broken.
> ** DO NOT REPORT BUGS BASED ON THIS BUILD !!!

I didn't check this part yet, but arguments has changed to:

[EMAIL PROTECTED]:~/prs/clamav-devel> make -V CONFIGURE_ARGS
--libdir=/usr/local/lib  --with-dbdir=/var/db/clamav  --with-zlib=/usr
 --disable-zlib-vcheck  --disable-clamuko  --disable-clamav
--enable-bigstack  --enable-readdir_r  --disable-dependency-tracking
--enable-gethostbyname_r  --enable-experimental --with-iconv
--prefix=/usr/local ${_LATE_CONFIGURE_ARGS}

[EMAIL PROTECTED]:~/prs/clamav-devel> make -V CONFIGURE_ENV
CPPFLAGS="-I/usr/local/include  "  LDFLAGS=" -L/usr/local/lib  -lthr"
SHELL=/bin/sh CONFIG_SHELL=/bin/sh MAKE=gmake
lt_cv_sys_max_cmd_len=262144

[EMAIL PROTECTED]:~/prs/clamav-devel> make -V MAKE_ENV
SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local
X11BASE=/usr/local  MOTIFLIB="-L/usr/local/lib -lXm -lXp"
LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O2 -pipe -fno-strict-aliasing"
CXX="c++" CXXFLAGS="-O2 -pipe -fno-strict-aliasing"
MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s  -m 555"
BSD_INSTALL_SCRIPT="install   -m 555"  BSD_INSTALL_DATA="install   -m
444"  BSD_INSTALL_MAN="install   -m 444"


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


Re: [Clamav-devel] Clamav snapshot 20081114 build error at FreeBSD

2008-11-17 Thread Renato Botelho
On Mon, Nov 17, 2008 at 3:41 PM, Török Edwin <[EMAIL PROTECTED]> wrote:
> On 2008-11-17 19:35, Renato Botelho wrote:
>> On Mon, Nov 17, 2008 at 3:16 PM, Török Edwin <[EMAIL PROTECTED]> wrote:
>>
>>> On 2008-11-17 17:29, Renato Botelho wrote:
>>>
 libtool: link: 
 `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libltdl/dlopen.la'
 is not a valid libtool archive
 gmake[4]: *** [libclamav.la] Error 1
 gmake[4]: Leaving directory
 `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
 gmake[3]: *** [all-recursive] Error 1
 gmake[3]: Leaving directory
 `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
 gmake[2]: *** [all] Error 2
 gmake[2]: Leaving directory
 `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory
 `/home/garga/prs/clamav-devel/work/clamav-devel-20081114'
 gmake: *** [all] Error 2

 The content of 
 /home/garga/prs/clamav-devel/work/clamav-devel-20081114/libltdl/dlopen.la
 is here:

 http://pastebin.com/f13ec7157


>>> This says that it was generated by libtool 1.5.26, which is wrong.
>>> ClamAV currently uses libtool 2.2.6a. Perhaps you accidentally
>>> downgraded libtool by running autoreconf -fvi, or libtoolize --copy --force?
>>>
>>
>> Here you can see a complete buildlog:
>>
>> http://pastebin.com/f13816143
>>
>> I never ran libtoolize nor autoreconf.
>>
>> I don't know if it matters but the only version of libtool we have
>> available on FreeBSD ports is 1.5.26.
>>
>
> The problem is that it uses /usr/local/bin/libtool, instead of the
> libtool distributed with ClamAV (2.2.6a).
> Is the ports system changing that?
> I think you can solve the build problem my making sure that clamav uses
> the libtool we distribute, and not the system's libtool.
>
> If clamav is built directly from svn, by a simple configure && make, it
> builds without problems:

I'll try to make this

> http://farm.0xacab.net/build/show/593
>
>> Anyway, the current ports version (20081105) build without
>> any problems, something happened between 05 and 14 Nov
>> that make it stop building.
>>
>
> Yep, libltdl was added.
>
> Also I think you may want to get rid of this warning, can I see the
> configure flags?

sure,

make -V CONFIGURE_ARGS

--libdir=/usr/local/lib  --with-dbdir=/var/db/clamav  --with-zlib=/usr
 --disable-zlib-vcheck  --disable-clamuko  --disable-clamav
--enable-bigstack  --enable-readdir_r  --disable-dependency-tracking
--enable-gethostbyname_r  --enable-experimental --with-iconv
--prefix=/usr/local ${_LATE_CONFIGURE_ARGS}

make -V CONFIGURE_ENV

CPPFLAGS="-I/usr/local/include  "  LDFLAGS=" -L/usr/local/lib  -lthr"
SHELL=/bin/sh CONFIG_SHELL=/bin/sh MAKE=gmake
LIBTOOL=/usr/local/bin/libtool LIBTOOLIZE=/usr/local/bin/libtoolize
LIBTOOL_M4=/usr/local/share/aclocal/libtool.m4
lt_cv_sys_max_cmd_len=262144

make -V MAKE_ENV

SHELL=/bin/sh NO_LINT=YES   LIBTOOL=/usr/local/bin/libtool
LIBTOOLIZE=/usr/local/bin/libtoolize
LIBTOOL_M4=/usr/local/share/aclocal/libtool.m4 PREFIX=/usr/local
LOCALBASE=/usr/local X11BASE=/usr/local  MOTIFLIB="-L/usr/local/lib
-lXm -lXp" LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O2 -pipe
-fno-strict-aliasing" CXX="c++" CXXFLAGS="-O2 -pipe
-fno-strict-aliasing"  MANPREFIX="/usr/local"
BSD_INSTALL_PROGRAM="install  -s  -m 555"  BSD_INSTALL_SCRIPT="install
  -m 555"  BSD_INSTALL_DATA="install   -m 444"
BSD_INSTALL_MAN="install   -m 444"

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


Re: [Clamav-devel] Clamav snapshot 20081114 build error at FreeBSD

2008-11-17 Thread Török Edwin
On 2008-11-17 19:35, Renato Botelho wrote:
> On Mon, Nov 17, 2008 at 3:16 PM, Török Edwin <[EMAIL PROTECTED]> wrote:
>   
>> On 2008-11-17 17:29, Renato Botelho wrote:
>> 
>>> libtool: link: 
>>> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libltdl/dlopen.la'
>>> is not a valid libtool archive
>>> gmake[4]: *** [libclamav.la] Error 1
>>> gmake[4]: Leaving directory
>>> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
>>> gmake[3]: *** [all-recursive] Error 1
>>> gmake[3]: Leaving directory
>>> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
>>> gmake[2]: *** [all] Error 2
>>> gmake[2]: Leaving directory
>>> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
>>> gmake[1]: *** [all-recursive] Error 1
>>> gmake[1]: Leaving directory
>>> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114'
>>> gmake: *** [all] Error 2
>>>
>>> The content of 
>>> /home/garga/prs/clamav-devel/work/clamav-devel-20081114/libltdl/dlopen.la
>>> is here:
>>>
>>> http://pastebin.com/f13ec7157
>>>
>>>   
>> This says that it was generated by libtool 1.5.26, which is wrong.
>> ClamAV currently uses libtool 2.2.6a. Perhaps you accidentally
>> downgraded libtool by running autoreconf -fvi, or libtoolize --copy --force?
>> 
>
> Here you can see a complete buildlog:
>
> http://pastebin.com/f13816143
>
> I never ran libtoolize nor autoreconf.
>
> I don't know if it matters but the only version of libtool we have
> available on FreeBSD ports is 1.5.26.
>   

The problem is that it uses /usr/local/bin/libtool, instead of the
libtool distributed with ClamAV (2.2.6a).
Is the ports system changing that?
I think you can solve the build problem my making sure that clamav uses
the libtool we distribute, and not the system's libtool.

If clamav is built directly from svn, by a simple configure && make, it
builds without problems:
http://farm.0xacab.net/build/show/593

> Anyway, the current ports version (20081105) build without
> any problems, something happened between 05 and 14 Nov
> that make it stop building.
>   

Yep, libltdl was added.

Also I think you may want to get rid of this warning, can I see the
configure flags?

** WARNING:
** You are either cross compiling to a different host or
** you have manually disabled important configure checks.
** Please be aware that this build may be badly broken.
** DO NOT REPORT BUGS BASED ON THIS BUILD !!!

Best regards,
--Edwin
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


Re: [Clamav-devel] Clamav snapshot 20081114 build error at FreeBSD

2008-11-17 Thread Török Edwin
On 2008-11-17 17:29, Renato Botelho wrote:
> Hello,
>
>   

Hi,

> libtool: link: 
> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libltdl/dlopen.la'
> is not a valid libtool archive
> gmake[4]: *** [libclamav.la] Error 1
> gmake[4]: Leaving directory
> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
> gmake[3]: *** [all-recursive] Error 1
> gmake[3]: Leaving directory
> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
> gmake[2]: *** [all] Error 2
> gmake[2]: Leaving directory
> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114'
> gmake: *** [all] Error 2
>
> The content of 
> /home/garga/prs/clamav-devel/work/clamav-devel-20081114/libltdl/dlopen.la
> is here:
>
> http://pastebin.com/f13ec7157
>   

This says that it was generated by libtool 1.5.26, which is wrong.
ClamAV currently uses libtool 2.2.6a. Perhaps you accidentally
downgraded libtool by running autoreconf -fvi, or libtoolize --copy --force?

Best regards,
--Edwin
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


Re: [Clamav-devel] Clamav snapshot 20081114 build error at FreeBSD

2008-11-17 Thread Renato Botelho
On Mon, Nov 17, 2008 at 3:16 PM, Török Edwin <[EMAIL PROTECTED]> wrote:
> On 2008-11-17 17:29, Renato Botelho wrote:
>> libtool: link: 
>> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libltdl/dlopen.la'
>> is not a valid libtool archive
>> gmake[4]: *** [libclamav.la] Error 1
>> gmake[4]: Leaving directory
>> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
>> gmake[3]: *** [all-recursive] Error 1
>> gmake[3]: Leaving directory
>> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
>> gmake[2]: *** [all] Error 2
>> gmake[2]: Leaving directory
>> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114/libclamav'
>> gmake[1]: *** [all-recursive] Error 1
>> gmake[1]: Leaving directory
>> `/home/garga/prs/clamav-devel/work/clamav-devel-20081114'
>> gmake: *** [all] Error 2
>>
>> The content of 
>> /home/garga/prs/clamav-devel/work/clamav-devel-20081114/libltdl/dlopen.la
>> is here:
>>
>> http://pastebin.com/f13ec7157
>>
>
> This says that it was generated by libtool 1.5.26, which is wrong.
> ClamAV currently uses libtool 2.2.6a. Perhaps you accidentally
> downgraded libtool by running autoreconf -fvi, or libtoolize --copy --force?

Here you can see a complete buildlog:

http://pastebin.com/f13816143

I never ran libtoolize nor autoreconf.

I don't know if it matters but the only version of libtool we have
available on FreeBSD ports is 1.5.26.

Anyway, the current ports version (20081105) build without
any problems, something happened between 05 and 14 Nov
that make it stop building.

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