Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 2014 14:42:48 +0300
From:      Arto Pekkanen <isoa@kapsi.fi>
To:        Neil Schroeder <gigneil@gmail.com>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: libxshmfence port fails build
Message-ID:  <534D1B38.4050803@kapsi.fi>
In-Reply-To: <CAK9pY-wgZNsbKw0QT=Qn8mBa5hytr4U__i5QsAHvSuRTzx5ttg@mail.gmail.com>
References:  <CAK9pY-wgZNsbKw0QT=Qn8mBa5hytr4U__i5QsAHvSuRTzx5ttg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
http://www.cplusplus.com/reference/climits/

INT_MAX is defined in standard ANSI-C header limits.h

To me this seems like a typo in the source, missing #include <limits.h> -line in xshmfenceint.h

This could be fixed by editing the xshmfenceint.h header in the source and adding #include <limits.h> in the very beginning of the file. Because the source is elswhere, I think you would need to make a site-spesific patch and include it in the port's Makefile.

Anyways, have you contacted the port maintainer? He might have some information regarding this.

On 15.4.2014 3:49, Neil Schroeder wrote:
> I think I picked a bad day to go from 10-STABLE to 11-CURRENT then fully
> rebuild all my ports...
> 
> 
> In file included from xshmfence_alloc.c:27:
> In file included from ./xshmfenceint.h:33:
> ./xshmfence_futex.h:40:39: error: use of undeclared identifier 'INT_MAX'
> --- xshmfence_futex.lo ---
> In file included from xshmfence_futex.c:27:
> In file included from ./xshmfenceint.h:33:
> ./xshmfence_futex.h:40:39: error: use of undeclared identifier 'INT_MAX'
> --- xshmfence_alloc.lo ---
>         return sys_futex(addr, UMTX_OP_WAKE, INT_MAX);
>                                              ^
> --- xshmfence_futex.lo ---
>         return sys_futex(addr, UMTX_OP_WAKE, INT_MAX);
>                                              ^
> 
> I am not too bad with general hackery of dependencies and makefiles but
> this I'm not sure how to address.
> 
> Any ideas fine people?
> 
> NS
> _______________________________________________
> freebsd-x11@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"
> 


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTTRs7AAoJEGSnDuw8E9qY52wH/3SCxQ4bw1FrJoilvvvl16No
MRoWULy5IC6vtJ/G8Uc5SWpDxwZZxbCqgalz0xCTErIvbNL11EQJoUcjErXrzETp
XP3d8JkLztGhWFDhL4KOdWcfEo1CFks16AppkATo4zCCIltJUWK4VKTSt3o6EGcS
hp7+je6yKtNf+17oxQlBgo1d+O42qgrjE0EO0vljjdqbXefWqj6DQIGLVAN69Yb6
8SEB3CGHEYg7sJ2rD+DPqSjPYwfLfGkrIlH83+PNXHHPv9VMm2KQkrkhgeSvw9Yl
6s3R+UHtF33SAS9J79G/7vHP7JoYUhxDMkC+sjeQLnwdnU2TqOm9kc5fQ28ZNto=
=eXcw
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?534D1B38.4050803>