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!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
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:
./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:
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.
Offline
Ja cyrus'a kompiluje z takimi obcjami
./configure --enable-sql --enable-login --enable-plain --with-gnu-ld --with-saslauthd --with-mysql --with-pam
aby wszystko dzialo i sie kompilowalo
apt-get install libdb3-dev libmysqlclient14-dev libssl-dev
co do tej czesci
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
Offline
Podczas pobierania pakietu libmysqlclient14 wyskakuje mi taki bląd a cyrus dalej sie nie kompiluje..
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#
Offline
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ć?
Offline
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...
Offline
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:
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 ?
Offline
Time (s) | Query |
---|---|
0.00014 | SET CHARSET latin2 |
0.00007 | SET NAMES latin2 |
0.00134 | 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.128.31.184' WHERE u.id=1 |
0.00073 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.128.31.184', 1738396866) |
0.00082 | SELECT * FROM punbb_online WHERE logged<1738396566 |
0.00078 | 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.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00289 | 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.00108 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=4393 |
Total query time: 0.0079 s |