Sergey Poznyakoff wrote:
>> mbox2dir.c: In function `mkhier':
>> mbox2dir.c:420: error: `O_DIRECTORY' undeclared (first use in this
>> function)
> Please try the attached simple patch. It should
> make mbox2dir compile. Whether the tool will
> work as intended, I can't tell for sure. Try
> running it manually (see the initial comment for
> the usage tips) to see if it works. If so, run
> make check. Let me know if you encounter any
> further problems.
>> Perhaps I missed a dependency
> No, you didn't. The problem is that O_DIRECTORY
> flag is not defined on older systems.
>> At the moment, I am trying to to use decodemail
>> and mailutils 2047, so if I can avoid the
>> problem by using an older version that provides
>> both those features, I'd be grateful for a
>> pointer to the right version.
> Mbox2dir is an auxiliary tool used only by the
> mailutils testsuite (make check). It is not
> needed outside of it. Nevertheless, I would
> suggest trying to fix it as described and
> running tests, just to be sure everything works
> as expected.
Sergey:
Thanks for that patch. I was able to build
mailutils semi-successfully, but it required
some additional goofing around:
1. mbox2dir.c calls undefined mkdirat(). I
replaced the entire test with (1) to allow the
build to continue.
2. Many errors in ldap.c, avoided by
--without-ldap.
3. A couple of errors in ndbm.c, avoided by
--without-dbm
4. Errors in mh_init.c, avoided by
--disable-build-mh.
5. maildir.c also uses O_DIRECTORY. I added the
same lines as were in the patch you sent for
mbox2dir.c.
maildir.c also calls undefined mkdirat() and
linkat(). I replaced each of the tests in
which those calls appeared with (1) to allow
the build to continue.
6. Test 471 failed.
I've included snippets of the messages below. If
you consider these items worthy of attention and
you want more complete logs, please let me know.
I didn't try building the servers because I didn't
need them.
Best regards,
--Neil Ormos
################################################################################
11111111111111111111
CC mbox2dir.o
mbox2dir.c: In function `maildir_init_dir':
mbox2dir.c:223: warning: implicit declaration of function `mkdirat'
CCLD mbox2dir
Undefined first referenced
symbol in file
mkdirat mbox2dir.o
ld: fatal: Symbol referencing errors. No output written to mbox2dir
################################################################################
22222222222222222222
ldap.c: In function `_mu_conn_setup':
ldap.c:169: warning: implicit declaration of function `ber_set_option'
ldap.c:169: error: `LBER_OPT_DEBUG_LEVEL' undeclared (first use in this
function)
ldap.c:169: error: (Each undeclared identifier is reported only once
ldap.c:169: error: for each function it appears in.)
ldap.c:170: error: `LBER_OPT_SUCCESS' undeclared (first use in this function)
ldap.c:173: error: `LDAP_OPT_DEBUG_LEVEL' undeclared (first use in this
function)
ldap.c:174: error: `LDAP_OPT_SUCCESS' undeclared (first use in this function)
ldap.c:182: error: `LDAP_URL_SUCCESS' undeclared (first use in this function)
ldap.c:203: warning: implicit declaration of function `ldap_dn2domain'
ldap.c:210: warning: implicit declaration of function `ldap_domain2hostlist'
ldap.c:240: error: structure has no member named `lud_scheme'
ldap.c:252: warning: implicit declaration of function `ber_memfree'
ldap.c:266: warning: implicit declaration of function `ldap_url_desc2str'
ldap.c:266: warning: assignment makes pointer from integer without a cast
ldap.c:275: error: structure has no member named `lud_next'
ldap.c:277: error: structure has no member named `lud_next'
ldap.c:296: warning: implicit declaration of function `ber_memvfree'
ldap.c:302: warning: implicit declaration of function `ldap_initialize'
ldap.c:317: warning: implicit declaration of function `ldap_start_tls_s'
ldap.c:322: error: `LDAP_OPT_DIAGNOSTIC_MESSAGE' undeclared (first use in this
function)
ldap.c: In function `_mu_entry_to_auth_data':
ldap.c:537: warning: implicit declaration of function `ldap_get_dn_ber'
ldap.c: In function `mu_auth_ldap_user_by_uid':
ldap.c:907: warning: unsigned int format, long int arg (arg 4)
################################################################################
33333333333333333333
ndbm.c:63:4: #error "neither dbm_pagfno nor dbm_dirfno available"
ndbm.c:72:4: #error "neither dbm_pagfno nor dbm_dirfno available"
################################################################################
44444444444444444444
mh_init.c: In function `mh_width':
mh_init.c:1140: error: storage size of 'ws' isn't known
mh_init.c:1142: error: `TIOCGWINSZ' undeclared (first use in this function)
mh_init.c:1142: error: (Each undeclared identifier is reported only once
mh_init.c:1142: error: for each function it appears in.)
mh_init.c:1140: warning: unused variable `ws'
################################################################################
55555555555555555555
CC maildir.lo
maildir.c: In function `maildir_open':
maildir.c:498: error: `O_DIRECTORY' undeclared (first use in this function)
maildir.c:498: error: (Each undeclared identifier is reported only once
maildir.c:498: error: for each function it appears in.)
maildir.c: In function `maildir_subdir_open':
maildir.c:535: error: `O_DIRECTORY' undeclared (first use in this function)
maildir.c:541: warning: implicit declaration of function `mkdirat'
maildir.c: In function `maildir_msg_finish_delivery':
maildir.c:1443: warning: implicit declaration of function `linkat'
make[4]: *** [maildir.lo] Error 1
################################################################################
66666666666666666666
testsuite: 471 failed
################################################################################