xHarbour-org / xharbour

xHarbour is a portable implementation of the Clipper/xBase language (Compiler & complete Run-time libraries). It's practically 100% backward compatible with CA-Clipper 5.2e and 5.3c, and offers many modern language extensions, and extensive Run-time libraries.
http://www.xharbour.org
GNU General Public License v2.0
39 stars 18 forks source link

I cannot build it on Linux #81

Open marwin1991 opened 3 months ago

marwin1991 commented 3 months ago
make[4]: Entering directory '/home/pz2/repo/xharbour/source/rtl/zlib/linux/gcc'
gcc -I. -I../../include -I../../../../../include -DHB_OS_LINUX -Wall -W -DHB_NO_DV_MEMCPY -fPIC -DMEMCPY_64BIT -DHB_GT_LIB=trm -I../.. -DHB_FM_STATISTICS_OFF -O3 -fPIC -c ../../gzlib.c -ogzlib.o
../../gzlib.c: In function ‘gz_open’:
../../gzlib.c:25:17: error: implicit declaration of function ‘lseek’; did you mean ‘fseek’? [-Wimplicit-function-declaration]
   25 | #  define LSEEK lseek
      |                 ^~~~~
../../gzlib.c:258:9: note: in expansion of macro ‘LSEEK’
  258 |         LSEEK(state->fd, 0, SEEK_END);  /* so gzoffset() is correct */
      |         ^~~~~
make[4]: [../../../../../config/rules.cf:63: gzlib.o] Error 1 (ignored)
gcc -I. -I../../include -I../../../../../include -DHB_OS_LINUX -Wall -W -DHB_NO_DV_MEMCPY -fPIC -DMEMCPY_64BIT -DHB_GT_LIB=trm -I../.. -DHB_FM_STATISTICS_OFF -O3 -fPIC -c ../../gzwrite.c -ogzwrite.o
../../gzwrite.c: In function ‘gz_comp’:
../../gzwrite.c:93:20: error: implicit declaration of function ‘write’; did you mean ‘fwrite’? [-Wimplicit-function-declaration]
   93 |             writ = write(state->fd, strm->next_in, put);
      |                    ^~~~~
      |                    fwrite
../../gzwrite.c: In function ‘gzclose_w’:
../../gzwrite.c:638:9: error: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
  638 |     if (close(state->fd) == -1)
      |         ^~~~~
      |         pclose
make[4]: [../../../../../config/rules.cf:63: gzwrite.o] Error 1 (ignored)
gcc -I. -I../../include -I../../../../../include -DHB_OS_LINUX -Wall -W -DHB_NO_DV_MEMCPY -fPIC -DMEMCPY_64BIT -DHB_GT_LIB=trm -I../.. -DHB_FM_STATISTICS_OFF -O3 -fPIC -c ../../gzread.c -ogzread.o
../../gzread.c: In function ‘gz_load’:
../../gzread.c:38:15: error: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration]
   38 |         ret = read(state->fd, buf + *have, get);
      |               ^~~~
      |               fread
../../gzread.c: In function ‘gzclose_r’:
../../gzread.c:629:11: error: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
  629 |     ret = close(state->fd);
      |           ^~~~~
      |           pclose