Bug #1368
closedruby19 trunk (svn revision 23160) build fails compiling dl ext on win32
Description
=begin
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
=end
Updated by rogerdpack (Roger Pack) over 15 years ago
=begin
do you still get this error?
-=r
=end
Updated by nobu (Nobuyoshi Nakada) about 15 years ago
- Status changed from Feedback to Closed
=begin
remove callback-?.c underneath ext/dl.
=end