Giter Club home page Giter Club logo

Comments (6)

c00kiemon5ter avatar c00kiemon5ter commented on July 16, 2024

there have been people that built monsterwm on DragonFly and Free BSD.
See the posts here and here.
as noted, pkgconfig can help you locate the correct paths.

from monsterwm.

r004 avatar r004 commented on July 16, 2024
X11INC = -I/usr/local/include/X11
X11LIB = -L/usr/local/lib -lX11

INCS = -I. -I/usr/local/include ${X11INC}
LIBS = -L/usr/local/lib -lc ${X11LIB}

it is not quite what you post for freebsd 9 but I get this:

monsterwm build options:
CFLAGS   = -std=c99 -pedantic -Wall -Wextra -I. -I/usr/local/include -I/usr/local/include/X11 -DVERSION="cookies-git" -Os
LDFLAGS  = -L/usr/local/lib -lc -L/usr/local/lib -lX11 -s
CC       = cc
CC monsterwm.c
In file included from monsterwm.c:11:
In file included from /usr/local/include/X11/Xutil.h:53:
In file included from /usr/local/include/X11/Xlib.h:47:
/usr/local/include/X11/Xfuncproto.h:145:24: warning: named variadic macros are a
      GNU extension [-Wvariadic-macros]
#define _X_NONNULL(args...)  __attribute__((nonnull(args)))
                       ^
1 warning generated.
CC -o monsterwm

Is it building properly? or should I do excatly as you posted?

from monsterwm.

c00kiemon5ter avatar c00kiemon5ter commented on July 16, 2024

The build should be fine.
The warnings is generated by Xfuncproto.h line 145, where it uses named variadic macros.
C99 provides a way to use n.v.m. properly through __VA_ARGS__ [ref].

The warning may go away by using -std=gnuc instead of -std=c99 in CFLAGS.

from monsterwm.

r004 avatar r004 commented on July 16, 2024

error: invalid value 'gnuc' in '-std=gnuc'

I thing it is because FreeBSD used Clang/llvm from version 10.
any work around?

from monsterwm.

c00kiemon5ter avatar c00kiemon5ter commented on July 16, 2024

right, sorry, that should be gnu99 [ref]

from monsterwm.

c00kiemon5ter avatar c00kiemon5ter commented on July 16, 2024

for clang the same applies [ref]

clang supports the -std option, which changes what language mode clang uses. The supported modes for C are c89, gnu89, c94, c99, gnu99 and various aliases for those modes. If no -std option is specified, clang defaults to gnu99 mode.

from monsterwm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.