Forum: Ruby-core [ruby-trunk - Bug #7467][Open] lib/mkmf.rb merge_lib fails on larger sets of libraries

Posted by Michal Papis (mpapis)
on 2012-11-29 09:43
(Received via mailing list)
Issue #7467 has been reported by mpapis (Michal Papis).

----------------------------------------
Bug #7467: lib/mkmf.rb merge_lib fails on larger sets of libraries
https://bugs.ruby-lang.org/issues/7467

Author: mpapis (Michal Papis)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) 
[x86_64-darwin12.2.0]


running:

merge_libs(["-lncurses", "-ltinfo", "-lssl", "-lcrypto", "-lz", 
"-lreadline", "-ltermcap", "-lyaml"],["-lcrypto", "-lssl", "-lcrypto", 
"-lz"],[])

fails with an exception

I have tried a bit and it works fine with a lot simplified version of 
this code:

def merge_libs(*libs)
  libs.flatten.uniq
end

Also can this be backported to Ruby 1.9.3?
Posted by Michal Papis (mpapis)
on 2012-11-29 11:07
(Received via mailing list)
Issue #7467 has been updated by mpapis (Michal Papis).


here is a link to a working patch: 
https://github.com/tokaido/tokaido-build/blob/mast...
----------------------------------------
Bug #7467: lib/mkmf.rb merge_lib fails on larger sets of libraries
https://bugs.ruby-lang.org/issues/7467#change-34138

Author: mpapis (Michal Papis)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) 
[x86_64-darwin12.2.0]


running:

merge_libs(["-lncurses", "-ltinfo", "-lssl", "-lcrypto", "-lz", 
"-lreadline", "-ltermcap", "-lyaml"],["-lcrypto", "-lssl", "-lcrypto", 
"-lz"],[])

fails with an exception

I have tried a bit and it works fine with a lot simplified version of 
this code:

def merge_libs(*libs)
  libs.flatten.uniq
end

Also can this be backported to Ruby 1.9.3?
Posted by usa (Usaku NAKAMURA) (Guest)
on 2012-12-21 14:58
(Received via mailing list)
Issue #7467 has been updated by usa (Usaku NAKAMURA).

Category set to lib
Status changed from Open to Assigned
Assignee set to nobu (Nobuyoshi Nakada)
Target version set to 2.0.0


----------------------------------------
Bug #7467: lib/mkmf.rb merge_lib fails on larger sets of libraries
https://bugs.ruby-lang.org/issues/7467#change-34971

Author: mpapis (Michal Papis)
Status: Assigned
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: lib
Target version: 2.0.0
ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) 
[x86_64-darwin12.2.0]


running:

merge_libs(["-lncurses", "-ltinfo", "-lssl", "-lcrypto", "-lz", 
"-lreadline", "-ltermcap", "-lyaml"],["-lcrypto", "-lssl", "-lcrypto", 
"-lz"],[])

fails with an exception

I have tried a bit and it works fine with a lot simplified version of 
this code:

def merge_libs(*libs)
  libs.flatten.uniq
end

Also can this be backported to Ruby 1.9.3?
Posted by Michal Papis (mpapis)
on 2013-02-09 14:43
(Received via mailing list)
Issue #7467 has been updated by mpapis (Michal Papis).


just curious what the new code does more over the simple 
`libs.flatten.uniq`?

----------------------------------------
Bug #7467: lib/mkmf.rb merge_lib fails on larger sets of libraries
https://bugs.ruby-lang.org/issues/7467#change-36090

Author: mpapis (Michal Papis)
Status: Closed
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: lib
Target version: 2.0.0
ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) 
[x86_64-darwin12.2.0]


running:

merge_libs(["-lncurses", "-ltinfo", "-lssl", "-lcrypto", "-lz", 
"-lreadline", "-ltermcap", "-lyaml"],["-lcrypto", "-lssl", "-lcrypto", 
"-lz"],[])

fails with an exception

I have tried a bit and it works fine with a lot simplified version of 
this code:

def merge_libs(*libs)
  libs.flatten.uniq
end

Also can this be backported to Ruby 1.9.3?
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.