Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2024 14:06:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 281249] www/kannel: Fails to build with GCC 14: error: implicit declaration of function 'execvp' [-Wimplicit-function-declaration]
Message-ID:  <bug-281249-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281249

            Bug ID: 281249
           Summary: www/kannel: Fails to build with GCC 14: error:
                    implicit declaration of function 'execvp'
                    [-Wimplicit-function-declaration]
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://pkg-status.freebsd.org/gohan04/data/140amd64-d
                    efault-foo/2024-08-29_19h57m48s/logs/errors/kannel-1.4
                    .4_14,1.log
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: salvadore@freebsd.org
            Blocks: 281091

Build fails with GCC 14. This blocks GCC_DEFAULT update to GCC 14.

gcc14 -D_REENTRANT=3D1 -I. -Igw -O2 -pipe  -fcommon -DLIBICONV_PLUG
-fstack-protector-strong -Wl,-rpath=3D/usr/local/lib/gcc14 -fno-strict-alia=
sing=20
-pthread -D_LARGE_FILES=3D -DBROKEN_PTHREADS=3D1 -I/usr/local/include/libxm=
l2
-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 =3D fork())) {
      |                ^~~~
gw/shared.c:289:13: error: implicit declaration of function 'execvp'
[-Wimplicit-function-declaration]
  289 |         if (execvp(argv[0],argv) =3D=3D -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


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281091
[Bug 281091] [exp-run] Update GCC_DEFAULT to 14 etc.
--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-281249-7788>