LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 11-27-2007, 05:09 AM   #1
OTIM
Member
 
Registered: Nov 2007
Posts: 37

Rep: Reputation: 15
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 saysthis 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

Last edited by OTIM; 11-27-2007 at 05:45 AM.
 
Old 11-27-2007, 06:10 AM   #2
OTIM
Member
 
Registered: Nov 2007
Posts: 37

Original Poster
Rep: Reputation: 15
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GSSAPI and Cyrus SASL: testing failed licht Linux - Networking 1 08-07-2007 05:35 PM
Help Regarding Cyrus SASL pushpraj Linux - Newbie 1 11-28-2006 04:11 PM
Postfix - SASL LOGIN authentication failed micko_escalade Linux - Networking 1 02-03-2006 01:53 AM
Cyrus SASL & Postfix RPM Build ghight Suse/Novell 0 06-03-2005 09:46 AM
postfix+cyrus-sasl+impd installation conf..help Robin01 Linux - Newbie 0 02-29-2004 05:24 PM


All times are GMT -5. The time now is 10:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration