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

Reply via email to