Running make on ggobi 2.1.11 on Mac El Capitan fails

78 views
Skip to first unread message

Christopher Desjardins

unread,
Mar 23, 2016, 1:26:32 PM3/23/16
to GGobi users
I am building ggobi 2.1.11 on Mac OS X El Capitan as the GTK+ frameworks on the AT&T page are out of date. I installed GTK+ in a non-standard place via homebrew because I do not have root access to this university computer. I am able to get it to configure without error after setting the following variables:

export PKG_CONFIG=/Users/cdesjard/.homebrew/homebrew/Cellar/pkg-config/0.29.1/bin/pkg-config

export PKG_CONFIG_PATH=/Users/cdesjard/.homebrew/homebrew/lib/pkgconfig


I ran configure as:

./configure --with-all-plugins


However, when I run make. I get the following error:


cehd-m1651448:ggobi-2.1.11 cdesjard$ make

Making all in src

/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am

/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -D_REENTRANT -I/Users/cdesjard/.homebrew/homebrew/Cellar/gtk+/2.24.30/include/gtk-2.0 -I/Users/cdesjard/.homebrew/homebrew/Cellar/gtk+/2.24.30/lib/gtk-2.0/include -I/Users/cdesjard/.homebrew/homebrew/Cellar/pango/1.38.1/include/pango-1.0 -I/Users/cdesjard/.homebrew/homebrew/Cellar/harfbuzz/1.2.4/include/harfbuzz -I/Users/cdesjard/.homebrew/homebrew/Cellar/pango/1.38.1/include/pango-1.0 -I/Users/cdesjard/.homebrew/homebrew/Cellar/atk/2.18.0_1/include/atk-1.0 -I/Users/cdesjard/.homebrew/homebrew/Cellar/cairo/1.14.6_1/include/cairo -I/Users/cdesjard/.homebrew/homebrew/Cellar/pixman/0.34.0/include/pixman-1 -I/Users/cdesjard/.homebrew/homebrew/Cellar/fontconfig/2.11.1_2/include -I/Users/cdesjard/.homebrew/homebrew/Cellar/freetype/2.6.3/include/freetype2 -I/Users/cdesjard/.homebrew/homebrew/Cellar/libpng/1.6.21/include/libpng16 -I/Users/cdesjard/.homebrew/homebrew/Cellar/gdk-pixbuf/2.32.3/include/gdk-pixbuf-2.0 -I/Users/cdesjard/.homebrew/homebrew/Cellar/libpng/1.6.21/include/libpng16 -I/Users/cdesjard/.homebrew/homebrew/Cellar/glib/2.46.2/include/glib-2.0 -I/Users/cdesjard/.homebrew/homebrew/Cellar/glib/2.46.2/lib/glib-2.0/include -I/Users/cdesjard/.homebrew/homebrew/opt/gettext/include -I/usr/include/libxml2    -g -O2 -MT texture.lo -MD -MP -MF .deps/texture.Tpo -c -o texture.lo texture.c

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -D_REENTRANT -I/Users/cdesjard/.homebrew/homebrew/Cellar/gtk+/2.24.30/include/gtk-2.0 -I/Users/cdesjard/.homebrew/homebrew/Cellar/gtk+/2.24.30/lib/gtk-2.0/include -I/Users/cdesjard/.homebrew/homebrew/Cellar/pango/1.38.1/include/pango-1.0 -I/Users/cdesjard/.homebrew/homebrew/Cellar/harfbuzz/1.2.4/include/harfbuzz -I/Users/cdesjard/.homebrew/homebrew/Cellar/pango/1.38.1/include/pango-1.0 -I/Users/cdesjard/.homebrew/homebrew/Cellar/atk/2.18.0_1/include/atk-1.0 -I/Users/cdesjard/.homebrew/homebrew/Cellar/cairo/1.14.6_1/include/cairo -I/Users/cdesjard/.homebrew/homebrew/Cellar/pixman/0.34.0/include/pixman-1 -I/Users/cdesjard/.homebrew/homebrew/Cellar/fontconfig/2.11.1_2/include -I/Users/cdesjard/.homebrew/homebrew/Cellar/freetype/2.6.3/include/freetype2 -I/Users/cdesjard/.homebrew/homebrew/Cellar/libpng/1.6.21/include/libpng16 -I/Users/cdesjard/.homebrew/homebrew/Cellar/gdk-pixbuf/2.32.3/include/gdk-pixbuf-2.0 -I/Users/cdesjard/.homebrew/homebrew/Cellar/libpng/1.6.21/include/libpng16 -I/Users/cdesjard/.homebrew/homebrew/Cellar/glib/2.46.2/include/glib-2.0 -I/Users/cdesjard/.homebrew/homebrew/Cellar/glib/2.46.2/lib/glib-2.0/include -I/Users/cdesjard/.homebrew/homebrew/opt/gettext/include -I/usr/include/libxml2 -g -O2 -MT texture.lo -MD -MP -MF .deps/texture.Tpo -c texture.c  -fno-common -DPIC -o .libs/texture.o

texture.c:49:1: error: conflicting types for 'psort'

psort (const void *arg1, const void *arg2)

^

/usr/include/stdlib.h:287:7: note: previous declaration is here

void     psort(void *, size_t, size_t,

         ^

texture.c:211:52: warning: incompatible pointer types passing 'void (void *, size_t, size_t, int

      (*)(const void *, const void *))' (aka 'void (void *, unsigned long, unsigned long, int

      (*)(const void *, const void *))') to parameter of type 'int (*)(const void *, const void *)'

      [-Wincompatible-pointer-types]

  qsort ((void *) indx, (gsize) ny, sizeof (gint), psort);

                                                   ^~~~~

/usr/include/stdlib.h:158:12: note: passing argument to parameter here

            int (*)(const void *, const void *));

                  ^

1 warning and 1 error generated.

make[2]: *** [texture.lo] Error 1

make[1]: *** [all] Error 2

make: *** [all-recursive] Error 1


Looks like there might be some sort of issue with psort? 


Any ideas?


Chris

Christopher David Desjardins

unread,
Mar 23, 2016, 2:09:28 PM3/23/16
to GGobi users

--
You received this message because you are subscribed to a topic in the Google Groups "GGobi users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ggobi/JvtCLHqwc8Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ggobi+un...@googlegroups.com.
To post to this group, send email to gg...@googlegroups.com.
Visit this group at https://groups.google.com/group/ggobi.
For more options, visit https://groups.google.com/d/optout.



--

Christopher David Desjardins

unread,
Mar 23, 2016, 2:29:06 PM3/23/16
to GGobi users
If it's any help to anyone using GGobi on a Mac. 

- I changed all references to psort to p_sort in texture.c and barchart.c
- I commented out line 20 

  // #include <cairo/cairo.h>

in ggobi-renderer-cairo.h

It has now built and seems to work fine.

Chris
Reply all
Reply to author
Forward
0 new messages