Re: cyrus compilation problem
I think you should try, Simon Matter's RPMS, they are working great for me, I'm using rh73 here, but I think they should work on mdk also. Good Luck, Fernando Garcia escreveu: hi all, please, I'm trying to install cyrus and having the error: ---snip--- cyrusdb_db3.c: In function `mycommit': cyrusdb_db3.c:860: `DB_TXN' undeclared (first use in this function) cyrusdb_db3.c:860: `t' undeclared (first use in this function) cyrusdb_db3.c:860: parse error before ')' token cyrusdb_db3.c:877: warning: format argument is not a pointer (arg 3) cyrusdb_db3.c: In function `commit_nosync': cyrusdb_db3.c:892: `DB_TXN_NOSYNC' undeclared (first use in this function) cyrusdb_db3.c: In function `abort_txn': cyrusdb_db3.c:899: `DB_TXN' undeclared (first use in this function) cyrusdb_db3.c:899: `t' undeclared (first use in this function) cyrusdb_db3.c:899: parse error before ')' token cyrusdb_db3.c:909: warning: format argument is not a pointer (arg 3) make[1]: ** [cyrusdb_db3.o] Erro 1 make[1]: Saindo do diretório `/home/fernando/cyrus/cyrus-imapd-2.1.10/lib' make: ** [all] Erro 1 ---snip--- I'm using cyrus-imap-2.1.10, cyrus-sasl-2.1.9 and db-4.1.24 on a clean mandrake 9 installation. I saw in config.log from cyrus-imap directory this error: ---snip--- configure:1214: gcc -o conftest -g -O2 -I/usr/include/et conftest.c -lcposix 15 /usr/bin/ld: cannot find -lcposix collect2: ld returned 1 exit status configure: failed program was: #line 1203 configure #include confdefs.h /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strerror(); ---snip--- configure:1458: gcc -o conftest -g -O2 -I/usr/include/et -R /usr/lib conftest.c 15 gcc: unrecognized option `-R' /usr/lib: file not recognized: Is a directory collect2: ld returned 1 exit status configure: failed program was: #line 1451 configure #include confdefs.h ---snip--- configure:1671: gcc -o conftest -Wall -g -O2 -I/usr/include/et -L/usr/local/lib -Wl,-rpath,/usr/loc al/lib conftest.c -ldir 15 /usr/bin/ld: cannot find -ldir collect2: ld returned 1 exit status configure: failed program was: #line 1660 configure #include confdefs.h ---snip--- configure:2003: gcc -o conftest -Wall -g -O2 -I/usr/include/et -L/usr/local/lib -Wl,-rpath,/usr/loc al/lib conftest.c -ldb-4.1 15 /usr/bin/ld: cannot find -ldb-4.1 collect2: ld returned 1 exit status configure: failed program was: #line 1992 configure #include confdefs.h ---snip--- configure:2887: gcc -E -I/usr/include/et conftest.c /dev/null 2conftest.out configure:2883:25: sys/sysnews.h: No such file or directory configure: failed program was: #line 2882 configure #include confdefs.h Please, give me any direction. It might be missing something ? I already have db2-2.4.14-6mdk, libdb3.3-3.3.11-11mdk, db1-1.85-8mdk installed. It might have some conflict ? Best Regards, Fernando -- Best Regards, Alessandro Oliveira Nuno Ferreira Cargas Internacionais Ltda. Phone: +55-11-3241-2000 Fax : +55-11-3242-9891 --- It's trivial to make fun of Microsoft products, but it takes a real man to make them work, and a god to make them do anything useful.
cyrus compilation problem
hi all, please, I'm trying to install cyrus and having the error: ---snip--- cyrusdb_db3.c: In function `mycommit': cyrusdb_db3.c:860: `DB_TXN' undeclared (first use in this function) cyrusdb_db3.c:860: `t' undeclared (first use in this function) cyrusdb_db3.c:860: parse error before ')' token cyrusdb_db3.c:877: warning: format argument is not a pointer (arg 3) cyrusdb_db3.c: In function `commit_nosync': cyrusdb_db3.c:892: `DB_TXN_NOSYNC' undeclared (first use in this function) cyrusdb_db3.c: In function `abort_txn': cyrusdb_db3.c:899: `DB_TXN' undeclared (first use in this function) cyrusdb_db3.c:899: `t' undeclared (first use in this function) cyrusdb_db3.c:899: parse error before ')' token cyrusdb_db3.c:909: warning: format argument is not a pointer (arg 3) make[1]: ** [cyrusdb_db3.o] Erro 1 make[1]: Saindo do diretório `/home/fernando/cyrus/cyrus-imapd-2.1.10/lib' make: ** [all] Erro 1 ---snip--- I'm using cyrus-imap-2.1.10, cyrus-sasl-2.1.9 and db-4.1.24 on a clean mandrake 9 installation. I saw in config.log from cyrus-imap directory this error: ---snip--- configure:1214: gcc -o conftest -g -O2 -I/usr/include/et conftest.c -lcposix 15 /usr/bin/ld: cannot find -lcposix collect2: ld returned 1 exit status configure: failed program was: #line 1203 configure #include confdefs.h /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strerror(); ---snip--- configure:1458: gcc -o conftest -g -O2 -I/usr/include/et -R /usr/lib conftest.c 15 gcc: unrecognized option `-R' /usr/lib: file not recognized: Is a directory collect2: ld returned 1 exit status configure: failed program was: #line 1451 configure #include confdefs.h ---snip--- configure:1671: gcc -o conftest -Wall -g -O2 -I/usr/include/et -L/usr/local/lib -Wl,-rpath,/usr/loc al/lib conftest.c -ldir 15 /usr/bin/ld: cannot find -ldir collect2: ld returned 1 exit status configure: failed program was: #line 1660 configure #include confdefs.h ---snip--- configure:2003: gcc -o conftest -Wall -g -O2 -I/usr/include/et -L/usr/local/lib -Wl,-rpath,/usr/loc al/lib conftest.c -ldb-4.1 15 /usr/bin/ld: cannot find -ldb-4.1 collect2: ld returned 1 exit status configure: failed program was: #line 1992 configure #include confdefs.h ---snip--- configure:2887: gcc -E -I/usr/include/et conftest.c /dev/null 2conftest.out configure:2883:25: sys/sysnews.h: No such file or directory configure: failed program was: #line 2882 configure #include confdefs.h Please, give me any direction. It might be missing something ? I already have db2-2.4.14-6mdk, libdb3.3-3.3.11-11mdk, db1-1.85-8mdk installed. It might have some conflict ? Best Regards, Fernando
Re: cyrus compilation problem
Fernando Garcia wrote: I'm using cyrus-imap-2.1.10, cyrus-sasl-2.1.9 and db-4.1.24 on a clean mandrake 9 installation. I have rpms for mandrake at http://perso.wanadoo.es/olivetti/cyrus/ I compiled my rpms against db3, which is supplied with mandrake 9 (where did you get db-4.1.24?, there's a 4.0.14 in contribs, but no 4.1.24). Anyway, if you don't want to use the rpms, here are the dependencies I have in the spec file (just feed these to urpmi): libsasl2-devel e2fsprogs-devel perl tcp_wrappers-devel libdb3.3-devel libopenssl0-devel flex bison groff = 1.15-8 krb5-devel XFree86-devel (this last one only if you don't want to compile the included makedepend). Of course libsasl2-devel won't be available in standard mandrake, since it's provided by another set of rpms, also available at the same page. Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007
Strange compilation problem
Hi list I've got a strange compilation problem with cyrus and i've got no idea how to resolve it. I found on the googe group search someone other which got the same problems as i do. http://groups.google.de/groups?q=cyrusdb_db3.c:+In+function+%60mysync%27:hl =delr=ie=UTF-8selm=8131e265.0209180627.3d3f27fb%40posting.google.comrnum =1 The error which i get is cyrusdb_db3.c cyrusdb_db3.c: In function `mysync': cyrusdb_db3.c:241: `DB_INCOMPLETE' undeclared (first use in this function) cyrusdb_db3.c:241: (Each undeclared identifier is reported only once cyrusdb_db3.c:241: for each function it appears in.) cyrusdb_db3.c: In function `myopen': cyrusdb_db3.c:350: warning: passing arg 2 of pointer to function from incompatible pointer type cyrusdb_db3.c:350: warning: passing arg 4 of pointer to function makes pointer from integer without a cast cyrusdb_db3.c:350: too few arguments to function make[1]: *** [cyrusdb_db3.o] Error 1 make[1]: Leaving directory `/home/downloads/cyrus-imapd-2.1.9/lib' make: *** [all] Error 1 Is there something wrong with the berkeley db? I compiled it from the source (BerkeleyDB.4.1) The SASL version is 2.1.9. Cyrus has the same version. It's a SUSE Linux (8.1) Box. But i head the same problem before the upgrading on the 8.0 version. Thanks for any idea. Regards Adrian Senn -- |p mbox: [EMAIL PROTECTED] _ | |g mbox: [EMAIL PROTECTED] ASCII ribbon campaign ( )| |www: http://www.senn.ch/ - against HTML email X | | http://www.cevinet.ch/vCards / \|
Re: Strange compilation problem
Adrian, Could be a wrong db.h Which version is /usr/include/db.h ? Adrian Senn wrote: Hi list I've got a strange compilation problem with cyrus and i've got no idea how to resolve it. I found on the googe group search someone other which got the same problems as i do. http://groups.google.de/groups?q=cyrusdb_db3.c:+In+function+%60mysync%27:hl =delr=ie=UTF-8selm=8131e265.0209180627.3d3f27fb%40posting.google.comrnum =1 The error which i get is cyrusdb_db3.c cyrusdb_db3.c: In function `mysync': cyrusdb_db3.c:241: `DB_INCOMPLETE' undeclared (first use in this function) cyrusdb_db3.c:241: (Each undeclared identifier is reported only once cyrusdb_db3.c:241: for each function it appears in.) cyrusdb_db3.c: In function `myopen': cyrusdb_db3.c:350: warning: passing arg 2 of pointer to function from incompatible pointer type cyrusdb_db3.c:350: warning: passing arg 4 of pointer to function makes pointer from integer without a cast cyrusdb_db3.c:350: too few arguments to function make[1]: *** [cyrusdb_db3.o] Error 1 make[1]: Leaving directory `/home/downloads/cyrus-imapd-2.1.9/lib' make: *** [all] Error 1 Is there something wrong with the berkeley db? I compiled it from the source (BerkeleyDB.4.1) The SASL version is 2.1.9. Cyrus has the same version. It's a SUSE Linux (8.1) Box. But i head the same problem before the upgrading on the 8.0 version. Thanks for any idea. Regards Adrian Senn -- |p mbox: [EMAIL PROTECTED] _ | |g mbox: [EMAIL PROTECTED] ASCII ribbon campaign ( )| |www: http://www.senn.ch/ - against HTML email X | | http://www.cevinet.ch/vCards / \|
Re: Strange compilation problem
On Sun, 3 Nov 2002, Adrian Senn wrote: I compiled it from the source (BerkeleyDB.4.1) The SASL version is 2.1.9. Cyrus has the same version. Cyrus 2.1.9 doesn't support Berkeley DB 4.1 Wait for 2.1.10, or use Berkeley DB 4.0 -Rob -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456 Research Systems Programmer * /usr/contributed Gatekeeper
Compilation problem...
Hi, I have problems with compilation :( gcc -c -I.. -I/usr/local/db3/include -I/usr/local/include -I/usr/local/openssl/ include -I/usr/local/cyrus/include -DHAVE_CONFIG_H -I. -I. -Wall -g -O2 \ cyrusdb_skiplist.c cyrusdb_skiplist.c: In function `getsyncfd': cyrusdb_skiplist.c:190: `O_DSYNC' undeclared (first use in this function) cyrusdb_skiplist.c:190: (Each undeclared identifier is reported only once cyrusdb_skiplist.c:190: for each function it appears in.) cyrusdb_skiplist.c: In function `dump': cyrusdb_skiplist.c:1679: warning: int format, long int arg (arg 2) cyrusdb_skiplist.c:1679: warning: int format, long int arg (arg 3) cyrusdb_skiplist.c:1682: warning: unsigned int format, u_long arg (arg 2) cyrusdb_skiplist.c:1688: warning: unsigned int format, u_long arg (arg 2) gmake[1]: *** [cyrusdb_skiplist.o] Error 1 gmake[1]: Leaving directory `/usr/tmp/install/cyrus-imapd-2.1.4/lib' gmake: *** [all] Error 1 In this line [190] we see ... O_RDWR | O_DSYNC ... O_DSYNC... That is it? I have not found description on this flag in the Berkeley DB documentation... How to correct an error? Best Regards, Sergey N. Romanov
Re: Compilation problem...
What OS are you running? I am running FreeBSD, and it doesn't support O_DSYNC. It seems that this flag ensures that writes to this fd ensure filesystem metadata is written out to disk with every write. I added a #define O_DSYNC O_FSYNC to config.h. I don't think this will hurt anything but perhaps performance (if it is in fact necessary). I have seen references that O_FSYNC may even be a no-op on FreeBSD. Tim - Original Message - From: Sergey N. Romanov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 04, 2002 12:29 PM Subject: Compilation problem... Hi, I have problems with compilation :( gcc -c -I.. -I/usr/local/db3/include -I/usr/local/include -I/usr/local/openssl/ include -I/usr/local/cyrus/include -DHAVE_CONFIG_H -I. -I. -Wall -g -O2 \ cyrusdb_skiplist.c cyrusdb_skiplist.c: In function `getsyncfd': cyrusdb_skiplist.c:190: `O_DSYNC' undeclared (first use in this function) cyrusdb_skiplist.c:190: (Each undeclared identifier is reported only once cyrusdb_skiplist.c:190: for each function it appears in.) cyrusdb_skiplist.c: In function `dump': cyrusdb_skiplist.c:1679: warning: int format, long int arg (arg 2) cyrusdb_skiplist.c:1679: warning: int format, long int arg (arg 3) cyrusdb_skiplist.c:1682: warning: unsigned int format, u_long arg (arg 2) cyrusdb_skiplist.c:1688: warning: unsigned int format, u_long arg (arg 2) gmake[1]: *** [cyrusdb_skiplist.o] Error 1 gmake[1]: Leaving directory `/usr/tmp/install/cyrus-imapd-2.1.4/lib' gmake: *** [all] Error 1 In this line [190] we see ... O_RDWR | O_DSYNC ... O_DSYNC... That is it? I have not found description on this flag in the Berkeley DB documentation... How to correct an error? Best Regards, Sergey N. Romanov
imapd and kerberosv4 compilation problem
hello I'm working on solaris 8. I compiled kth-krb4, vers 1.0.9, everything was ok. I tried to compile imapd with krb option : configure --with-auth=krb --with-krb=/usr/athena this worked fine but the the compilation (make all) crashed with this error : gcc -L/usr/local/lib -R/usr/local/lib -L/usr/athena/lib -L/usr/local/ssl/l ib -g -O2 -o imapd \ ../master/service.o pushstats.o imapd.o index.o tls.o libimap.a ../acap/libacap.a ./lib/libcyrus.a -lsasl -lkrb -lresolv -lfl -ldb -ldes -lssl -lcrypto -l resolv -lsocket -lnsl ../et/libcom_err.a ../lib/libcyrus.a(auth_krb.o): In function `auth_memberof': /var/mail/cyrus-imapd-2.0.16/lib/auth_krb.c:116: undefined reference to `kname_parse' ../lib/libcyrus.a(auth_krb.o): In function `auth_map_krbid': /var/mail/cyrus-imapd-2.0.16/lib/auth_krb.c:197: undefined reference to `kname_parse' /var/mail/cyrus-imapd-2.0.16/lib/auth_krb.c:207: undefined reference to `kname_parse' /var/mail/cyrus-imapd-2.0.16/lib/auth_krb.c:217: undefined reference to `krb_get_lrealm' /var/mail/cyrus-imapd-2.0.16/lib/auth_krb.c:221: undefined reference to `krb_get_krbhst' ../lib/libcyrus.a(auth_krb.o): In function `auth_canonifyid': /var/mail/cyrus-imapd-2.0.16/lib/auth_krb.c:269: undefined reference to `kname_parse' /var/mail/cyrus-imapd-2.0.16/lib/auth_krb.c:279: undefined reference to `krb_get_lrealm' /var/mail/cyrus-imapd-2.0.16/lib/auth_krb.c:283: undefined reference to `krb_get_krbhst' ../lib/libcyrus.a(auth_krb.o): In function `auth_newstate': /var/mail/cyrus-imapd-2.0.16/lib/auth_krb.c:326: undefined reference to `kname_parse' collect2: ld returned 1 exit status make[1]: *** [imapd] Error 1 make[1]: Leaving directory `/var/mail/cyrus-imapd-2.0.16/imap' make: *** [all] Error 1 help please .