Bug 92902

Summary: pig-config 0.29 fails to build on Mac OS X 10.11 (El Capitan)
Product: pkg-config Reporter: Matthew Mucklo <mmucklo>
Component: srcAssignee: pkg-config
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: medium    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description Matthew Mucklo 2015-11-11 10:06:06 UTC
0.28 builds fine.

When I try to build 0.29 I'm getting Undefined symbols:

echo   > glib-public-headers.txt.tmp && mv glib-public-headers.txt.tmp glib-public-headers.txt
Making all in .
  CC       pkg.o
  CC       parse.o
  CC       rpmvercmp.o
  CC       main.o
  CCLD     pkg-config
Undefined symbols for architecture x86_64:
  "_CFRelease", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
  "_CFStringGetCString", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
  "_CFStringGetCStringPtr", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
  "_CFStringGetLength", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
  "_CFURLCopyFileSystemPath", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
  "_CFURLCreateFromFSRef", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
  "_FSFindFolder", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
  "_kCFAllocatorSystemDefault", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [pkg-config] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [build/src/pkg-config.build] Error 2
Comment 1 Dan Nicholson 2016-01-29 22:53:40 UTC
I guess you're using the internal glib? I think this was fixed in upstream glib in https://git.gnome.org/browse/glib/commit/?id=8d037c678. Can you try to apply the changes in that patch to glib/configure.ac and see if it fixes things for you?

I'll probably update the glib snapshot for the next release.
Comment 2 Dan Nicholson 2016-03-01 19:35:17 UTC
Fixed in commit 753f0ba. See also https://lists.freedesktop.org/archives/pkg-config/2016-March/001041.html. This will be in pkg-config-0.29.1 shortly.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.