8000 prel gcc14 doio.c:218:9: error: implicit declaration of function 'dup3'; did you mean 'dup2'? [-Wimplicit-function-declaration] · Issue #25166 · openwrt/packages · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

prel gcc14 doio.c:218:9: error: implicit declaration of function 'dup3'; did you mean 'dup2'? [-Wimplicit-function-declaration] #25166

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

Open
joyplayer opened this issue Oct 19, 2024 · 6 comments

Comments

@joyplayer
Copy link

doio.c: In function 'Perl_PerlLIO_dup2_cloexec':
doio.c:218:9: error: implicit declaration of function 'dup3'; did you mean 'dup2'? [-Wimplicit-function-declaration]
218 | dup3(oldfd, newfd, O_CLOEXEC),
| ^~~~
doio.c:125:32: note: in definition of macro 'DO_GENOPEN_EXPERIMENTING_CLOEXEC'
125 | int res = (GENOPEN_CLOEXEC), eno;
| ^~~~~~~~~~~~~~~
doio.c:216:5: note: in expansion of macro 'DO_ONEOPEN_EXPERIMENTING_CLOEXEC'
216 | DO_ONEOPEN_EXPERIMENTING_CLOEXEC(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
doio.c: In function 'Perl_my_mkstemp_cloexec':
util.h:273:45: error: implicit declaration of function 'mkostemp'; did you mean 'mkstemp'? [-Wimplicit-function-declaration]
273 | # define Perl_my_mkostemp(templte, flags) mkostemp(templte, flags)
| ^~~~~~~~
doio.c:125:32: note: in definition of macro 'DO_GENOPEN_EXPERIMENTING_CLOEXEC'
125 | int res = (GENOPEN_CLOEXEC), eno;
| ^~~~~~~~~~~~~~~
doio.c:336:5: note: in expansion of macro 'DO_ONEOPEN_EXPERIMENTING_CLOEXEC'
336 | DO_ONEOPEN_EXPERIMENTING_CLOEXEC(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
doio.c:338:9: note: in expansion of macro 'Perl_my_mkostemp'
338 | Perl_my_mkostemp(templte, O_CLOEXEC),
| ^~~~~~~~~~~~~~~~
doio.c: In function 'Perl_PerlProc_pipe_cloexec':
doio.c:372:9: error: implicit declaration of function 'pipe2'; did you mean 'pipe'? [-Wimplicit-function-declaration]
372 | pipe2(pipefd, O_CLOEXEC),
| ^~~~~
doio.c:125:32: note: in definition of macro 'DO_GENOPEN_EXPERIMENTING_CLOEXEC'
125 | int res = (GENOPEN_CLOEXEC), eno;
| ^~~~~~~~~~~~~~~
doio.c:371:5: note: in expansion of macro 'DO_PIPEOPEN_EXPERIMENTING_CLOEXEC'
371 | DO_PIPEOPEN_EXPERIMENTING_CLOEXEC(PL_strategy_pipe, pipefd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
doio.c: In function 'Perl_PerlSock_accept_cloexec':
doio.c:408:9: error: implicit declaration of function 'accept4'; did you mean 'accept'? [-Wimplicit-function-declaration]
408 | accept4(listenfd, addr, addrlen, SOCK_CLOEXEC),
| ^~~~~~~
doio.c:125:32: note: in definition of macro 'DO_GENOPEN_EXPERIMENTING_CLOEXEC'
125 | int res = (GENOPEN_CLOEXEC), eno;
| ^~~~~~~~~~~~~~~
doio.c:406:5: note: in expansion of macro 'DO_ONEOPEN_EXPERIMENTING_CLOEXEC'
406 | DO_ONEOPEN_EXPERIMENTING_CLOEXEC(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [makefile:266: doio.o] Error 1

@joyplayer
Copy link
Author

perl.tar.gz
test it

@neheb
Copy link
Contributor
neheb commented Oct 27, 2024

ea8e6fb is not enough?

@catsimple
Copy link
make[5]: Leaving directory '/home/catsimple/openwrt/build_dir/target-x86_64_glibc/perl/perl-5.40.0'
Updating makefile...
make[4]: Leaving directory '/home/catsimple/openwrt/build_dir/target-x86_64_glibc/perl/perl-5.40.0'
make  -C /home/catsimple/openwrt/build_dir/target-x86_64_glibc/perl/perl-5.40.0
make[4]: Entering directory '/home/catsimple/openwrt/build_dir/target-x86_64_glibc/perl/perl-5.40.0'
x86_64-openwrt-linux-gnu-gcc -c -DPERL_CORE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -fno-caller-saves -fno-plt -fhonour-copts -I/home/catsimple/openwrt/staging_dir/toolchain-x86_64_gcc-14.2.0_glibc/usr/include -I/home/catsimple/openwrt/staging_dir/toolchain-x86_64_gcc-14.2.0_glibc/include -O2 -Wall -Werror=pointer-arith -Werror=vla -Wextra -Wno-long-long -Wno-declaration-after-statement -Wc++-compat -Wwrite-strings -fPIC doio.c
doio.c: In function 'Perl_PerlLIO_dup2_cloexec':
doio.c:218:9: error: implicit declaration of function 'dup3'; did you mean 'dup2'? [-Wimplicit-function-declaration]
  218 |         dup3(oldfd, newfd, O_CLOEXEC),
      |         ^~~~
doio.c:125:32: note: in definition of macro 'DO_GENOPEN_EXPERIMENTING_CLOEXEC'
  125 |                     int res = (GENOPEN_CLOEXEC), eno; \
      |                                ^~~~~~~~~~~~~~~
doio.c:216:5: note: in expansion of macro 'DO_ONEOPEN_EXPERIMENTING_CLOEXEC'
  216 |     DO_ONEOPEN_EXPERIMENTING_CLOEXEC(
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
doio.c: In function 'Perl_my_mkstemp_cloexec':
util.h:275:45: error: implicit declaration of function 'mkostemp'; did you mean 'mkstemp'? [-Wimplicit-function-declaration]
  275 | #   define Perl_my_mkostemp(templte, flags) mkostemp(templte, flags)
      |                                             ^~~~~~~~
doio.c:125:32: note: in definition of macro 'DO_GENOPEN_EXPERIMENTING_CLOEXEC'
  125 |                     int res = (GENOPEN_CLOEXEC), eno; \
      |                                ^~~~~~~~~~~~~~~
doio.c:336:5: note: in expansion of macro 'DO_ONEOPEN_EXPERIMENTING_CLOEXEC'
  336 |     DO_ONEOPEN_EXPERIMENTING_CLOEXEC(
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
doio.c:338:9: note: in expansion of macro 'Perl_my_mkostemp'
  338 |         Perl_my_mkostemp(templte, O_CLOEXEC),
      |         ^~~~~~~~~~~~~~~~
doio.c: In function 'Perl_PerlProc_pipe_cloexec':
doio.c:372:9: error: implicit declaration of function 'pipe2'; did you mean 'pipe'? [-Wimplicit-function-declaration]
  372 |         pipe2(pipefd, O_CLOEXEC),
      |         ^~~~~
doio.c:125:32: note: in definition of macro 'DO_GENOPEN_EXPERIMENTING_CLOEXEC'
  125 |                     int res = (GENOPEN_CLOEXEC), eno; \
      |                                ^~~~~~~~~~~~~~~
doio.c:371:5: note: in expansion of macro 'DO_PIPEOPEN_EXPERIMENTING_CLOEXEC'
  371 |     DO_PIPEOPEN_EXPERIMENTING_CLOEXEC(PL_strategy_pipe, pipefd,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
doio.c: In function 'Perl_PerlSock_accept_cloexec':
doio.c:408:9: error: implicit declaration of function 'accept4'; did you mean 'accept'? [-Wimplicit-function-declaration]
  408 |         accept4(listenfd, addr, addrlen, SOCK_CLOEXEC),
      |         ^~~~~~~
doio.c:125:32: note: in definition of macro 'DO_GENOPEN_EXPERIMENTING_CLOEX
8000
EC'
  125 |                     int res = (GENOPEN_CLOEXEC), eno; \
      |                                ^~~~~~~~~~~~~~~
doio.c:406:5: note: in expansion of macro 'DO_ONEOPEN_EXPERIMENTING_CLOEXEC'
  406 |     DO_ONEOPEN_EXPERIMENTING_CLOEXEC(
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [makefile:266: doio.o] Error 1
make[4]: Leaving directory '/home/catsimple/openwrt/build_dir/target-x86_64_glibc/perl/perl-5.40.0'
make[3]: *** [Makefile:151: /home/catsimple/openwrt/build_dir/target-x86_64_glibc/perl/perl-5.40.0/.built] Error 2
make[3]: Leaving directory '/home/catsimple/openwrt/feeds/packages/lang/perl'
time: package/feeds/packages/perl/compile#5.24#5.04#9.99
    ERROR: package/feeds/packages/perl failed to build.

@rockdrilla
Copy link
Contributor
rockdrilla commented Apr 29, 2025

@neheb still hitting this problem. maybe bump perl to 5.40.2 and then refresh patches?

@neheb
Copy link
Contributor
neheb commented Apr 29, 2025

make package/perl/{clean,compile}

@yingziwu
Copy link
yingziwu commented May 1, 2025

make package/perl/{clean,compile}

still meeting the problem.

openwrt version: SNAPSHOT 2037ca29552eb8e158493c39b6922244d33334f2
target: generic x86

logs: perl.tar.gz

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

5 participants
0