LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix and cyrus-sasl -failed to make install :( (http://www.linuxquestions.org/questions/linux-server-73/postfix-and-cyrus-sasl-failed-to-make-install-602699/)

OTIM 11-27-2007 05:09 AM

Postfix and cyrus-sasl -failed to make install :(
 
Hello,

I'm trying to implement authentication for postfix using cyrus-sasl
I have installed:
cyrus-sasl-md5-2.1.22-6
cyrus-sasl-lib-2.1.22-6
cyrus-sasl-plain-2.1.22-6
cyrus-sasl-2.1.22-6
cyrus-sasl-devel-2.1.22-6

I go to the directory from where i compiled postfix and do:
make tidy

and then:
make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
-I/usr/local/include/sasl" AUXLIBS="-L/usr/local/lib -lsasl2"

After that i do make install and it says:(this is a part of the output, i copied just the error part)
gcc -Wmissing-prototypes -Wformat -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/local/include/sasl -g -O -I. -I../../include -DLINUX2 -c xsasl_cyrus_server.c
xsasl_cyrus_server.c:77:18: error: sasl.h: No such file or directory
xsasl_cyrus_server.c:78:22: error: saslutil.h: No such file or directory
xsasl_cyrus_server.c:146: error: expected specifier-qualifier-list before ‘sasl_conn_t’
xsasl_cyrus_server.c:175: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘callbacks’
xsasl_cyrus_server.c: In function ‘xsasl_cyrus_server_init’:
xsasl_cyrus_server.c:221: error: ‘callbacks’ undeclared (first use in this function)
xsasl_cyrus_server.c:221: error: (Each undeclared identifier is reported only once
xsasl_cyrus_server.c:221: error: for each function it appears in.)
xsasl_cyrus_server.c:221: error: ‘SASL_OK’ undeclared (first use in this function)
xsasl_cyrus_server.c: In function ‘xsasl_cyrus_server_create’:
xsasl_cyrus_server.c:256: error: ‘sasl_conn_t’ undeclared (first use in this function)
xsasl_cyrus_server.c:256: error: ‘sasl_conn’ undeclared (first use in this function)
xsasl_cyrus_server.c:303: error: ‘sasl_callback_t’ undeclared (first use in this function)
xsasl_cyrus_server.c:303: error: expected expression before ‘)’ token
xsasl_cyrus_server.c:303: error: ‘SASL_OK’ undeclared (first use in this function)
xsasl_cyrus_server.c:325: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘sasl_conn’
xsasl_cyrus_server.c:326: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:327: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘username’
xsasl_cyrus_server.c:328: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘mechanism_list’
xsasl_cyrus_server.c: In function ‘xsasl_cyrus_server_set_security’:
xsasl_cyrus_server.c:343: error: ‘sasl_security_properties_t’ undeclared (first use in this function)
xsasl_cyrus_server.c:343: error: expected ‘;’ before ‘sec_props’
xsasl_cyrus_server.c:350: error: ‘sec_props’ undeclared (first use in this function)
xsasl_cyrus_server.c:368: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘sasl_conn’
xsasl_cyrus_server.c:368: error: ‘SASL_SEC_PROPS’ undeclared (first use in this function)
xsasl_cyrus_server.c:369: error: ‘SASL_OK’ undeclared (first use in this function)
xsasl_cyrus_server.c: In function ‘xsasl_cyrus_server_get_mechanism_list’:
xsasl_cyrus_server.c:393: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘sasl_conn’
xsasl_cyrus_server.c:397: error: ‘SASL_OK’ undeclared (first use in this function)
xsasl_cyrus_server.c:405: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘mechanism_list’
xsasl_cyrus_server.c:410: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘mechanism_list’
xsasl_cyrus_server.c: In function ‘xsasl_cyrus_server_free’:
xsasl_cyrus_server.c:419: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘sasl_conn’
xsasl_cyrus_server.c:420: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:421: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘username’
xsasl_cyrus_server.c:422: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘username’
xsasl_cyrus_server.c:423: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘mechanism_list’
xsasl_cyrus_server.c:424: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘mechanism_list’
xsasl_cyrus_server.c: In function ‘xsasl_cyrus_server_auth_response’:
xsasl_cyrus_server.c:448: error: ‘SASL_OK’ undeclared (first use in this function)
xsasl_cyrus_server.c:451: error: ‘SASL_CONTINUE’ undeclared (first use in this function)
xsasl_cyrus_server.c:465: error: ‘SASL_NOUSER’ undeclared (first use in this function)
xsasl_cyrus_server.c:466: error: ‘SASL_BADAUTH’ undeclared (first use in this function)
xsasl_cyrus_server.c:467: warning: passing argument 2 of ‘vstring_strcpy’ makes pointer from integer without a cast
xsasl_cyrus_server.c: In function ‘xsasl_cyrus_server_first’:
xsasl_cyrus_server.c:505: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:505: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:505: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:505: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:506: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:506: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:507: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:507: error: ‘SASL_OK’ undeclared (first use in this function)
xsasl_cyrus_server.c:511: warning: passing argument 2 of ‘vstring_strcpy’ makes pointer from integer without a cast
xsasl_cyrus_server.c:520: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘sasl_conn’
xsasl_cyrus_server.c: In function ‘xsasl_cyrus_server_next’:
xsasl_cyrus_server.c:552: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:552: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:552: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:552: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:553: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:553: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:554: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:554: error: ‘SASL_OK’ undeclared (first use in this function)
xsasl_cyrus_server.c:558: warning: passing argument 2 of ‘vstring_strcpy’ makes pointer from integer without a cast
xsasl_cyrus_server.c:563: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c:564: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘sasl_conn’
xsasl_cyrus_server.c:564: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘decoded’
xsasl_cyrus_server.c: In function ‘xsasl_cyrus_server_get_username’:
xsasl_cyrus_server.c:588: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘sasl_conn’
xsasl_cyrus_server.c:588: error: ‘SASL_USERNAME’ undeclared (first use in this function)
xsasl_cyrus_server.c:589: error: ‘SASL_OK’ undeclared (first use in this function)
xsasl_cyrus_server.c:594: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘username’
xsasl_cyrus_server.c:595: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘username’
xsasl_cyrus_server.c:596: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘username’
xsasl_cyrus_server.c:597: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘username’
xsasl_cyrus_server.c:598: error: ‘XSASL_CYRUS_SERVER’ has no member named ‘username’
make: *** [xsasl_cyrus_server.o] Error 1
make: *** [update] Error 1

Please help me...my head hurts :(
If you need more information please tell me and i will post the info you require

OTIM 11-27-2007 06:10 AM

I fixed it so if anyone wants to know how or has the same problem here it is the solution:
Those packages cyrus-sasl-md5-2.1.22-6
cyrus-sasl-lib-2.1.22-6
cyrus-sasl-plain-2.1.22-6
cyrus-sasl-2.1.22-6
cyrus-sasl-devel-2.1.22-6
were installed with postfix.

I downloaded the cyrus-sasl packages from the ftp://ftp.andrew.cmu.edu/pub/cyrus-m...-2.1.18.tar.gz

compiled them like here:
http://tldp.org/HOWTO/Postfix-Cyrus-...O/install.html

and it finally worked!


All times are GMT -5. The time now is 01:22 PM.