Re: [Gtk-osx-users] [gtk-osx-users] LibSoup buid fails HARD
Status: Beta
Brought to you by:
jralls
From: John R. <jr...@ce...> - 2015-04-09 00:45:01
|
> On Apr 8, 2015, at 10:50 AM, Thinus Pollard <th...@po...> wrote: > > Hi there > > I am trying to build gnucash on OS X 10.10 > > I have followed all the instructions and am running into some issues: > > 1. gwenhywfar fails to build > > directory.c:207:7: error: implicit declaration of function '_NSGetExecutablePath' is invalid in C99 [-Werror,-Wimplicit-function-declaration] > > This is easy to “fix”: Edit src/os/posix/Makefile and remove the -Werror=Implicit-function-declaration from the file, building continues > > 2. libsoup fails hard > > GISCAN Soup-2.4.gir > Traceback (most recent call last): > File "/Users/thinus/gnucash-stable/bin/g-ir-scanner", line 55, in <module> > sys.exit(scanner_main(sys.argv)) > File "/Users/thinus/gnucash-stable/lib/gobject-introspection/giscanner/scannermain.py", line 517, in scanner_main > ss = create_source_scanner(options, args) > File "/Users/thinus/gnucash-stable/lib/gobject-introspection/giscanner/scannermain.py", line 430, in create_source_scanner > ss.parse_files(filenames) > File "/Users/thinus/gnucash-stable/lib/gobject-introspection/giscanner/sourcescanner.py", line 256, in parse_files > self._parse(headers) > File "/Users/thinus/gnucash-stable/lib/gobject-introspection/giscanner/sourcescanner.py", line 302, in _parse > proc.stdin.write('#ifndef %s\n' % (define, )) > IOError: [Errno 32] Broken pipe > make[3]: *** [Soup-2.4.gir] Error 1 > make[2]: *** [all] Error 2 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > *** Error during phase build of libsoup: ########## Error running make -j 9 *** [50/65] > > it crashes python with a dialog box from OS X, I just cannot seem to get past this one. > > Anyone else running into this issue? > Yeah, I know about both issues. The Gwenhywfar problem needs the patch tweaked a bit for the new version. I did that a couple of days ago but didn't get it completely right for 10.10. The actual fix is to replace #include <CoreFoundation/CoreFoundation.h> with #include <mach-o/dyld.h> in gwenhywfar-1.13.1/src/os/posix/directory.c. The g-ir-scanner problem that manifests with libsoup is caused by some weirdness in glib-networking that utterly baffles me. The workaround is to select '4 - open a shell' from the jhbuild menu, then cd ../glib-networking-2.42.1 make uninstall && make install Then ctrl-d to quit the shell and select "1 - rerun phase build`. Regards, John Ralls |