Package: libbsd-dev
Version: 0.10.0-1
Severity: important

Hello,

On kfreebsd, FTBFS because of the libbsd overlay:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../dix -I../include 
-I../../../../include -Wdate-time -D_FORTIFY_SOURCE=2 -DPRE_RELEASE=0 
-DLIBBSD_OVERLAY -isystem /usr/include/bsd -DHAVE_DIX_CONFIG_H -Wall 
-Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes 
-Wmissing-prototypes -Wnested-externs -Wbad-function-cast 
-Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized 
-Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls 
-Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main 
-Werror=missing-braces -Werror=sequence-point -Werror=return-type 
-Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address 
-Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing 
-fno-strict-aliasing -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN 
-DHAS_STICKY_DIR_BIT -I/usr/include/libdrm -I/usr/include/pixman-1 
-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/X11/dri 
-I../../../../include -I../include -I../../../../Xext -I../../../../composite 
-I../../../../damageext -I../../../../xfixes -I../../../../Xi -I../../../../mi 
-I../../../../miext/sync -I../../../../miext/shadow -I../../../../miext/damage 
-I../../../../render -I../../../../randr -I../../../../fb -I../../../../dbe 
-I../../../../present -fvisibility=hidden -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -pthread -c ../../../../dix/colormap.c  -fPIC -DPIC -o 
.libs/colormap.o
In file included from ../../../../include/os.h:58,
                 from ../../../../include/misc.h:117,
                 from ../../../../dix/atom.c:55:
/usr/include/bsd/stdlib.h:30:25: error: no include path in which to search for 
stdlib.h
   30 | #include_next <stdlib.h>
      |                         ^
In file included from ../../../../include/os.h:61,
                 from ../../../../include/misc.h:117,
                 from ../../../../dix/atom.c:55:
/usr/include/bsd/string.h:28:25: error: no include path in which to search for 
string.h
   28 | #include_next <string.h>
      |                         ^
In file included from ../../../../include/os.h:58,
                 from ../../../../include/misc.h:117,
                 from ../../../../dix/colormap.c:56:
/usr/include/bsd/stdlib.h:30:25: error: no include path in which to search for 
stdlib.h
   30 | #include_next <stdlib.h>
      |                         ^
In file included from ../../../../include/os.h:61,
                 from ../../../../include/misc.h:117,
                 from ../../../../dix/colormap.c:56:
/usr/include/bsd/string.h:28:25: error: no include path in which to search for 
string.h
   28 | #include_next <string.h>
      |                         ^

https://buildd.debian.org/status/fetch.php?pkg=xorg-server&arch=kfreebsd-amd64&ver=2%3A1.20.9-2&stamp=1606590993&raw=0

Removing CFLAGS added by the pkg-config libbsd-overlay file, fixes the
build but getpeereid() is not detected or used anymore

I can reproduce this with a manually built version of 0.11.3-1 too

Kind regards,
Laurent Bigonville

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_BE:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Permissive - Policy name: refpolicy

Versions of packages libbsd-dev depends on:
ii  libbsd0    0.11.3-1
pn  libmd-dev  <none>

libbsd-dev recommends no packages.

libbsd-dev suggests no packages.

Reply via email to