im trying to build dwl and get this error when i run make
c99: illegal option -- p
i know there is a dwl package but i dont want to use that because dwl is something you usually compile
and the package also installs the foot terminal and bemenu-run
clone dwl with git
install required dependencies
i installed these packages following the list of dependencies from the dwl git page and the freebsd port
i copied the config.def.h to config.h
then ran make
and got this error
on the dwl port page on freshports
i noticed this
USES:
compiler:c11 gmake pkgconfig xorg
i tried using gmake but got the same error
is the error related to the compiler
when i run make i see mentions of c99 and the ports page mentions c11
anyone got any ideas what the issue could be
these are the dependencies listed on the dwl git page
libinput
wayland
wlroots (compiled with the libinput backend)
xkbcommon
wayland-protocols (compile-time only)
pkg-config (compile-time only)
and these are the dependencies listed on the dwl freebsd port
Build dependencies:
evdev-proto>0 : devel/evdev-proto
wayland-protocols>0 : graphics/wayland-protocols
gmake>=4.3 : devel/gmake
pkgconf>=1.3.0_1 : devel/pkgconf
xcb.pc : x11/libxcb
Runtime dependencies:
foot : x11/foot
bemenu-run : x11/bemenu
xcb.pc : x11/libxcb
Library dependencies:
libwayland-server.so : graphics/wayland
libwlroots.so : x11-toolkits/wlroots
libinput.so : x11/libinput
libxkbcommon.so : x11/libxkbcommon
libxcb-icccm.so : x11/xcb-util-wm
c99: illegal option -- p
i know there is a dwl package but i dont want to use that because dwl is something you usually compile
and the package also installs the foot terminal and bemenu-run
clone dwl with git
Code:
git clone https://codeberg.org/dwl/dwl.git
install required dependencies
i installed these packages following the list of dependencies from the dwl git page and the freebsd port
Code:
sudo pkg install evdev-proto wayland-protocols gmake pkgconf libxcb libinput wayland wlroots libxkbcommon xcb-util-wm
i copied the config.def.h to config.h
Code:
cp config.def.h config.h
then ran make
Code:
make
and got this error
Code:
make
c99 `pkg-config --cflags wlroots wayland-server xkbcommon libinput ` -I. -DWLR_USE_UNSTABLE -D_POSIX_C_SOURCE=200809L -DVERSION=\"`git describe --tags --dirty 2>/dev/null || echo 0.5`\" -g -pedantic -Wall -Wextra -Wdeclaration-after-statement -Wno-unused-parameter -Wshadow -Wunused-macros -Werror=strict-prototypes -Werror=implicit -Werror=return-type -Werror=incompatible-pointer-types -Wfloat-conversion -O -c dwl.c
c99: illegal option -- p
usage: c99 [-cEgs] [-D name[=value]] ... [-I directory] ... [-L directory] ...
[-o outfile] [-O optlevel] [-U name] ... operand ...
*** Error code 1
Stop.
on the dwl port page on freshports
i noticed this
USES:
compiler:c11 gmake pkgconfig xorg
i tried using gmake but got the same error
is the error related to the compiler
when i run make i see mentions of c99 and the ports page mentions c11
anyone got any ideas what the issue could be
these are the dependencies listed on the dwl git page
libinput
wayland
wlroots (compiled with the libinput backend)
xkbcommon
wayland-protocols (compile-time only)
pkg-config (compile-time only)
and these are the dependencies listed on the dwl freebsd port
Build dependencies:
evdev-proto>0 : devel/evdev-proto
wayland-protocols>0 : graphics/wayland-protocols
gmake>=4.3 : devel/gmake
pkgconf>=1.3.0_1 : devel/pkgconf
xcb.pc : x11/libxcb
Runtime dependencies:
foot : x11/foot
bemenu-run : x11/bemenu
xcb.pc : x11/libxcb
Library dependencies:
libwayland-server.so : graphics/wayland
libwlroots.so : x11-toolkits/wlroots
libinput.so : x11/libinput
libxkbcommon.so : x11/libxkbcommon
libxcb-icccm.so : x11/xcb-util-wm