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, <GEN0> line 1.
Use of uninitialized value in exists at /usr/local/bin/automake-1.9
line 4675, <GEN0> line 1.
Use of uninitialized value in concatenation (.) or string at
/usr/local/bin/automake-1.9 line 4675, <GEN0> 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