From: Louis G. <lgu...@be...> - 2005-07-25 22:23:55
|
didier wrote: > Pet...@id... wrote: > >> Hello all, >> I have a question about compiling netatalk v2.0.3. I have gone >> through installing the berkeley db v4.3.28 w/ encryption, open ssl, >> tcp wrappers (came with os), pam (came with os), and libiconv. The >> configure options that I used for both netatalk and berkeley db are >> included below. >> The configure part of netatalk seemed to work fine. But when I run >> make, I get errors. I have also included the errors below. Any help >> would be appreciated. >> >> Thanks! -Cheers, Peter. >> >> Configuration flags for Berkeley DB: >> ../dist/configure --with-mutex="x86/gcc-assembly" --disable-shared >> --prefix=/opt/berkeley_db >> >> Configuration flags for Netatalk: >> ./configure --enable-redhat --prefix=/opt/netatalk-2.0.3 >> --with-bdb=/opt/berkeley_db --with-ssl-dir=/usr/include/openssl >> --enable-cups --enable-krbV-uam --with-cnid-dbd-backend >> --with-cnid-dbd-txn --with-cnid-db3-backend >> Netatalk compile errors: >> cnid_index.c: In function `dbif_count': >> cnid_index.c:277: warning: passing arg 2 of pointer to function from >> incompatible pointer type >> cnid_index.c:277: too few arguments to function >> cnid_index.c: In function `dbif_env_init': >> cnid_index.c:355: `DB_VERB_CHKPOINT' undeclared (first use in this >> function) >> cnid_index.c:355: (Each undeclared identifier is reported only once > > Well it looks like we don't support Berkeley 4.3.x. :( > You need a 4.2.x version. > Hm. I've been using db4-4.3.28 on NetBSD (pkgsrc) for quite some time now... $ pkg_info |grep db4 db4-4.3.28 Berkeley DB version 4 from Sleepycat Software ... It was compiled with... CONFIGURE_ARGS=--enable-cxx --enable-rpc --enable-shared --enable-compat185 --includedir=/usr/pkg/include/db4 --program-transform-name=s,db_,db4_, --disable-java --host=i386--netbsdelf --prefix=/usr/pkg ...and I have had absolutely no problems. I've made no changes to the pkgsrc packages to make this work. However, a couple days ago I attempted to build on Linux (RedHat EL 4) using pkgsrc and had problems. But these problems were due to the fact that RedHat's package for db4 is version 4.2.x, and pkgsrc built 4.3.28. Now netatalk's configure script gets confused because it sees the headers for 4.3.x and the libraries for 4.2.x. Yuck! Anyway I got around it by beating up the configure script a little bit. I had to 's/\(db4.4.\)2/\13/g' and it worked. Luckily IMO. Seems to work, but I'm expecting maybe to have runtime errors. It seems that configure just needs to be fixed up a little and all should be well, but I don't really know enough about how to make the proper changes in this case. Louis |