[#23231] What do you think about changing the return value of Kernel#require and Kernel#load to the source encoding of the required file? — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <ed.odanow@...>

Dear Ruby developers and users!

8 messages 2009/04/17

[#23318] [Feature #1408] 0.1.to_r not equal to (1/10) — Heesob Park <redmine@...>

Feature #1408: 0.1.to_r not equal to (1/10)

19 messages 2009/04/26

[ruby-core:23169] [Bug #1368] ruby19 trunk (svn revision 23160) build fails compiling dl ext on win32

From: B Kelly <redmine@...>
Date: 2009-04-09 00:04:38 UTC
List: ruby-core #23169
Bug #1368: ruby19 trunk (svn revision 23160) build fails compiling dl ext on win32
http://redmine.ruby-lang.org/issues/show/1368

Author: B Kelly
Status: Open, Priority: Normal
Category: ext, Target version: 1.9.2
ruby -v: ruby 1.9.2dev (2009-04-08) [i386-mswin32_71]

Hi,

In attempting to build from the current svn trunk (revision 23160)
on win32, I'm getting a failure linking the dl extension.

(Building on WinXP, Visual Studio 2003, cl.exe version 13.10.6030)

I configured as follows:

win32\configure.bat --prefix=m:/dev/ruby-build/trunk --program-suffix=19
nmake

The error was:

compiling dl
  cl -nologo -LD -Fe../../.ext/i386-mswin32_71/dl.so callback-0.obj callback-1.obj
callback-2.obj callback-3.obj callback-4.obj callback-5.obj callback-6.obj
callback-7.obj callback-8.obj cfunc.obj cptr.obj dl.obj handle.obj
msvcr71-ruby19191.lib  unicows.lib oldnames.lib user32.lib advapi32.lib shell32.lib
ws2_32.lib  -link -incremental:no -debug -opt:ref -opt:icf -incremental:no -debug
 -opt:ref -opt:icf -dll -libpath:"." -libpath:"../.."  -implib:dl-i386-mswin32_71.lib
-pdb:dl-i386-mswin32_71.pdb -def:dl-i386-mswin32_71.def
LINK : fatal error LNK1181: cannot open input file 'callback-0.obj'


I experimented by entering the ext/dl/callback directory and manually
running mkcallback.rb and extconf.rb and moving the resulting 
callback-*.obj to the ext/dl directory... But then I get different
link errors:

   Creating library dl-i386-mswin32_71.lib and object dl-i386-mswin32_71.exp
callback-8.obj : error LNK2001: unresolved external symbol _rb_DLStdcallCallbackAddrs
callback-4.obj : error LNK2001: unresolved external symbol _rb_DLStdcallCallbackAddrs
callback-5.obj : error LNK2001: unresolved external symbol _rb_DLStdcallCallbackAddrs
callback-6.obj : error LNK2001: unresolved external symbol _rb_DLStdcallCallbackAddrs
callback-7.obj : error LNK2001: unresolved external symbol _rb_DLStdcallCallbackAddrs
callback-0.obj : error LNK2001: unresolved external symbol _rb_DLStdcallCallbackAddrs
callback-1.obj : error LNK2001: unresolved external symbol _rb_DLStdcallCallbackAddrs
callback-2.obj : error LNK2001: unresolved external symbol _rb_DLStdcallCallbackAddrs
callback-3.obj : error LNK2001: unresolved external symbol _rb_DLStdcallCallbackAddrs

etc.

So I'm a little lost at this point.

Hope this helps,

Bill


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

In This Thread

Prev Next