haiwen / seafile-client

Seafile desktop client.
http://seafile.com
Apache License 2.0
469 stars 280 forks source link

Can't compile libsearpc on Mac #1420

Open Keagel opened 2 years ago

Keagel commented 2 years ago

Since issues can't be opened on the libsearpc repo I'm opening one here. I'm trying to build the client on Mac which depends on libsearpc. When I make I get an error about test_object_get_type being implicit. I can't find the definition of that function in glib sources so I'm not sure what I'm doing wrong.

Here is the full autogen, configure and make output:

$ ./autogen.sh; ./configure; make
processing .
Creating ./aclocal.m4 ...
Running glib-gettextize...  Ignore non-fatal messages.
Copying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/local/Cellar/glib/2.72.2/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

Making ./aclocal.m4 writable ...
Running glibtoolize...
glibtoolize: putting auxiliary files in '.'.
glibtoolize: copying file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
Running aclocal  -I m4 -I /usr/local/share/aclocal ...
Running autoheader...
Running automake --gnu  ...
configure.ac:15: installing './compile'
configure.ac:11: installing './missing'
demo/Makefile.am: installing './depcomp'
Running autoconf ...
configure.ac:42: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:42: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:42: the top level
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-apple-darwin21.5.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking host system type... x86_64-apple-darwin21.5.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking how to convert x86_64-apple-darwin21.5.0 file names to x86_64-apple-darwin21.5.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin21.5.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin21.5.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for WIN32... checking for Mac... compile in mac
checking for FreeBSD... checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gobject-2.0 >= 2.26.0... yes
checking for jansson >= 2.2.1... yes
checking for a Python interpreter with version >= 2.7... python
checking for python... /opt/homebrew/Caskroom/miniforge/base/bin/python
checking for python version... 3.9
checking for python platform... darwin
checking for GNU default python prefix... ${prefix}
checking for GNU default python exec_prefix... ${exec_prefix}
checking for python script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.9/site-packages
checking for python extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib/python3.9/site-packages
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating demo/Makefile
config.status: creating pysearpc/Makefile
config.status: creating libsearpc.pc
config.status: creating tests/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh '/Users/mac-pro/Documents/Projects/libsearpc/missing' autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in lib
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/jansson/2.14/include -I../lib -I../lib -g -O2 -MT searpc-client.lo -MD -MP -MF .deps/searpc-client.Tpo -c -o searpc-client.lo searpc-client.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/jansson/2.14/include -I../lib -I../lib -g -O2 -MT searpc-client.lo -MD -MP -MF .deps/searpc-client.Tpo -c searpc-client.c  -fno-common -DPIC -o .libs/searpc-client.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/jansson/2.14/include -I../lib -I../lib -g -O2 -MT searpc-client.lo -MD -MP -MF .deps/searpc-client.Tpo -c searpc-client.c -o searpc-client.o >/dev/null 2>&1
mv -f .deps/searpc-client.Tpo .deps/searpc-client.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/jansson/2.14/include -I../lib -I../lib -g -O2 -MT searpc-server.lo -MD -MP -MF .deps/searpc-server.Tpo -c -o searpc-server.lo searpc-server.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/jansson/2.14/include -I../lib -I../lib -g -O2 -MT searpc-server.lo -MD -MP -MF .deps/searpc-server.Tpo -c searpc-server.c  -fno-common -DPIC -o .libs/searpc-server.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/jansson/2.14/include -I../lib -I../lib -g -O2 -MT searpc-server.lo -MD -MP -MF .deps/searpc-server.Tpo -c searpc-server.c -o searpc-server.o >/dev/null 2>&1
mv -f .deps/searpc-server.Tpo .deps/searpc-server.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/jansson/2.14/include -I../lib -I../lib -g -O2 -MT searpc-utils.lo -MD -MP -MF .deps/searpc-utils.Tpo -c -o searpc-utils.lo searpc-utils.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/jansson/2.14/include -I../lib -I../lib -g -O2 -MT searpc-utils.lo -MD -MP -MF .deps/searpc-utils.Tpo -c searpc-utils.c  -fno-common -DPIC -o .libs/searpc-utils.o
searpc-utils.c:199:65: warning: 'GParameter' is deprecated [-Wdeprecated-declarations]
    construct_params = g_array_sized_new (FALSE, FALSE, sizeof (GParameter), n_members);
                                                                ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/gobject/gparam.h:196:39: note: 'GParameter' has been explicitly marked deprecated here
typedef struct _GParameter      GParameter GLIB_DEPRECATED_TYPE_IN_2_54;
                                           ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gversionmacros.h:840:49: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_54'
# define GLIB_DEPRECATED_TYPE_IN_2_54           GLIB_DEPRECATED_TYPE
                                                ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gmacros.h:1180:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE'
#define GLIB_DEPRECATED_TYPE G_DEPRECATED
                             ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gmacros.h:1103:37: note: expanded from macro 'G_DEPRECATED'
#define G_DEPRECATED __attribute__((__deprecated__))
                                    ^
searpc-utils.c:204:9: warning: 'GParameter' is deprecated [-Wdeprecated-declarations]
        GParameter param = { NULL, };
        ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/gobject/gparam.h:196:39: note: 'GParameter' has been explicitly marked deprecated here
typedef struct _GParameter      GParameter GLIB_DEPRECATED_TYPE_IN_2_54;
                                           ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gversionmacros.h:840:49: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_54'
# define GLIB_DEPRECATED_TYPE_IN_2_54           GLIB_DEPRECATED_TYPE
                                                ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gmacros.h:1180:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE'
#define GLIB_DEPRECATED_TYPE G_DEPRECATED
                             ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gmacros.h:1103:37: note: expanded from macro 'G_DEPRECATED'
#define G_DEPRECATED __attribute__((__deprecated__))
                                    ^
searpc-utils.c:230:11: warning: 'g_object_newv' is deprecated: Use 'g_object_new_with_properties' instead [-Wdeprecated-declarations]
    ret = g_object_newv (gtype, construct_params->len, (GParameter *) construct_params->data);
          ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/gobject/gobject.h:451:1: note: 'g_object_newv' has been explicitly marked deprecated here
GLIB_DEPRECATED_IN_2_54_FOR(g_object_new_with_properties)
^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gversionmacros.h:835:49: note: expanded from macro 'GLIB_DEPRECATED_IN_2_54_FOR'
# define GLIB_DEPRECATED_IN_2_54_FOR(f)         GLIB_DEPRECATED_FOR(f)
                                                ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gmacros.h:1145:32: note: expanded from macro 'GLIB_DEPRECATED_FOR'
#define GLIB_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) _GLIB_EXTERN
                               ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gmacros.h:1113:44: note: expanded from macro 'G_DEPRECATED_FOR'
#define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead")))
                                           ^
searpc-utils.c:230:57: warning: 'GParameter' is deprecated [-Wdeprecated-declarations]
    ret = g_object_newv (gtype, construct_params->len, (GParameter *) construct_params->data);
                                                        ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/gobject/gparam.h:196:39: note: 'GParameter' has been explicitly marked deprecated here
typedef struct _GParameter      GParameter GLIB_DEPRECATED_TYPE_IN_2_54;
                                           ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gversionmacros.h:840:49: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_54'
# define GLIB_DEPRECATED_TYPE_IN_2_54           GLIB_DEPRECATED_TYPE
                                                ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gmacros.h:1180:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE'
#define GLIB_DEPRECATED_TYPE G_DEPRECATED
                             ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gmacros.h:1103:37: note: expanded from macro 'G_DEPRECATED'
#define G_DEPRECATED __attribute__((__deprecated__))
                                    ^
searpc-utils.c:233:9: warning: 'GParameter' is deprecated [-Wdeprecated-declarations]
        GParameter *param = &g_array_index (construct_params, GParameter, i);
        ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/gobject/gparam.h:196:39: note: 'GParameter' has been explicitly marked deprecated here
typedef struct _GParameter      GParameter GLIB_DEPRECATED_TYPE_IN_2_54;
                                           ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gversionmacros.h:840:49: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_54'
# define GLIB_DEPRECATED_TYPE_IN_2_54           GLIB_DEPRECATED_TYPE
                                                ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gmacros.h:1180:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE'
#define GLIB_DEPRECATED_TYPE G_DEPRECATED
                             ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gmacros.h:1103:37: note: expanded from macro 'G_DEPRECATED'
#define G_DEPRECATED __attribute__((__deprecated__))
                                    ^
searpc-utils.c:233:63: warning: 'GParameter' is deprecated [-Wdeprecated-declarations]
        GParameter *param = &g_array_index (construct_params, GParameter, i);
                                                              ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/gobject/gparam.h:196:39: note: 'GParameter' has been explicitly marked deprecated here
typedef struct _GParameter      GParameter GLIB_DEPRECATED_TYPE_IN_2_54;
                                           ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gversionmacros.h:840:49: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_54'
# define GLIB_DEPRECATED_TYPE_IN_2_54           GLIB_DEPRECATED_TYPE
                                                ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gmacros.h:1180:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE'
#define GLIB_DEPRECATED_TYPE G_DEPRECATED
                             ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/glib/gmacros.h:1103:37: note: expanded from macro 'G_DEPRECATED'
#define G_DEPRECATED __attribute__((__deprecated__))
                                    ^
6 warnings generated.
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/jansson/2.14/include -I../lib -I../lib -g -O2 -MT searpc-utils.lo -MD -MP -MF .deps/searpc-utils.Tpo -c searpc-utils.c -o searpc-utils.o >/dev/null 2>&1
mv -f .deps/searpc-utils.Tpo .deps/searpc-utils.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/jansson/2.14/include -I../lib -I../lib -g -O2 -MT searpc-named-pipe-transport.lo -MD -MP -MF .deps/searpc-named-pipe-transport.Tpo -c -o searpc-named-pipe-transport.lo searpc-named-pipe-transport.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/jansson/2.14/include -I../lib -I../lib -g -O2 -MT searpc-named-pipe-transport.lo -MD -MP -MF .deps/searpc-named-pipe-transport.Tpo -c searpc-named-pipe-transport.c  -fno-common -DPIC -o .libs/searpc-named-pipe-transport.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/jansson/2.14/include -I../lib -I../lib -g -O2 -MT searpc-named-pipe-transport.lo -MD -MP -MF .deps/searpc-named-pipe-transport.Tpo -c searpc-named-pipe-transport.c -o searpc-named-pipe-transport.o >/dev/null 2>&1
mv -f .deps/searpc-named-pipe-transport.Tpo .deps/searpc-named-pipe-transport.Plo
/bin/sh ../libtool  --tag=CC   --mode=link gcc -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/jansson/2.14/include -I../lib -I../lib -g -O2 -version-info 1:2:0  -no-undefined  -o libsearpc.la -rpath /usr/local/lib searpc-client.lo searpc-server.lo searpc-utils.lo searpc-named-pipe-transport.lo -L/usr/local/Cellar/glib/2.72.2/lib -L/usr/local/opt/gettext/lib -lgobject-2.0 -lglib-2.0 -lintl -L/usr/local/Cellar/jansson/2.14/lib -ljansson -lpthread 
libtool: link: rm -fr  .libs/libsearpc.1.dylib .libs/libsearpc.a .libs/libsearpc.dylib .libs/libsearpc.la .libs/libsearpc.lai
libtool: link: gcc -dynamiclib  -o .libs/libsearpc.1.dylib  .libs/searpc-client.o .libs/searpc-server.o .libs/searpc-utils.o .libs/searpc-named-pipe-transport.o   -L/usr/local/Cellar/glib/2.72.2/lib -L/usr/local/opt/gettext/lib -lgobject-2.0 -lglib-2.0 -lintl -L/usr/local/Cellar/jansson/2.14/lib -ljansson -lpthread  -g -O2   -install_name  /usr/local/lib/libsearpc.1.dylib -compatibility_version 2 -current_version 2.2 -Wl,-single_module
libtool: link: (cd ".libs" && rm -f "libsearpc.dylib" && ln -s "libsearpc.1.dylib" "libsearpc.dylib")
libtool: link: ar cru .libs/libsearpc.a  searpc-client.o searpc-server.o searpc-utils.o searpc-named-pipe-transport.o
libtool: link: ranlib .libs/libsearpc.a
libtool: link: ( cd ".libs" && rm -f "libsearpc.la" && ln -s "../libsearpc.la" "libsearpc.la" )
Making all in pysearpc
make[2]: Nothing to be done for `all'.
Making all in demo
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I../lib -g -O2 -MT test-object.o -MD -MP -MF .deps/test-object.Tpo -c -o test-object.o test-object.c
mv -f .deps/test-object.Tpo .deps/test-object.Po
gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glib/2.72.2/include -I/usr/local/Cellar/glib/2.72.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.72.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I../lib -g -O2 -MT searpc-demo-server.o -MD -MP -MF .deps/searpc-demo-server.Tpo -c -o searpc-demo-server.o searpc-demo-server.c
searpc-demo-server.c:43:39: error: implicit declaration of function 'test_object_get_type' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        TestObject *obj=g_object_new (TEST_OBJECT_TYPE, NULL);
                                      ^
./test-object.h:7:38: note: expanded from macro 'TEST_OBJECT_TYPE'
#define TEST_OBJECT_TYPE            (test_object_get_type())
                                     ^
searpc-demo-server.c:43:39: note: did you mean 'g_object_get_type'?
./test-object.h:7:38: note: expanded from macro 'TEST_OBJECT_TYPE'
#define TEST_OBJECT_TYPE            (test_object_get_type())
                                     ^
/usr/local/Cellar/glib/2.72.2/include/glib-2.0/gobject/gobject.h:438:13: note: 'g_object_get_type' declared here
GType       g_object_get_type                 (void) G_GNUC_CONST;
            ^
1 error generated.
make[3]: *** [searpc-demo-server.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Can anyone help me figure out what's wrong? Thanks!