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

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

            Bug ID: 281243
           Summary: net/l2tpd: Fails to build with GCC 14: error: implicit
                    declaration of function 'kill'
                    [-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/l2tpd-0.69
                    _12.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.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<phase=
: build          >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D env: NO_DEPENDS=3Dyes USER=3Droot UID=3D0 GID=3D0
=3D=3D=3D>  Building for l2tpd-0.69_12
gcc14  -O2 -pipe  -fcommon -fstack-protector-strong
-Wl,-rpath=3D/usr/local/lib/gcc14 -fno-strict-aliasing  -DDEBUG_PPPD
-DDEBUG_CONTROL -DDEBUG_ENTROPY -Wall -DSANITY -DFREEBSD
-DPREFIX=3D\"/usr/local\" -O -c l2tpd.c -o l2tpd.o
In file included from l2tp.h:31,
                 from l2tpd.c:40:
misc.h:67:13: warning: conflicting types for built-in function 'log'; expec=
ted
'double(double)' [-Wbuiltin-declaration-mismatch]
   67 | extern void log (int level, const char *fmt, ...);
      |             ^~~
misc.h:1:1: note: 'log' is declared in header '<math.h>'
  +++ |+#include <math.h>
    1 | /*
l2tpd.c: In function 'start_pppd':
l2tpd.c:274:11: warning: variable 'str' set but not used
[-Wunused-but-set-variable]
  274 |     char *str;
      |           ^~~
l2tpd.c: In function 'lac_hangup':
l2tpd.c:651:17: error: implicit declaration of function 'kill'
[-Wimplicit-function-declaration]
  651 |                 kill (tmp->pppd, SIGTERM);
      |                 ^~~~
l2tpd.c: In function 'daemonize':
l2tpd.c:986:11: warning: variable 'l' set but not used
[-Wunused-but-set-variable]
  986 |     int i,l;
      |           ^
misc.h: At top level:
misc.h:71:20: warning: inline function 'swaps' declared but never defined
   71 | extern inline void swaps (void *, int);
      |                    ^~~~~
*** Error code 1

Stop.
make: stopped in /wrkdirs/usr/ports/net/l2tpd/work/l2tpd-0.69
*** Error code 1

Full log:
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-29=
_19h57m48s/logs/errors/l2tpd-0.69_12.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-281243-7788>