Airblader / i3

A fork of the i3 window manager with gaps and some other features. :warning: i3-gaps has been merged into i3.
BSD 3-Clause "New" or "Revised" License
5.88k stars 321 forks source link

Compile Fails on DragonflyBSD #285

Closed streaml1ne555 closed 5 years ago

streaml1ne555 commented 5 years ago

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

Compiling fails with the following error:

cc -Wunused-value -Wunused-value -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/cairo -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libdrm -I/usr/local/include/libpng16 -I/usr/local/include/pango-1.0 -I/usr/local/include/fribidi -D_THREAD_SAFE -I/usr/local/include/harfbuzz -I/usr/local/include/startup-notification-1.0 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -pthread -pipe -DLIBICONV_PLUG -O2 -isystem /usr/local/include -fno-strict-aliasing -Wall -o i3 src/i3-assignments.o src/i3-bindings.o src/i3-click.o src/i3-commands.o src/i3-commands_parser.o src/i3-con.o src/i3-config.o src/i3-config_directives.o src/i3-config_parser.o src/i3-display_version.o src/i3-ewmh.o src/i3-fake_outputs.o src/i3-floating.o src/i3-handlers.o src/i3-ipc.o src/i3-key_press.o src/i3-load_layout.o src/i3-log.o src/i3-main.o src/i3-manage.o src/i3-match.o src/i3-move.o src/i3-output.o src/i3-randr.o src/i3-regex.o src/i3-render.o src/i3-resize.o src/i3-restore_layout.o src/i3-scratchpad.o src/i3-sd-daemon.o src/i3-sighandler.o src/i3-startup.o src/i3-sync.o src/i3-tree.o src/i3-util.o src/i3-version.o src/i3-window.o src/i3-workspace.o src/i3-x.o src/i3-xcb.o src/i3-xcursor.o src/i3-xinerama.o ./libi3.a -L/usr/local/lib -lxcb -lxcb-xkb -lxcb-xinerama -lxcb-randr -L/usr/local/lib -lxcb-util -lxcb -L/usr/local/lib -lxcb-xrm -lxcb -L/usr/local/lib -lyajl -L/usr/local/lib -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lcairo -lpthread -L/usr/local/lib -lstartup-notification-1 -L/usr/local/lib -lxcb -lxcb-xkb -lxcb-xinerama -lxcb-randr -L/usr/local/lib -lxcb-cursor -lxcb -L/usr/local/lib -lxcb-keysyms -lxcb -L/usr/local/lib -lxcb-icccm -lxcb -L/usr/local/lib -lxcb-xrm -lxcb -L/usr/local/lib -lxkbcommon-x11 -lxkbcommon -L/usr/local/lib -lyajl -L/usr/local/lib -lpcre -L/usr/local/lib -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lcairo -lpthread -lev -lm -L/usr/local/lib src/i3-log.o:log.c:function open_logbuffer: error: undefined reference to 'posix_fallocate' collect2: error: ld returned 1 exit status gmake[3]: *** [Makefile:1583: i3] Error 1 gmake[3]: Leaving directory '/usr/obj/dports/x11-wm/i3-gaps/.build' gmake[2]: *** [Makefile:1328: all] Error 2 gmake[2]: Leaving directory '/usr/obj/dports/x11-wm/i3-gaps/.build' *** Error code 1

Expected Behavior

i3-gaps compiles cleanly on FreeBSD via the ports tree. DragonFlyBSD uses the FreeBSD ports tree as a base for their own dports with many ports compiling without modification including base i3.

Reproduction Instructions

Install DragonflyBSD 5.4.1

log in pkg install subversion cd /usr/ make dports-create-shallow cd /usr/dports/x11-wm mkdir i3-gaps cd i3-gaps svn co svn://svn.freebsd.org/ports/head/x11-wm/i3-gaps/ . make install

Airblader commented 5 years ago

Are you the maintainer of this package/port (I don't know how ports work)?

streaml1ne555 commented 5 years ago

The port doesn't currently exist on the Dragonfly side I'm trying to get it working so I can submit it to them to include in their ports tree. Typically they bring in the entire FreeBSD ports tree and remove ones that do not work for whatever reason. The ports tree downloads/configures/installs, from source, the software you specify including all build and run dependencies.

While looking at this further I apparently missed patches that the base i3 port had for Dragonfly. I'll try applying those patched to gaps and see if they fix the build. They look like they might. I'll close this for now and I'll reopen if I run into new errors, thanks.