Re: Could anyone get Neils Provos's SpyBye compiled successfully on 4.2/amd64

2007-11-16 Thread Siju George
On Nov 14, 2007 2:19 PM, Stuart Henderson <[EMAIL PROTECTED]> wrote:
> from a point-of-view of porting this (rather than hand-building),
> does anyone have a clue what to do with libevent? (spybye uses the
> http parts which are disabled in src/)
>
>

So finally I got SpyBye compiled like this

http://www.bsd-india.org/pipermail/bsd-india/2007-November/001496.html
http://www.bsd-india.org/pipermail/bsd-india/2007-November/001496.html

Can this idea be adopted to port spybye?

Many thanks to Raja Subramanian in BSD-INDIA list and to all who helped here :-)

Kind Regards

Siju



Re: Could anyone get Neils Provos's SpyBye compiled successfully on 4.2/amd64

2007-11-14 Thread Siju George
On Nov 14, 2007 2:19 PM, Stuart Henderson <[EMAIL PROTECTED]> wrote:
> from a point-of-view of porting this (rather than hand-building),
> does anyone have a clue what to do with libevent? (spybye uses the
> http parts which are disabled in src/)
>
>

I found that

I already have libevent on my OpenBSD 4.2/amd64


$ locate libevent
/usr/lib/libevent.a
/usr/lib/libevent.so.1.4
/usr/lib/libevent_p.a
/usr/lib/libevent_pic.a
$
===

but I got error while compiling SpyBye and Neils told me to install
libevent first so I installed as told in
http://www.spybye.org/index.php?/pages/installation.html
by hand and still got these errors.

Thank you so much

Kind Regards

Siju



Re: Could anyone get Neils Provos's SpyBye compiled successfully on 4.2/amd64

2007-11-14 Thread Stuart Henderson
from a point-of-view of porting this (rather than hand-building),
does anyone have a clue what to do with libevent? (spybye uses the
http parts which are disabled in src/)



Re: Could anyone get Neils Provos's SpyBye compiled successfully on 4.2/amd64

2007-11-13 Thread Jacob Meuser
On Wed, Nov 14, 2007 at 11:46:43AM +0530, Siju George wrote:
> > > /usr/local/lib/libclamav.so.4.2: undefined reference to `pthread_create'

> Meanwhile Neils Provos answered me with the following lines.
> 
> ===
> You probably have to change the Makefile and add -lpthread to the link
> line.   However, that's a problem of your ClamAV installation and not
> with SpyBye.
> I am super busy.  Please, ask the [EMAIL PROTECTED] people for help.

yes, `clamav-config --libs` should include '-pthread', but it does not
do so, at least in -current.

that is the source of the problem.  fix it there instead of hacking
a Makefile makes more sense to me.

-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: Could anyone get Neils Provos's SpyBye compiled successfully on 4.2/amd64

2007-11-13 Thread Siju George
On Nov 13, 2007 8:55 PM, Kurt Miller <[EMAIL PROTECTED]> wrote:
> On Tuesday 13 November 2007 10:10:14 am Siju George wrote:
>
> > gcc  -O2 -g -Wall   -o spybye  spybye.o utils.o status.o  spybye.gen.o
> > log.o atomicio.o  virus.o proxy.o strnstr.o strncasestr.o
> > -L/usr/local/lib -levent -L/usr/local/lib -liconv -lz -lbz2 -lgmp
> > -L/usr/local/lib -lcurl -L/usr/local/lib -lidn -lssl -lcrypto -lz
> > -lclamav
> > /usr/local/lib/libgmp.so.7.0: warning: vsprintf() is often misused,
> > please use vsnprintf()
> > /usr/local/lib/libevent.so.2.0: warning: strcpy() is almost always
> > misused, please use strlcpy()
> > /usr/local/lib/libcurl.so.6.0: warning: sprintf() is often misused,
> > please use snprintf()
> > /usr/local/lib/libbz2.so.10.4: warning: strcat() is almost always
> > misused, please use strlcat()
> > /usr/local/lib/libclamav.so.4.2: undefined reference to `pthread_create'
> > /usr/local/lib/libclamav.so.4.2: undefined reference to
> > `pthread_mutex_unlock' /usr/local/lib/libclamav.so.4.2: undefined reference
> > to `pthread_mutex_lock' /usr/local/lib/libclamav.so.4.2: undefined
> > reference to `pthread_join' collect2: ld returned 1 exit status
>
> Shared lib /usr/local/lib/libclamav.so.4.2 is threaded so you need
> to adjust the linking of spybye to include -pthread too (i.e. add it
> to the above gcc command).
>

Thank you so much Kurt, Landry, Paul, Owain for the help :-)

I changed the line

CFLAGS = -O2 -g -Wall -pthread

in

spybye-0.3/Makefile.am

to include -pthread but now it gives another error.

===
$ make
event_rpcgen.py spybye.rpc || echo "No Python installed"
Reading "spybye.rpc"
  Created struct: dangerousload
Added entry: time_in_seconds
Added entry: parent_url
Added entry: dangerous_url
Added entry: virus_result
Added entry: digest
  Created struct: dangerous_report
Added entry: time_in_seconds
Added entry: remote_ip
Added entry: report
  Created struct: virusscan
Added entry: buffer
Added entry: context
  Created struct: virusresult
Added entry: result
Added entry: context
... creating "spybye.gen.h"
... creating "spybye.gen.c"
make  all-am
 cd . && /bin/sh /var/Software/spybye-0.3/missing --run automake-1.9
--foreign  Makefile
Use of uninitialized value in string eq at /usr/local/bin/automake-1.9
line 4673,  line 1.
Use of uninitialized value in exists at /usr/local/bin/automake-1.9
line 4675,  line 1.
Use of uninitialized value in concatenation (.) or string at
/usr/local/bin/automake-1.9 line 4675,  line 1.
automake-1.9: 
automake-1.9: ## Internal Error ##
automake-1.9: 
automake-1.9: unrequested trace `'
automake-1.9: Please contact <[EMAIL PROTECTED]>.
 at /usr/local/share/automake-1.9/Automake/Channels.pm line 562
Automake::Channels::msg('automake', '', 'unrequested trace
`\'') called at /usr/local/share/automake-1.9/Automake/ChannelDefs.pm
line 191
Automake::ChannelDefs::prog_error('unrequested trace `\'')
called at /usr/local/bin/automake-1.9 line 4675
Automake::scan_autoconf_traces('configure.in') called at
/usr/local/bin/automake-1.9 line 4877
Automake::scan_autoconf_files() called at
/usr/local/bin/automake-1.9 line 7493
*** Error code 1

Stop in /var/Software/spybye-0.3 (line 245 of Makefile).
*** Error code 1

Stop in /var/Software/spybye-0.3 (line 227 of Makefile).

=

Meanwhile Neils Provos answered me with the following lines.

===
You probably have to change the Makefile and add -lpthread to the link
line.   However, that's a problem of your ClamAV installation and not
with SpyBye.
I am super busy.  Please, ask the [EMAIL PROTECTED] people for help.
==

So I have Cced to marc as well since he maintains ClamAV in ports.

Should I really contact "<[EMAIL PROTECTED]>." as said in the error message?
This is my first time editing a Make file :-) So just wanted to make
sure it is not some thing I did wrong :-))

Thank you so much

Kind Regards

Siju



Re: Could anyone get Neils Provos's SpyBye compiled successfully on 4.2/amd64

2007-11-13 Thread Kurt Miller
On Tuesday 13 November 2007 10:10:14 am Siju George wrote:
> Hi,
>
>  I tried to get http://www.monkey.org/~provos/spybye-0.3.tar.gz
> complied on OpenBSD 4.2/amd64
> as per instructions on
> http://www.spybye.org/index.php?/pages/installation.html
>
> It gives the following error. Could somebody help me fix it?
>
> Thank you so much
>
> Kind Regards
>
> Siju
>

...

> gcc  -O2 -g -Wall   -o spybye  spybye.o utils.o status.o  spybye.gen.o
> log.o atomicio.o  virus.o proxy.o strnstr.o strncasestr.o
> -L/usr/local/lib -levent -L/usr/local/lib -liconv -lz -lbz2 -lgmp
> -L/usr/local/lib -lcurl -L/usr/local/lib -lidn -lssl -lcrypto -lz
> -lclamav
> /usr/local/lib/libgmp.so.7.0: warning: vsprintf() is often misused,
> please use vsnprintf()
> /usr/local/lib/libevent.so.2.0: warning: strcpy() is almost always
> misused, please use strlcpy()
> /usr/local/lib/libcurl.so.6.0: warning: sprintf() is often misused,
> please use snprintf()
> /usr/local/lib/libbz2.so.10.4: warning: strcat() is almost always
> misused, please use strlcat()
> /usr/local/lib/libclamav.so.4.2: undefined reference to `pthread_create'
> /usr/local/lib/libclamav.so.4.2: undefined reference to
> `pthread_mutex_unlock' /usr/local/lib/libclamav.so.4.2: undefined reference
> to `pthread_mutex_lock' /usr/local/lib/libclamav.so.4.2: undefined
> reference to `pthread_join' collect2: ld returned 1 exit status

Shared lib /usr/local/lib/libclamav.so.4.2 is threaded so you need
to adjust the linking of spybye to include -pthread too (i.e. add it
to the above gcc command).

-Kurt



Re: Could anyone get Neils Provos's SpyBye compiled successfully on 4.2/amd64

2007-11-13 Thread Paul Irofti
You're missing pthread linkage.



Could anyone get Neils Provos's SpyBye compiled successfully on 4.2/amd64

2007-11-13 Thread Siju George
Hi,

 I tried to get http://www.monkey.org/~provos/spybye-0.3.tar.gz
complied on OpenBSD 4.2/amd64
as per instructions on http://www.spybye.org/index.php?/pages/installation.html

It gives the following error. Could somebody help me fix it?

Thank you so much

Kind Regards

Siju



$ make
event_rpcgen.py spybye.rpc || echo "No Python installed"
Reading "spybye.rpc"
  Created struct: dangerousload
Added entry: time_in_seconds
Added entry: parent_url
Added entry: dangerous_url
Added entry: virus_result
Added entry: digest
  Created struct: dangerous_report
Added entry: time_in_seconds
Added entry: remote_ip
Added entry: report
  Created struct: virusscan
Added entry: buffer
Added entry: context
  Created struct: virusresult
Added entry: result
Added entry: context
... creating "spybye.gen.h"
... creating "spybye.gen.c"
make  all-am
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT spybye.o -MD -MP
-MF ".deps/spybye.Tpo" -c -o spybye.o spybye.c;  then mv -f
".deps/spybye.Tpo" ".deps/spybye.Po"; else rm -f ".deps/spybye.Tpo";
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT utils.o -MD -MP
-MF ".deps/utils.Tpo" -c -o utils.o utils.c;  then mv -f
".deps/utils.Tpo" ".deps/utils.Po"; else rm -f ".deps/utils.Tpo"; exit
1; fi
utils.c: In function `make_next_replacement':
utils.c:249: warning: implicit declaration of function `strnstr'
utils.c:249: warning: assignment makes pointer from integer without a cast
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT status.o -MD -MP
-MF ".deps/status.Tpo" -c -o status.o status.c;  then mv -f
".deps/status.Tpo" ".deps/status.Po"; else rm -f ".deps/status.Tpo";
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT spybye.gen.o -MD
-MP -MF ".deps/spybye.gen.Tpo" -c -o spybye.gen.o spybye.gen.c;  then
mv -f ".deps/spybye.gen.Tpo" ".deps/spybye.gen.Po"; else rm -f
".deps/spybye.gen.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT log.o -MD -MP -MF
".deps/log.Tpo" -c -o log.o log.c;  then mv -f ".deps/log.Tpo"
".deps/log.Po"; else rm -f ".deps/log.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT atomicio.o -MD -MP
-MF ".deps/atomicio.Tpo" -c -o atomicio.o atomicio.c;  then mv -f
".deps/atomicio.Tpo" ".deps/atomicio.Po"; else rm -f
".deps/atomicio.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT virus.o -MD -MP
-MF ".deps/virus.Tpo" -c -o virus.o virus.c;  then mv -f
".deps/virus.Tpo" ".deps/virus.Po"; else rm -f ".deps/virus.Tpo"; exit
1; fi
virus.c: In function `virus_init':
virus.c:61: warning: implicit declaration of function `cl_loaddbdir'
virus.c:68: warning: passing arg 1 of `cl_build' from incompatible pointer type
virus.c: In function `clamav_scan_buffer':
virus.c:114: warning: passing arg 4 of `cl_scandesc' from incompatible
pointer type
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT proxy.o -MD -MP
-MF ".deps/proxy.Tpo" -c -o proxy.o proxy.c;  then mv -f
".deps/proxy.Tpo" ".deps/proxy.Po"; else rm -f ".deps/proxy.Tpo"; exit
1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT strnstr.o -MD -MP
-MF ".deps/strnstr.Tpo" -c -o strnstr.o strnstr.c;  then mv -f
".deps/strnstr.Tpo" ".deps/strnstr.Po"; else rm -f
".deps/strnstr.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include
-I/usr/local/include -O2 -pipe -O2 -g -Wall -MT strncasestr.o -MD
-MP -MF ".deps/strncasestr.Tpo" -c -o strncasestr.o strncasestr.c;
then mv -f ".deps/strncasestr.Tpo" ".deps/strncasestr.Po"; else rm -f
".deps/strncasestr.Tpo"; exit 1; fi
gcc  -O2 -g -Wall   -o spybye  spybye.o utils.o status.o  spybye.gen.o
log.o atomicio.o  virus.o proxy.o strnstr.o strncasestr.o
-L/usr/local/lib -levent -L/usr/local/lib -liconv -lz -lbz2 -lgmp
-L/usr/local/lib -lcurl -L/usr/local/lib -lidn -lssl -lcrypto -lz
-lclamav
/usr/local/lib/libgmp.so.7.0: warning: vsprintf() is often misused,
please use vsnprintf()
/usr/local/lib/libevent.so.2.0: warning: strcpy() is almost always
misused, please use strlcpy()
/usr/local/lib/libcurl.so.6.0: warning: sprintf() is often misused,
please use snprintf()
/usr/local/lib/libbz2.so.10.4: warning: strcat() is almost always
misused, please use strlcat()
/usr/local/lib/libclamav.so.4.2: undefined reference to `pthread_create'
/usr/local/lib/libclam