Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2006-07-05 08:47:48

  masonix - Użytkownik

masonix
Użytkownik
Skąd: Bielsko-Biała
Zarejestrowany: 2006-04-07

cyrus-sasl-2.1.22

Witam

Mam problem, chciałbym zrobić autoryzację SASL dla serwera pocztowego Postfix ale pojawiły mi się błędy.

Wg. opisów należy zrobić to nastepująco:

Kod:

./configure --enable-login --enable-plain --with-gnu-ld --with-saslauthd
make
make install
ln -s /usr/local/lib/sasl2 /usr/lib/sasl2

Gdy daje 'make' pojawiają się takie błędy:

Kod:

Debian:/home/udostepniony/konfigi/postfix/cyrus-sasl-2.1.22# make
make  all-recursive
make[1]: Entering directory `/home/udostepniony/konfigi/postfix/cyrus-sasl-2.1.22'
Making all in include
make[2]: Entering directory `/home/udostepniony/konfigi/postfix/cyrus-sasl-2.1.22/include'
make[2]: Nie nic do roboty w `all'.
make[2]: Leaving directory `/home/udostepniony/konfigi/postfix/cyrus-sasl-2.1.22/include'
Making all in sasldb
make[2]: Entering directory `/home/udostepniony/konfigi/postfix/cyrus-sasl-2.1.22/sasldb'
ar cru .libs/libsasldb.a db_none.o
make[2]: Leaving directory `/home/udostepniony/konfigi/postfix/cyrus-sasl-2.1.22/sasldb'
Making all in plugins
make[2]: Entering directory `/home/udostepniony/konfigi/postfix/cyrus-sasl-2.1.22/plugins'
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib -I../sasldb -I../include    -Wall -W -g -O2 -MT digestmd5.lo -MD -MP -MF ".deps/digestmd5.Tpo" 
  -c -o digestmd5.lo `test -f 'digestmd5.c' || echo './'`digestmd5.c; 
then mv ".deps/digestmd5.Tpo" ".deps/digestmd5.Plo"; 
else rm -f ".deps/digestmd5.Tpo"; exit 1; 
fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib -I../sasldb -I../include -Wall -W -g -O2 -MT digestmd5.lo -MD -MP -MF .deps/digestmd5.Tpo -c digestmd5.c  -fPIC -DPIC -o digestmd5.lo
digestmd5.c:812: error: syntax error before "des_key_schedule"
digestmd5.c:812: warning: no semicolon at end of struct or union
digestmd5.c:813: warning: type defaults to `int' in declaration of `ivec'
digestmd5.c:813: warning: data definition has no type or storage class
digestmd5.c:814: error: syntax error before "keysched2"
digestmd5.c:814: warning: type defaults to `int' in declaration of `keysched2'
digestmd5.c:814: warning: data definition has no type or storage class
digestmd5.c: In function `dec_3des':
digestmd5.c:849: warning: implicit declaration of function `des_ede2_cbc_encrypt'
digestmd5.c:852: error: dereferencing pointer to incomplete type
digestmd5.c:853: error: dereferencing pointer to incomplete type
digestmd5.c:854: error: dereferencing pointer to incomplete type
digestmd5.c:855: error: `DES_DECRYPT' undeclared (first use in this function)
digestmd5.c:855: error: (Each undeclared identifier is reported only once
digestmd5.c:855: error: for each function it appears in.)
digestmd5.c: In function `enc_3des':
digestmd5.c:900: error: dereferencing pointer to incomplete type
digestmd5.c:901: error: dereferencing pointer to incomplete type
digestmd5.c:902: error: dereferencing pointer to incomplete type
digestmd5.c:903: error: `DES_ENCRYPT' undeclared (first use in this function)
digestmd5.c: In function `init_3des':
digestmd5.c:918: error: invalid application of `sizeof' to an incomplete type
digestmd5.c:923: warning: implicit declaration of function `des_key_sched'
digestmd5.c:923: error: `des_cblock' undeclared (first use in this function)
digestmd5.c:923: error: syntax error before ')' token
digestmd5.c:927: error: syntax error before ')' token
digestmd5.c:929: error: dereferencing pointer to incomplete type
digestmd5.c:934: error: increment of pointer to unknown structure
digestmd5.c:934: error: arithmetic on pointer to an incomplete type
digestmd5.c:936: error: syntax error before ')' token
digestmd5.c:940: error: syntax error before ')' token
digestmd5.c:943: error: dereferencing pointer to incomplete type
digestmd5.c: In function `dec_des':
digestmd5.c:967: warning: implicit declaration of function `des_cbc_encrypt'
digestmd5.c:970: error: dereferencing pointer to incomplete type
digestmd5.c:971: error: dereferencing pointer to incomplete type
digestmd5.c:972: error: `DES_DECRYPT' undeclared (first use in this function)
digestmd5.c:976: error: dereferencing pointer to incomplete type
digestmd5.c: In function `enc_des':
digestmd5.c:1021: error: dereferencing pointer to incomplete type
digestmd5.c:1022: error: dereferencing pointer to incomplete type
digestmd5.c:1023: error: `DES_ENCRYPT' undeclared (first use in this function)
digestmd5.c:1027: error: dereferencing pointer to incomplete type
digestmd5.c: In function `init_des':
digestmd5.c:1042: error: invalid application of `sizeof' to an incomplete type
digestmd5.c:1047: error: `des_cblock' undeclared (first use in this function)
digestmd5.c:1047: error: syntax error before ')' token
digestmd5.c:1049: error: dereferencing pointer to incomplete type
digestmd5.c:1054: error: increment of pointer to unknown structure
digestmd5.c:1054: error: arithmetic on pointer to an incomplete type
digestmd5.c:1056: error: syntax error before ')' token
digestmd5.c:1058: error: dereferencing pointer to incomplete type
digestmd5.c: In function `digestmd5_server_mech_step2':
digestmd5.c:2100: warning: dereferencing type-punned pointer will break strict-aliasing rules
digestmd5.c:2117: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[2]: *** [digestmd5.lo] Błąd 1
make[2]: Leaving directory `/home/udostepniony/konfigi/postfix/cyrus-sasl-2.1.22/plugins'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/home/udostepniony/konfigi/postfix/cyrus-sasl-2.1.22'
make: *** [all] Błąd 2

Z góry dziękuje za pomoc.


[url=http://userbars.org][img]http://img209.imageshack.us/img209/3974/debiancu6.png[/img][/url]
[url=http://userbars.org][img]http://img89.imageshack.us/img89/6861/bashqm1.png[/img][/url]

Offline

 

#2  2006-07-05 12:10:00

  BiExi - matka przelozona

BiExi
matka przelozona
Skąd: Gorlice
Zarejestrowany: 2004-04-16
Serwis

Re: cyrus-sasl-2.1.22

Ja cyrus'a kompiluje z takimi obcjami

Kod:

./configure --enable-sql --enable-login --enable-plain --with-gnu-ld --with-saslauthd --with-mysql --with-pam

aby wszystko dzialo i sie kompilowalo

Kod:

apt-get install libdb3-dev libmysqlclient14-dev libssl-dev

co do tej czesci

Kod:

ln -s /usr/local/lib/sasl2 /usr/lib/sasl2 

to napierw usun [b]/usr/lib/sasl2 [/b]

jesli nadal beda sie pojawiac problemy z kompilaxja to sciagnijj o jedno oczko nizej
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.21.tar.gz
i na pewno sie skompiluje


[url=http://dug.net.pl][b]DUG[/b][/url]

Offline

 

#3  2006-07-05 17:14:28

  masonix - Użytkownik

masonix
Użytkownik
Skąd: Bielsko-Biała
Zarejestrowany: 2006-04-07

Re: cyrus-sasl-2.1.22

Podczas pobierania pakietu libmysqlclient14 wyskakuje mi taki bląd a cyrus dalej sie nie kompiluje..

Kod:

Debian:/home/udostepniony/konfigi/postfix/cyrus-sasl-2.1.22# apt-get install libmysqlclient14-dev
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności... Gotowe
Zostaną zainstalowane następujące dodatkowe pakiety:
  libmysqlclient14
Zostaną zainstalowane następujące NOWE pakiety:
  libmysqlclient14 libmysqlclient14-dev
0 zaktualizowanych, 2 nowo zainstalowanych, 0 do usunięcia i 0 nie zaktualizowanych.
Konieczne pobranie 7061kB archiwów.
Po rozpakowaniu zostanie dodatkowo użyte 18,2MB miejsca na dysku.
Czy chcesz kontynuować? [T/n] t
Błąd http://security.debian.org stable/updates/main libmysqlclient14 4.1.11a-4sarge3
  404 Not Found [IP: 194.109.137.218 80]
Błąd http://security.debian.org stable/updates/main libmysqlclient14-dev 4.1.11a-4sarge3
  404 Not Found [IP: 194.109.137.218 80]
Nie udało się pobrać http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/libmysqlclient14_4.1.11a-4sarge3_i386.deb  404 Not Found [IP: 194.109.137.218 80]
Nie udało się pobrać http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/libmysqlclient14-dev_4.1.11a-4sarge3_i386.deb  404 Not Found [IP: 194.109.137.218 80]
E: Nie udało się pobrać niektórych archiwów, spróbuj uruchomić apt-get update lub użyć opcji --fix-missing?
Debian:/home/udostepniony/konfigi/postfix/cyrus-sasl-2.1.22#

[url=http://userbars.org][img]http://img209.imageshack.us/img209/3974/debiancu6.png[/img][/url]
[url=http://userbars.org][img]http://img89.imageshack.us/img89/6861/bashqm1.png[/img][/url]

Offline

 

#4  2006-07-05 17:22:49

  BiExi - matka przelozona

BiExi
matka przelozona
Skąd: Gorlice
Zarejestrowany: 2004-04-16
Serwis

Re: cyrus-sasl-2.1.22

apt-get update

no i zobacz czy nie ma nowszej wersji tego pakietu


[url=http://dug.net.pl][b]DUG[/b][/url]

Offline

 

#5  2006-07-05 18:05:22

  AgayKhan - Członek DUG

AgayKhan
Członek DUG
Skąd: Płock
Zarejestrowany: 2006-03-21
Serwis

Re: cyrus-sasl-2.1.22

Nie jestem w temacie. Ale zaciekawiło mnie kilka spraw.
Na sidzie jest 2.1.19 ttu jest nowsza wersja. Czy uupdate nie działa? I dlaczego kompilujecie, zamiast rules zmodyfikować?


born to be root
linux register user #362473

Offline

 

#6  2006-07-06 08:48:31

  masonix - Użytkownik

masonix
Użytkownik
Skąd: Bielsko-Biała
Zarejestrowany: 2006-04-07

Re: cyrus-sasl-2.1.22

Faktycznie nie miałem najnowszej wesji pakietów, kompiluje się dopiero wersja cyrus-sasl-2.1.21

Jak mam teraz dodać obsługę sasl do Postfixa, gdy jest on zainstalowany z rezpozytorium, wszystkie opisy dotyczą wersji kompilowanej...


[url=http://userbars.org][img]http://img209.imageshack.us/img209/3974/debiancu6.png[/img][/url]
[url=http://userbars.org][img]http://img89.imageshack.us/img89/6861/bashqm1.png[/img][/url]

Offline

 

#7  2006-07-06 09:10:57

  AgayKhan - Członek DUG

AgayKhan
Członek DUG
Skąd: Płock
Zarejestrowany: 2006-03-21
Serwis

Re: cyrus-sasl-2.1.22

A nie jest to w sumie wsio ryba? wszak to te same binaria.


born to be root
linux register user #362473

Offline

 

#8  2006-07-07 12:21:47

  masonix - Użytkownik

masonix
Użytkownik
Skąd: Bielsko-Biała
Zarejestrowany: 2006-04-07

Re: cyrus-sasl-2.1.22

OK zaczął się kompilować ale mam już następny problem.

Istaluje SASL-a wg. instrukcji linio http://linio.terramail.pl/ps.html#cyrus i doszedłem do punku 5:

Kod:

Na początek smutna wiadomość (choć pewnie już dawno się domyśliłeś): 
Postfixa trzeba od nowa przekompilować z dodatkowymi opcjami. Na
wszelki wypadek zrób sobie backup /etc/postfix/ (o ile go używasz).
Dobra, wchodzimy do katalogu z rozpakowanym źródełkiem postfixa. Wydajemy
polecenie make tidy a następnie przechodzimy do sedna sprawy:

Dla cyrusa wersji 1.x:
make makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/local/include" AUXLIBS="-L/usr/local/lib -lsasl"
Dla cyrusa wersji 2.x:
make makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/local/include/sasl" AUXLIBS="-L/usr/local/lib -lsasl2"
Dla utrudnienia to wszystko w jednej linii, następnie make i make install.

Co zrobić gdy moja wersja jest instalowana nie ze źródeł ale przez apt-a ?


[url=http://userbars.org][img]http://img209.imageshack.us/img209/3974/debiancu6.png[/img][/url]
[url=http://userbars.org][img]http://img89.imageshack.us/img89/6861/bashqm1.png[/img][/url]

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
To nie jest tylko forum, to nasza mała ojczyzna ;-)

[ Generated in 0.013 seconds, 11 queries executed ]

Informacje debugowania

Time (s) Query
0.00013 SET CHARSET latin2
0.00007 SET NAMES latin2
0.00168 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.149.254.229' WHERE u.id=1
0.00156 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.149.254.229', 1738396526)
0.00096 SELECT * FROM punbb_online WHERE logged<1738396226
0.00116 SELECT topic_id FROM punbb_posts WHERE id=35141
0.00175 SELECT id FROM punbb_posts WHERE topic_id=4393 ORDER BY posted
0.00090 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=4393 AND t.moved_to IS NULL
0.00008 SELECT search_for, replace_with FROM punbb_censoring
0.00121 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=4393 ORDER BY p.id LIMIT 0,25
0.00106 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=4393
Total query time: 0.01056 s