cygwin - Disable ruby extension -
i'm trying compile ruby 1.9.2-p0 sctraches under win7 x64 cygwin.. goes fine, extensions compiled until reaches win32ole ext fails following errors:
win32ole.o: in function `load_conv_function51932': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:934: undefined reference `_clsid_cmultilanguage' win32ole.o: in function `fole_activex_initialize': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:4762: undefined reference `_iid_ipersistmemory' win32ole.o: in function `mf_queryinterface': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:597: undefined reference `_iid_iunknown' /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:597: undefined reference `_iid_imessagefilter' win32ole.o: in function `queryinterface': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:699: undefined reference `_iid_iunknown' /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:699: undefined reference `_iid_idispatch' win32ole.o: in function `eventsink_queryinterface': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:7571: undefined reference `_iid_iunknown' /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:7571: undefined reference `_iid_idispatch' win32ole.o: in function `fole_each': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:4014: undefined reference `_guid_null' /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:4031: undefined reference `_iid_ienumvariant' win32ole.o: in function `load_conv_function51932': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:934: undefined reference `_clsid_cmultilanguage' /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:934: undefined reference `_clsid_cmultilanguage' /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:934: undefined reference `_clsid_cmultilanguage' win32ole.o: in function `find_default_source': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:8174: undefined reference `_iid_iprovideclassinfo2' /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:8190: undefined reference `_iid_iprovideclassinfo' win32ole.o: in function `ev_advise': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:8308: undefined reference `_iid_iconnectionpointcontainer' win32ole.o: in function `load_conv_function51932': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:934: undefined reference `_clsid_cmultilanguage' win32ole.o: in function `ole_create_dcom': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:2615: undefined reference `_iid_idispatch' win32ole.o: in function `fole_initialize': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:3248: undefined reference `_iid_idispatch' win32ole.o: in function `load_conv_function51932': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:934: undefined reference `_clsid_cmultilanguage' win32ole.o: in function `fole_respond_to': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:4516: undefined reference `_guid_null' win32ole.o: in function `ole_variant2val': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:2262: undefined reference `_iid_idispatch' win32ole.o: in function `ole_invoke': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:3392: undefined reference `_guid_null' /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:3450: undefined reference `_guid_null' /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:3364: undefined reference `_guid_null' /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:3467: undefined reference `_guid_null' /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:3506: undefined reference `_guid_null' win32ole.o:/home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:3481: more undefined references `_guid_null' follow win32ole.o: in function `fole_s_connect': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:2718: undefined reference `_iid_idispatch' win32ole.o: in function `ole_bind_obj': /home/jack/ruby-1.9.2-p0/ext/win32ole/win32ole.c:2656: undefined reference `_iid_idispatch' collect2: ld returned 1 exit status make: *** [../../.ext/i386-cygwin/win32ole.so] error 1
the makefile builds through gcc following options:
gcc -shared -s -o ../../.ext/i386-cygwin/win32ole.so win32ole.o -l. -l../.. -l. -wl,--enable-auto-image-base,--enable-auto-import -lruby191 -ladvapi32 -lkernel32 -luser32 -luuid -loleaut32 -lole32 -lpthread -lrt -ldl -lcrypt
i don't know why happening (probably header resource unavailable) don't care extension (i don't think use it) wonder how disable win32ole extension make
phase , skip it.
i suppose there's way don't know how..
thanks in advance!
do ./configure --help
, note options
--with-exts=exts --with-out-ext=exts
i've got same setup, win 7 x86_64 cygwin 1.7, , had no problems building extension. gcc command line same yours. microsoft docs mention mlang.dll check for, suppose.
Comments
Post a Comment