tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gtk3+ broken on OSX due to epoxy update



(apologies to tron@, who I had sent this to because I was reading logs
about who updated libepoxy and gtk3+ too fast)

Tobias Nygren <tnn%NetBSD.org@localhost> writes:

> On Sun, 13 Sep 2015 20:04:36 -0400
> Greg Troxel <gdt%ir.bbn.com@localhost> wrote:
>
>> On OS X, gtk3+ fails to build, apparently because glx.h is omitted in
>> libepoxy on OS X, but it's still referenced in headers:
>
> Hi,
>
> Please try this patch:
>
> http://www.netbsd.org/~tnn/gtk3-fake-epoxy.diff
>
> Warning: it is a kludge.
> With the patch I could build gtk3 without GLX on NetBSD.
>
> Kind regards,
> -Tobias

I applied the patch and it failed due to the usual apple types are
different problem.

So I wonder if we should:

  adjust the types in the fake header, because this is only used on
  apple

  take a different approach, and just put #ifndef DARWIN around the
  include of glx in the libepoxy file, and let gtk3 think it doesn't
  have it.




=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Building for gtk3+-3.16.6
/Applications/Xcode.app/Contents/Developer/usr/bin/gnumake  all-recursive
Making all in po
gnumake[2]: Nothing to be done for `all'.
Making all in po-properties
gnumake[2]: Nothing to be done for `all'.
Making all in gdk
  GEN      gdkconfig.h
/Applications/Xcode.app/Contents/Developer/usr/bin/gnumake  all-recursive
Making all in x11
  CC       gdkglcontext-x11.lo
  CC       gdkmain-x11.lo
gdkglcontext-x11.c:107:43: warning: incompatible pointer types passing 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long *') [-Wincompatible-pointer-types]
      glXGetSyncValuesOML (dpy, drawable, &ust, &msc, &sbc);
                                          ^~~~
/usr/pkgsrc/x11/gtk3/work/.x11-buildlink/include/epoxy/gl.h:60:68: note: passing argument to parameter 'ust' here
glXGetSyncValuesOML(Display * dpy, GLXDrawable drawable, int64_t * ust, int64_t * msc, int64_t * sbc)
                                                                   ^
gdkglcontext-x11.c:107:49: warning: incompatible pointer types passing 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long *') [-Wincompatible-pointer-types]
      glXGetSyncValuesOML (dpy, drawable, &ust, &msc, &sbc);
                                                ^~~~
/usr/pkgsrc/x11/gtk3/work/.x11-buildlink/include/epoxy/gl.h:60:83: note: passing argument to parameter 'msc' here
glXGetSyncValuesOML(Display * dpy, GLXDrawable drawable, int64_t * ust, int64_t * msc, int64_t * sbc)
                                                                                  ^
gdkglcontext-x11.c:107:55: warning: incompatible pointer types passing 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long *') [-Wincompatible-pointer-types]
      glXGetSyncValuesOML (dpy, drawable, &ust, &msc, &sbc);
                                                      ^~~~
/usr/pkgsrc/x11/gtk3/work/.x11-buildlink/include/epoxy/gl.h:60:98: note: passing argument to parameter 'sbc' here
glXGetSyncValuesOML(Display * dpy, GLXDrawable drawable, int64_t * ust, int64_t * msc, int64_t * sbc)
                                                                                                 ^
gdkglcontext-x11.c:110:25: warning: incompatible pointer types passing 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long *') [-Wincompatible-pointer-types]
                        &ust, &msc, &sbc);
                        ^~~~
/usr/pkgsrc/x11/gtk3/work/.x11-buildlink/include/epoxy/gl.h:77:121: note: passing argument to parameter 'ust' here
glXWaitForMscOML(Display * dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t * ust, int64_t * msc, int64_t * sbc)
                                                                                                                        ^
gdkglcontext-x11.c:110:31: warning: incompatible pointer types passing 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long *') [-Wincompatible-pointer-types]
                        &ust, &msc, &sbc);
                              ^~~~
/usr/pkgsrc/x11/gtk3/work/.x11-buildlink/include/epoxy/gl.h:77:136: note: passing argument to parameter 'msc' here
glXWaitForMscOML(Display * dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t * ust, int64_t * msc, int64_t * sbc)
                                                                                                                                       ^
gdkglcontext-x11.c:110:37: warning: incompatible pointer types passing 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long *') [-Wincompatible-pointer-types]
                        &ust, &msc, &sbc);
                                    ^~~~
/usr/pkgsrc/x11/gtk3/work/.x11-buildlink/include/epoxy/gl.h:77:151: note: passing argument to parameter 'sbc' here
glXWaitForMscOML(Display * dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t * ust, int64_t * msc, int64_t * sbc)
                                                                                                                                                      ^
gdkglcontext-x11.c:147:10: error: use of undeclared identifier 'GLX_BACK_BUFFER_AGE_EXT'
         GLX_BACK_BUFFER_AGE_EXT, &buffer_age);
         ^
gdkglcontext-x11.c:209:7: warning: implicit declaration of function 'glBlitFramebuffer' is invalid in C99 [-Wimplicit-function-declaration]
      glBlitFramebuffer (rect.x * scale, (wh - rect.y - rect.height) * scale, (rect.x + rect.width) * scale, (wh - rect.y) * scale,
      ^
7 warnings and 1 error generated.
gnumake[4]: *** [gdkglcontext-x11.lo] Error 1
gnumake[4]: *** Waiting for unfinished jobs....
gnumake[3]: *** [all-recursive] Error 1
gnumake[2]: *** [all] Error 2
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/x11/gtk3
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/gtk3

Attachment: pgpu3BQ8nnyph.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index