红联Linux门户
Linux帮助

编译 cyrus-sasl-2.1.21出现的问题

发布时间:2010-05-12 09:05:04来源:红联作者:liyingchunvip
在红帽子下安装sasl时,在编译时出现以下的问题
client.c:64: error: static declaration of 'global_callbacks' follows non-static declaration
saslint.h:112: error: previous declaration of 'global_callbacks' was here
client.c: In function '_sasl_print_mechanism':
client.c:863: warning: unused parameter 'rock'
make[2]: *** [client.lo] 错误 1
make[2]: Leaving directory `/home/admin/Desktop/cyrus-sasl-2.1.21/lib'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/admin/Desktop/cyrus-sasl-2.1.21'
make: *** [all] 错误 2

求助各位高手的解决方法,小弟感激不尽
文章评论

共有 2 条评论

  1. liyingchunvip 于 2010-05-12 10:29:32发表:

    已经使用命令./configure配置通过了,但是在make的时候出现上面的问题
    [root@localhost cyrus-sasl-2.1.21]# make
    make all-recursive
    make[1]: Entering directory `/home/admin/Desktop/cyrus-sasl-2.1.21'
    Making all in include
    make[2]: Entering directory `/home/admin/Desktop/cyrus-sasl-2.1.21/include'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/admin/Desktop/cyrus-sasl-2.1.21/include'
    Making all in sasldb
    make[2]: Entering directory `/home/admin/Desktop/cyrus-sasl-2.1.21/sasldb'
    ar cru .libs/libsasldb.a db_berkeley.o allockey.o
    make[2]: Leaving directory `/home/admin/Desktop/cyrus-sasl-2.1.21/sasldb'
    Making all in plugins
    make[2]: Entering directory `/home/admin/Desktop/cyrus-sasl-2.1.21/plugins'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/admin/Desktop/cyrus-sasl-2.1.21/plugins'
    Making all in lib
    make[2]: Entering directory `/home/admin/Desktop/cyrus-sasl-2.1.21/lib'
    if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../plugins -I../include -I../sasldb -I/usr/local/mysql/include/mysql -Wall -W -g -O2 -MT client.lo -MD -MP -MF ".deps/client.Tpo" \
    -c -o client.lo `test -f 'client.c' || echo './'`client.c; \
    then mv ".deps/client.Tpo" ".deps/client.Plo"; \
    else rm -f ".deps/client.Tpo"; exit 1; \
    fi
    gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../plugins -I../include -I../sasldb -I/usr/local/mysql/include/mysql -Wall -W -g -O2 -MT client.lo -MD -MP -MF .deps/client.Tpo -c client.c -fPIC -DPIC -o client.lo
    client.c:64: error: static declaration of 'global_callbacks' follows non-static declaration
    saslint.h:112: error: previous declaration of 'global_callbacks' was here
    client.c: In function '_sasl_print_mechanism':
    client.c:863: warning: unused parameter 'rock'
    make[2]: *** [client.lo] 错误 1
    make[2]: Leaving directory `/home/admin/Desktop/cyrus-sasl-2.1.21/lib'
    make[1]: *** [all-recursive] 错误 1
    make[1]: Leaving directory `/home/admin/Desktop/cyrus-sasl-2.1.21'
    make: *** [all] 错误 2

  2. bobo504 于 2010-05-12 09:55:35发表:

    信息不完整,你最好多给点信息