Re: spamfiltering

Jerry Heyman <[email protected]>
Newsgroups gmane.os.netbsd.ports.mac68k,gmane.os.netbsd.ports.atari,gmane.os.netbsd.ports.m68k,gmane.os.netbsd.ports.amiga,gmane.os.netbsd.ports.atari,gmane.os.netbsd.ports.amiga
Organization IBM STG
Message-ID <[email protected]>
Al - Image Hosting Services wrote:

> Hi Ignatios,
> 
> I am running it on an Amiga with an 060, so 128 megs of ram. I did
> download the latest package source and I still get this error:
> 
> cc -O2 -m68060 -Wall -Wmissing-prototypes -Wmissing-declarations
> -Wl,-R/usr/local/lib -o dspam dspam.o read_config.o config_api.o daemon.o
> client.o agent_shared.o -pthread

This is your problem.  it should be -lpthread

> ./.libs/libdspam.a -L/usr/pkgsrc/mail/dspam/work/.buildlink/lib -lm 
> daemon.o: In function `daemon_listen':
> daemon.c:(.text+0x1798): undefined reference to `pthread_attr_init'
> daemon.c:(.text+0x17a6): undefined reference to
> `pthread_attr_setdetachstate'
> daemon.c:(.text+0x1a1e): undefined reference to `pthread_create'
> daemon.c:(.text+0x1b50): undefined reference to `pthread_attr_init'
> daemon.c:(.text+0x1b5e): undefined reference to
> `pthread_attr_setdetachstate'
> *** Error code 1

These symbols should all be defined in libpthread, which will be
correctly linked in if you alter your link line to -lpthread

jerry
-- 
Jerry Heyman, PhD      / IBM STG - HPC&BG ISV Support / "Software is the 
Technical Consultant  / IBM Solutions Enablement     / difference between
[email protected]   /    919.543.5628 (t/l 441)    / hardware and reality"
http://ibm.com/servers/deepcomputing
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.