From: "charliesome (Charlie Somerville)" <charliesome@...>
Date: 2013-08-09T19:28:15+09:00
Subject: [ruby-core:56474] [ruby-trunk - Bug #8759] Error compiling miniruby


Issue #8759 has been updated by charliesome (Charlie Somerville).


Santiago, do you already have the CFLAGS or LDFLAGS environment variables set in your shell when you invoke ./configure?
----------------------------------------
Bug #8759: Error compiling miniruby
https://bugs.ruby-lang.org/issues/8759#change-41021

Author: spastorino (Santiago Pastorino)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: 
Target version: 
ruby -v: ruby 2.1.0dev (2013-08-09 trunk 42459) [x86_64-darwin12.4.0]
Backport: 1.9.3: DONTNEED, 2.0.0: DONTNEED


I'm getting an error compiling miniruby after this change https://github.com/ruby/ruby/commit/c04f402f0f7692f6105c930f19d81b332d6a93d5 nobu added ...

linking miniruby
Undefined symbols for architecture x86_64:
  "_CFRelease", referenced from:
      _rb_str_normalize_ospath in file.o
  "_CFStringCreateMutableCopy", referenced from:
      _rb_str_normalize_ospath in file.o
  "_CFStringCreateWithBytesNoCopy", referenced from:
      _rb_str_normalize_ospath in file.o
  "_CFStringGetBytes", referenced from:
      _rb_str_normalize_ospath in file.o
  "_CFStringGetLength", referenced from:
      _rb_str_normalize_ospath in file.o
  "_CFStringNormalize", referenced from:
      _rb_str_normalize_ospath in file.o
  "_kCFAllocatorDefault", referenced from:
      _rb_str_normalize_ospath in file.o
  "_kCFAllocatorNull", referenced from:
      _rb_str_normalize_ospath in file.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: *** [miniruby] Error 1

Patch attached


-- 
http://bugs.ruby-lang.org/