sieve script not running?

Igor Brezac igor at ipass.net
Mon Jul 7 21:34:37 EDT 2003


On Mon, 7 Jul 2003, Ken Murchison wrote:

>
>
> Amos Gouaux wrote:
> >>>>>>On Mon, 07 Jul 2003 15:56:17 -0400,
> >>>>>>Ken Murchison <ken at oceana.com> (km) writes:
> >>>>>
> >
> > km> Test your script/message combo by running the them through the
> > km> sieve/test.c program in the distro.
> >
> > Oh, that reminds me of something.  I generally try to compile that
> > because it's handy for manually testing scripts (will this work
> > with 2.2?).
>
> If you're asking if the test program will work with 2.2 (bytecode), the
> answer is yes, provided you compile the script with sievec first.
>
> Which version of Cyrus gives the problem below?
>
>  > However, last time I tried, got this:
> >
> > + cd sieve
> > + gmake test
> > gcc -c -I. -I.. -I. -I./../lib -I./../et -I/usr/local/BerkeleyDB.4.0/include  -I/usr/local/include -I/usr/local/include -I/usr/local/include -DHAVE_CONFIG_H -I. -I. -Wall -g -O2 \
> > test.c
> > test.c: In function `hashheader':
> > test.c:70: warning: subscript has type `char'
> > test.c: In function `parseheader':
> > test.c:108: warning: subscript has type `char'
> > test.c:121: warning: subscript has type `char'
> > gcc -L/usr/local/lib -R/usr/local/lib -L/usr/local/BerkeleyDB.4.0/lib -R/usr/local/BerkeleyDB.4.0/lib -L/usr/local/lib -R/usr/local/lib  -L/usr/local/lib -L/usr/local/lib -o test \
> >  test.o libsieve.a ../et/libcom_err.a ../lib/libcyrus.a
> > Undefined                       first referenced
> >  symbol                             in file
> > shutdown                            ../lib/libcyrus.a(util.o)
> > ld: fatal: Symbol referencing errors. No output written to test
> > collect2: ld returned 1 exit status
> > gmake: *** [test] Error 1
> >

You are missing -lsocket -lnsl in your link statement.

-- 
Igor




More information about the Info-cyrus mailing list