Forum: Ruby-core [ruby-trunk - Bug #8759][Open] Error compiling miniruby

D04d064616ae7fd752fdcb8daa5abdd6?d=identicon&s=25 spastorino (Santiago Pastorino) (Guest)
on 2013-08-09 09:12
(Received via mailing list)
Issue #8759 has been reported by spastorino (Santiago Pastorino).

----------------------------------------
Bug #8759: Error compiling miniruby
https://bugs.ruby-lang.org/issues/8759

Author: spastorino (Santiago Pastorino)
Status: Open
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: UNKNOWN, 2.0.0: UNKNOWN


I'm getting an error compiling miniruby after this change
https://github.com/ruby/ruby/commit/c04f402f0f7692...
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
9361878d459f1709feec780518946ee5?d=identicon&s=25 naruse (Yui NARUSE) (Guest)
on 2013-08-09 10:04
(Received via mailing list)
Issue #8759 has been updated by naruse (Yui NARUSE).

Status changed from Open to Feedback
Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 1.9.3: DONTNEED,
2.0.0: DONTNEED

I can't reproduce it and r42457 includes such configure.in changes.
Could you confirm there's something wrong?
----------------------------------------
Bug #8759: Error compiling miniruby
https://bugs.ruby-lang.org/issues/8759#change-41018

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/c04f402f0f7692...
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
F736999f7c1b7a87a100faa112bbc0f3?d=identicon&s=25 charliesome (Charlie Somerville) (Guest)
on 2013-08-09 12:28
(Received via mailing list)
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/c04f402f0f7692...
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
F736999f7c1b7a87a100faa112bbc0f3?d=identicon&s=25 charliesome (Charlie Somerville) (Guest)
on 2013-08-09 12:37
(Received via mailing list)
Issue #8759 has been updated by charliesome (Charlie Somerville).


I can reproduce this locally. I believe this is the problem: #8762
----------------------------------------
Bug #8759: Error compiling miniruby
https://bugs.ruby-lang.org/issues/8759#change-41026

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/c04f402f0f7692...
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
This topic is locked and can not be replied to.