Bug 281249 - www/kannel: Fails to build with GCC 14: error: implicit declaration of function 'execvp' [-Wimplicit-function-declaration]
Summary: www/kannel: Fails to build with GCC 14: error: implicit declaration of functi...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Lorenzo Salvadore
URL: https://pkg-status.freebsd.org/gohan0...
Keywords:
Depends on:
Blocks: 281091
  Show dependency treegraph
 
Reported: 2024-09-03 14:06 UTC by Lorenzo Salvadore
Modified: 2024-09-05 15:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Salvadore freebsd_committer freebsd_triage 2024-09-03 14:06:50 UTC
Build fails with GCC 14. This blocks GCC_DEFAULT update to GCC 14.

gcc14 -D_REENTRANT=1 -I. -Igw -O2 -pipe  -fcommon -DLIBICONV_PLUG -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc14 -fno-strict-aliasing  -pthread -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/include/openssl -o gw/shared.o -c gw/shared.c
gw/shared.c: In function 'restart_box':
gw/shared.c:283:16: error: implicit declaration of function 'fork' [-Wimplicit-function-declaration]
  283 |     if (!(rc = fork())) {
      |                ^~~~
gw/shared.c:289:13: error: implicit declaration of function 'execvp' [-Wimplicit-function-declaration]
  289 |         if (execvp(argv[0],argv) == -1)
      |             ^~~~~~
gmake: *** [Makefile:231: gw/shared.o] Error 1
*** Error code 1

Stop.

Full log: https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-29_19h57m48s/logs/errors/kannel-1.4.4_14,1.log

Useful link: https://gcc.gnu.org/gcc-14/porting_to.html
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-09-05 15:36:41 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3a31f9892b36452c48426c96b1ab0a1d6e22e3a2

commit 3a31f9892b36452c48426c96b1ab0a1d6e22e3a2
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2024-09-05 15:16:44 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2024-09-05 15:35:55 +0000

    www/kannel: Fix build with GCC 14

    GCC 14 has transformed some warnings into errors: revert them to simple
    warnings.

    PR:             281249
    Reported by:    exp-run (antoine)

 www/kannel/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)