kiwix / kiwix-xulrunner

[ARCHIVED] Legacy Kiwix desktop solution for Windows/macOS/Linux
https://download.kiwix.org/release/kiwix-xulrunner/
GNU General Public License v3.0
111 stars 28 forks source link

GNU/Linux static compile fails at e2fsprogs-1.42/lib/quota unknown type names qid_t, qsize_t #480

Closed Larivact closed 5 years ago

Larivact commented 7 years ago

Steps to reproduce:

git clone https://github.com/kiwix/kiwix.git
cd kiwix
./autogen.sh
./configure --enable-compileall --enable-staticbins --disable-android
cd src/dependencies
make
In file included from dqblk_v2.h:11:0,
                 from quotaio.h:16,
                 from mkquota.c:22:
quotaio_tree.h: At top level:
quotaio_tree.h:55:56: error: unknown type name ‘qid_t’
 struct dquot *qtree_read_dquot(struct quota_handle *h, qid_t id);
                                                        ^~~~~
In file included from mkquota.c:22:0:
quotaio.h:82:2: error: unknown type name ‘qsize_t’
  qsize_t dqb_ihardlimit;
  ^~~~~~~
quotaio.h:83:2: error: unknown type name ‘qsize_t’
  qsize_t dqb_isoftlimit;
  ^~~~~~~
quotaio.h:84:2: error: unknown type name ‘qsize_t’
  qsize_t dqb_curinodes;
  ^~~~~~~
quotaio.h:85:2: error: unknown type name ‘qsize_t’
  qsize_t dqb_bhardlimit;
  ^~~~~~~
quotaio.h:86:2: error: unknown type name ‘qsize_t’
  qsize_t dqb_bsoftlimit;
  ^~~~~~~
quotaio.h:87:2: error: unknown type name ‘qsize_t’
  qsize_t dqb_curspace;
  ^~~~~~~
quotaio.h:98:2: error: unknown type name ‘qid_t’
  qid_t dq_id;  /* ID dquot belongs to */
  ^~~~~
quotaio.h:117:55: error: unknown type name ‘qid_t’
  struct dquot *(*read_dquot) (struct quota_handle *h, qid_t id);
                                                       ^~~~~
In file included from mkquota.c:23:0:
quotaio_v2.h:75:2: error: unknown type name ‘qsize_t’
  qsize_t dqb_curspace;
  ^~~~~~~
In file included from mkquota.c:25:0:
mkquota.h:50:3: error: unknown type name ‘qsize_t’
   qsize_t space);
   ^~~~~~~
mkquota.h:52:3: error: unknown type name ‘qsize_t’
   qsize_t space);
   ^~~~~~~
mkquota.c: In function ‘quota_is_on’:
mkquota.c:55:2: error: unknown type name ‘qid_t’
  qid_t id = (type == USRQUOTA) ? getuid() : getgid();
  ^~~~~
mkquota.c: At top level:
mkquota.c:208:15: error: unknown type name ‘qid_t’
 static inline qid_t get_qid(struct ext2_inode *inode, int qtype)
               ^~~~~
mkquota.c:305:7: error: unknown type name ‘qsize_t’
       qsize_t space)
       ^~~~~~~
mkquota.c:331:7: error: unknown type name ‘qsize_t’
       qsize_t space)
       ^~~~~~~
mkquota.c: In function ‘quota_compute_usage’:
mkquota.c:383:2: error: unknown type name ‘qsize_t’
  qsize_t space;
  ^~~~~~~
mkquota.c:407:4: warning: implicit declaration of function ‘quota_data_add’ [-Wimplicit-function-declaration]
    quota_data_add(qctx, &inode, ino, space);
    ^~~~~~~~~~~~~~
make[2]: *** [Makefile:315: mkquota.o] Error 1
make[2]: Leaving directory '/home/larivact/kiwix/src/dependencies/e2fsprogs-1.42/lib/quota'
make[1]: *** [Makefile:343: all-libs-recursive] Error 1
make[1]: Leaving directory '/home/larivact/kiwix/src/dependencies/e2fsprogs-1.42'
zip 3.0-7
pkg-config 0.29.1-2
file 5.30-1
libtool 2.4.6-7
gcc 6.3.1-2
kelson42 commented 5 years ago

Kiwix Dekstop 1.0 has been deprecated. New Kiwix Desktop is in repo Kiwix-Desktop. This won't be fixed.