Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cannot build it on Linux #81

Open
marwin1991 opened this issue Aug 15, 2024 · 0 comments
Open

I cannot build it on Linux #81

marwin1991 opened this issue Aug 15, 2024 · 0 comments

Comments

@marwin1991
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant