<p dir="ltr">On Feb 27, 2016 1:16 PM, "Adam Mercer" <<a href="mailto:ramercer@gmail.com">ramercer@gmail.com</a>> wrote:<br>
><br>
> On Fri, Feb 26, 2016 at 11:14 AM, Dan Nicholson <<a href="mailto:nicholson@endlessm.com">nicholson@endlessm.com</a>> wrote:<br>
><br>
> > Sorry for being slow on this. This is also<br>
> ><a href="https://bugs.freedesktop.org/show_bug.cgi?id=92902"> https://bugs.freedesktop.org/show_bug.cgi?id=92902</a>. Upstream seems to<br>
> > have fixed this slightly differently. Can you try out the following<br>
> > patch?<br>
> ><br>
> ><a href="https://git.gnome.org/browse/glib/commit/?id=8d037c678"> https://git.gnome.org/browse/glib/commit/?id=8d037c678</a><br>
><br>
> Looks like the patch reference above is for glib so I applied the<br>
><a href="http://configure.ac"> configure.ac</a> hunk to glib/<a href="http://configure.ac">configure.ac</a>, then then ran:<br>
><br>
> $ autoreconf -iv<br>
> $ ../configure --with-internal-glib<br>
> $ make<br>
><br>
> and that failed with the same error as before:<br>
><br>
> $ make<br>
> <snip><br>
> Making all in .<br>
>   CC       pkg.o<br>
>   CC       parse.o<br>
>   CC       rpmvercmp.o<br>
>   CC       main.o<br>
>   CCLD     pkg-config<br>
> Undefined symbols for architecture x86_64:<br>
>   "_CFRelease", referenced from:<br>
>       _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)<br>
>   "_CFStringGetCString", referenced from:<br>
>       _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)<br>
>   "_CFStringGetCStringPtr", referenced from:<br>
>       _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)<br>
>   "_CFStringGetLength", referenced from:<br>
>       _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)<br>
>   "_CFURLCopyFileSystemPath", referenced from:<br>
>       _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)<br>
>   "_CFURLCreateFromFSRef", referenced from:<br>
>       _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)<br>
>   "_FSFindFolder", referenced from:<br>
>       _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)<br>
>   "_kCFAllocatorSystemDefault", referenced from:<br>
>       _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)<br>
> ld: symbol(s) not found for architecture x86_64<br>
> clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>
> make[2]: *** [pkg-config] Error 1<br>
> make[1]: *** [all-recursive] Error 1<br>
> make: *** [all] Error 2<br>
> $<br>
><br>
> glib itself builds fine, the problem seems to be in linking pkg-config<br>
> against the internal glib.</p>
<p dir="ltr">Thanks for testing. That makes sense now that I think of it. That's why the upstream patch is against the glib pc files, which we can't use here since we can't use pkg-config. We'll have to duplicate the logic like in Rudá's patch.</p>
<p dir="ltr">Dan</p>