Bug #1368

ruby19 trunk (svn revision 23160) build fails compiling dl ext on win32

Added by B Kelly about 5 years ago. Updated almost 3 years ago.

[ruby-core:23169]
Status:Closed
Priority:Normal
Assignee:-
Category:ext
Target version:1.9.2
ruby -v:ruby 1.9.2dev (2009-04-08) [i386-mswin32_71] Backport:

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-mswin3271/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-mswin3271.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 rbDLStdcallCallbackAddrs
callback-4.obj : error LNK2001: unresolved external symbol rbDLStdcallCallbackAddrs
callback-5.obj : error LNK2001: unresolved external symbol rbDLStdcallCallbackAddrs
callback-6.obj : error LNK2001: unresolved external symbol rbDLStdcallCallbackAddrs
callback-7.obj : error LNK2001: unresolved external symbol rbDLStdcallCallbackAddrs
callback-0.obj : error LNK2001: unresolved external symbol rbDLStdcallCallbackAddrs
callback-1.obj : error LNK2001: unresolved external symbol rbDLStdcallCallbackAddrs
callback-2.obj : error LNK2001: unresolved external symbol rbDLStdcallCallbackAddrs
callback-3.obj : error LNK2001: unresolved external symbol rbDLStdcallCallbackAddrs

etc.

So I'm a little lost at this point.

Hope this helps,

Bill
=end

History

#1 Updated by Roger Pack almost 5 years ago

=begin
do you still get this error?
-=r
=end

#2 Updated by Yuki Sonoda almost 5 years ago

  • Status changed from Open to Feedback

=begin

=end

#3 Updated by Nobuyoshi Nakada over 4 years ago

  • Status changed from Feedback to Closed

=begin
remove callback-?.c underneath ext/dl.
=end

Also available in: Atom PDF