[Dovecot] Compilation of 1.1.6 fails on HP-UX 11.31

Marc Beyer djhumbucker at tirwhan.org
Thu Nov 6 17:32:39 EET 2008


Hi,

$ uname -srv
HP-UX B.11.31 U
$ cc --version
cc: HP C/aC++ B3910B A.06.20 [May 13 2008]

Compilation fails, output of configure and make are given below. The
cause of this is almost certainly that this version of HP-UX does define
the QCMD macro in sys/quota.h (checked in the ifdef line 26
dovecot-1.1.6/src/plugins/quota/quota-fs.h) as well as the dqblk struct,
but the latter with different fields than the Linux version. Older
versions of HP-UX seem not to have contained this macro(? can't check
this at the moment), which is probably why it was used to distinguish
between HP-UX and Linux in quota-fs.h.

Deleting lines 26-28 and 30 from
dovecot-1.1.6/src/plugins/quota/quota-fs.h fixes the problem for HP-UX,
but of course a real fix would need to add a more current method of
distinguishing between Linux and HP-UX.

If there's any more helfpul information you'd like let me know,

cheers,

Marc

configure:
...
Install prefix ...................... : /opt/dovecot-1.1.16
File offsets ........................ : 64bit
I/O loop method ..................... : poll
File change notification method ..... : none
Building with SSL support ........... : yes (OpenSSL)
Building with IPv6 support .......... : yes
Building with pop3 server ........... : yes
Building with mail delivery agent  .. : yes
Building with GSSAPI support ........ : no
Building with user database modules . : static prefetch passwd passwd-file
Building with password lookup modules : passwd passwd-file pam checkpassword
Building with SQL drivers ............:

make:
...
        source='quota-fs.c' object='quota-fs.lo' libtool=yes \
        DEPDIR=.deps depmode=hp2 /bin/sh ../../../depcomp \
        /bin/sh ../../../libtool --tag=CC    --mode=compile cc
-DHAVE_CONFIG_H -I. -I../../..   -I../../../src/lib
-I../../../src/lib-dict  -I../../../src/lib-index
-I../../../src/lib-mail  -I../../../src/lib-storage
-I../../../src/lib-storage/index
-I../../../src/lib-storage/index/maildir -I/opt/openssl/include  -g
-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED  -c -o quota-fs.lo quota-fs.c
 cc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib
-I../../../src/lib-dict -I../../../src/lib-index -I../../../src/lib-mail
-I../../../src/lib-storage -I../../../src/lib-storage/index
-I../../../src/lib-storage/index/maildir -I/opt/openssl/include -g
-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -c +Maked quota-fs.c  -DPIC -o
.libs/quota-fs.o
"quota-fs.c", line 469: error #2136: struct "dqblk" has no field
          "dqb_curinodes"
                        *value_r = dqblk.dqb_curinodes;
                                         ^

"quota-fs.c", line 470: error #2136: struct "dqblk" has no field
          "dqb_isoftlimit"
                        *limit_r = dqblk.dqb_isoftlimit;
                                         ^

2 errors detected in the compilation of "quota-fs.c".
*** Error exit code 1



More information about the dovecot mailing list