[#33000] [Ruby 1.9-Bug#4014][Open] Case-Sensitivity of Property Names Depends on Regexp Encoding — Run Paint Run Run <redmine@...>

Bug #4014: Case-Sensitivity of Property Names Depends on Regexp Encoding

11 messages 2010/11/01

[#33021] Re: [Ruby 1.9-Feature#4015][Open] File::DIRECT Constant for O_DIRECT — Yukihiro Matsumoto <matz@...>

Hi,

15 messages 2010/11/02

[#33139] [Ruby 1.9-Bug#4044][Open] Regex matching errors when using \W character class and /i option — Ben Hoskings <redmine@...>

Bug #4044: Regex matching errors when using \W character class and /i option

8 messages 2010/11/11

[#33162] Windows Unicode (chcp 65001) Generates incorrect output — Luis Lavena <luislavena@...>

Hello,

10 messages 2010/11/14

[#33246] [Ruby 1.9-Feature#4068][Open] Replace current standard Date/DateTime library with home_run — Jeremy Evans <redmine@...>

Feature #4068: Replace current standard Date/DateTime library with home_run

40 messages 2010/11/17

[#33255] [Ruby 1.9-Feature#4071][Open] support basic auth for Net::HTTP.get requests — "coderrr ." <redmine@...>

Feature #4071: support basic auth for Net::HTTP.get requests

23 messages 2010/11/19

[#33322] [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Shugo Maeda <redmine@...>

Feature #4085: Refinements and nested methods

94 messages 2010/11/24
[#33345] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Yusuke ENDOH <mame@...> 2010/11/25

Hi,

[#33356] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Shugo Maeda <shugo@...> 2010/11/25

Hi,

[#33375] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Yusuke ENDOH <mame@...> 2010/11/25

Hi,

[#33381] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Shugo Maeda <shugo@...> 2010/11/25

Hi,

[#33387] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Magnus Holm <judofyr@...> 2010/11/25

Woah, this is very nice stuff! Some comments/questions:

[#33487] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Charles Oliver Nutter <headius@...> 2010/11/30

This is a long response, and for that I apologize. I want to make sure

[#33535] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Yusuke ENDOH <mame@...> 2010/12/03

Hi,

[#33519] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Shugo Maeda <shugo@...> 2010/12/02

Hi,

[#33523] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Yusuke ENDOH <mame@...> 2010/12/02

Hi,

[#33539] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Shugo Maeda <shugo@...> 2010/12/03

Hi,

[#33543] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Yusuke ENDOH <mame@...> 2010/12/03

Hi,

[#33546] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Shugo Maeda <shugo@...> 2010/12/03

Hi,

[#33548] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Yusuke ENDOH <mame@...> 2010/12/03

Hi,

[#33567] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Shugo Maeda <shugo@...> 2010/12/04

Hi,

[#33595] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods — Charles Oliver Nutter <headius@...> 2010/12/06

On Sat, Dec 4, 2010 at 6:32 AM, Shugo Maeda <shugo@ruby-lang.org> wrote:

[#33367] Planning to release 1.8.7 fixes on 12/25 (Japanese timezone) — Urabe Shyouhei <shyouhei@...>

Hello,

20 messages 2010/11/25
[#33439] Re: Planning to release 1.8.7 fixes on 12/25 (Japanese timezone) — Luis Lavena <luislavena@...> 2010/11/27

2010/11/25 Urabe Shyouhei <shyouhei@ruby-lang.org>:

[#33456] [Request for Comment] avoid timer thread — SASADA Koichi <ko1@...>

Hi,

25 messages 2010/11/29
[#35152] Re: [Request for Comment] avoid timer thread — Mark Somerville <mark@...> 2011/02/08

On Mon, Nov 29, 2010 at 11:53:03AM +0900, SASADA Koichi wrote:

[#36077] Re: [Request for Comment] avoid timer thread — Mark Somerville <mark@...> 2011/05/09

On Tue, Feb 08, 2011 at 09:24:13PM +0900, Mark Somerville wrote:

[#36952] Re: [Request for Comment] avoid timer thread — Eric Wong <normalperson@...> 2011/06/10

Mark Somerville <mark@scottishclimbs.com> wrote:

[#37080] Re: [Request for Comment] avoid timer thread — Mark Somerville <mark@...> 2011/06/13

On Sat, Jun 11, 2011 at 05:57:11AM +0900, Eric Wong wrote:

[#37103] Re: [Request for Comment] avoid timer thread — Eric Wong <normalperson@...> 2011/06/13

Mark Somerville <mark@scottishclimbs.com> wrote:

[#37187] Re: [Request for Comment] avoid timer thread — SASADA Koichi <ko1@...> 2011/06/16

(2011/06/14 3:37), Eric Wong wrote:

[#37195] Re: [Request for Comment] avoid timer thread — Eric Wong <normalperson@...> 2011/06/17

SASADA Koichi <ko1@atdot.net> wrote:

[#37205] Re: [Request for Comment] avoid timer thread — Eric Wong <normalperson@...> 2011/06/17

Eric Wong <normalperson@yhbt.net> wrote:

[#33469] [Ruby 1.9-Feature#4100][Open] Improve Net::HTTP documentation — Eric Hodel <redmine@...>

Feature #4100: Improve Net::HTTP documentation

12 messages 2010/11/29

[ruby-core:33438] [Ruby 1.8-Bug#4094][Open] cross-compilation from Linux to Windows fails DL compilation

From: Luis Lavena <redmine@...>
Date: 2010-11-27 20:55:30 UTC
List: ruby-core #33438
Bug #4094: cross-compilation from Linux to Windows fails DL compilation
http://redmine.ruby-lang.org/issues/show/4094

Author: Luis Lavena
Status: Open, Priority: Normal
Category: build, Target version: Ruby 1.8.7
ruby -v: ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]

Hello,

When cross-compiling ruby_1_8_7 branch under Ubuntu 10.04 (mingw32 cross compiler package), it fail with the following output:

==
compiling dl
make[1]: Entering directory `/home/user/projects/oss/cross-build/ext/dl'
Generating callback.func
mkmf.rb can't find header files for ruby at ../ruby/ruby.h
make[1]: *** [callback.func] Error 1
make[1]: Leaving directory `/home/user/projects/oss/cross-build/ext/dl'
make: *** [all] Error 1
==

The configure options used:

sh ../ruby/configure --enable-shared --disable-install-doc --host=i586-mingw32msvc --target=i386-mingw32

Attached find config.log (zipped), Makefile and mkmf.log from dl.

Thank you.


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

Attachments (3)

config.zip (20.7 KB, Archive)
Makefile (6.31 KB, text/plain)
SHELL = /bin/sh

#### Start of system configuration section. ####
top_srcdir = $(topdir)/../ruby
srcdir = $(top_srcdir)/ext/dl
topdir = ../..
hdrdir = $(top_srcdir)
VPATH = $(srcdir):$(topdir):$(hdrdir)
RUBYLIB = -
RUBYOPT = -rpurelib.rb
exec_prefix = $(prefix)
prefix = $(DESTDIR)/usr/local
sharedstatedir = $(prefix)/com
mandir = $(datarootdir)/man
psdir = $(docdir)
oldincludedir = $(DESTDIR)/usr/include
localedir = $(datarootdir)/locale
bindir = $(exec_prefix)/bin
libexecdir = $(exec_prefix)/libexec
sitedir = $(libdir)/ruby/site_ruby
htmldir = $(docdir)
vendorarchdir = $(vendorlibdir)/$(sitearch)
includedir = $(prefix)/include
infodir = $(datarootdir)/info
vendorlibdir = $(vendordir)/$(ruby_version)
sysconfdir = $(prefix)/etc
libdir = $(exec_prefix)/lib
sbindir = $(exec_prefix)/sbin
rubylibdir = $(libdir)/ruby/$(ruby_version)
docdir = $(datarootdir)/doc/$(PACKAGE)
dvidir = $(docdir)
vendordir = $(libdir)/ruby/vendor_ruby
datarootdir = $(prefix)/share
pdfdir = $(docdir)
archdir = $(rubylibdir)/$(arch)
sitearchdir = $(sitelibdir)/$(sitearch)
datadir = $(datarootdir)
localstatedir = $(prefix)/var
sitelibdir = $(sitedir)/$(ruby_version)

CC = i586-mingw32msvc-gcc
LIBRUBY = lib$(LIBRUBY_SO).a
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static

RUBY_EXTCONF_H = 
CFLAGS   =  -g -O2  $(cflags) -fno-defer-pop -fno-omit-frame-pointer 
INCFLAGS = -I. -I../.. -I../../../ruby -I../../../ruby/ext/dl
DEFS     = 
CPPFLAGS = -DHAVE_WINDOWS_H -DHAVE_GETLASTERROR -DHAVE_LOADLIBRARY -DHAVE_FREELIBRARY -DHAVE_GETPROCADDRESS    -I.
CXXFLAGS = $(CFLAGS) 
ldflags  = -L. 
dldflags =  -Wl,--enable-auto-image-base,--enable-auto-import,--export-all
archflag = 
DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
LDSHARED = i586-mingw32msvc-gcc -shared -s
AR = i586-mingw32msvc-ar
EXEEXT = .exe

RUBY_INSTALL_NAME = ruby
RUBY_SO_NAME = msvcrt-ruby18
arch = i386-mingw32
sitearch = i386-msvcrt
ruby_version = 1.8
ruby = ruby -I/home/user/projects/oss/cross-build -rfake  -I'$(topdir)'
RUBY = $(ruby)
RM = rm -f
MAKEDIRS = mkdir -p
INSTALL = /usr/bin/install -c
INSTALL_PROG = $(INSTALL) -m 0755
INSTALL_DATA = $(INSTALL) -m 644
COPY = cp

#### End of system configuration section. ####

preload = 

libpath = . $(topdir)
LIBPATH =  -L. -L$(topdir)
DEFFILE = 

CLEANFILES = test/test.o
DISTCLEANFILES = call.func callback.func cbtable.func dlconfig.rb ./dlconfig.h test/libtest.so test/*~ *~ mkmf.log

extout = $(topdir)/.ext
extout_prefix = $(extout)$(target_prefix)/
target_prefix = 
LOCAL_LIBS = 
LIBS = $(LIBRUBYARG_SHARED) -lkernel32  -lshell32 -lwsock32  
SRCS = dl.c ptr.c handle.c sym.c
OBJS = dl.o ptr.o handle.o sym.o
TARGET = dl
DLLIB = $(TARGET).so
EXTSTATIC = 
STATIC_LIB = $(TARGET).a

BINDIR        = $(extout)/bin
RUBYCOMMONDIR = $(extout)/common
RUBYLIBDIR    = $(RUBYCOMMONDIR)$(target_prefix)
RUBYARCHDIR   = $(extout)/$(arch)$(target_prefix)

TARGET_SO     = $(RUBYARCHDIR)/$(DLLIB)
CLEANLIBS     = $(RUBYARCHDIR)/$(TARGET).so $(RUBYARCHDIR)/$(TARGET).il? $(RUBYARCHDIR)/$(TARGET).tds $(RUBYARCHDIR)/$(TARGET).map
CLEANOBJS     = *.o *.a *.s[ol] *.pdb *.exp *.bak

all:		install
static:		$(STATIC_LIB) install-rb

clean:
		@-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)

distclean:	clean
		@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
		@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)

realclean:	distclean
install: install-so install-rb

install-so: $(RUBYARCHDIR)
install-so: $(RUBYARCHDIR)/$(DLLIB)
install-rb: pre-install-rb install-rb-default
install-rb-default: pre-install-rb-default
pre-install-rb: Makefile
pre-install-rb-default: Makefile
pre-install-rb-default: $(RUBYLIBDIR)/dl
install-rb-default: $(RUBYLIBDIR)/dl/win32.rb
$(RUBYLIBDIR)/dl/win32.rb: $(srcdir)/lib/dl/win32.rb $(RUBYLIBDIR)/dl
	$(COPY) $(srcdir)/lib/dl/win32.rb $(@D)
install-rb-default: $(RUBYLIBDIR)/dl/import.rb
$(RUBYLIBDIR)/dl/import.rb: $(srcdir)/lib/dl/import.rb $(RUBYLIBDIR)/dl
	$(COPY) $(srcdir)/lib/dl/import.rb $(@D)
install-rb-default: $(RUBYLIBDIR)/dl/struct.rb
$(RUBYLIBDIR)/dl/struct.rb: $(srcdir)/lib/dl/struct.rb $(RUBYLIBDIR)/dl
	$(COPY) $(srcdir)/lib/dl/struct.rb $(@D)
install-rb-default: $(RUBYLIBDIR)/dl/types.rb
$(RUBYLIBDIR)/dl/types.rb: $(srcdir)/lib/dl/types.rb $(RUBYLIBDIR)/dl
	$(COPY) $(srcdir)/lib/dl/types.rb $(@D)
pre-install-rb: $(RUBYARCHDIR)
install-rb: $(RUBYARCHDIR)/dlconfig.h
$(RUBYARCHDIR)/dlconfig.h: dlconfig.h $(RUBYARCHDIR)
	$(COPY) dlconfig.h $(@D)
install-rb: $(RUBYARCHDIR)/dl.h
$(RUBYARCHDIR)/dl.h: $(srcdir)/dl.h $(RUBYARCHDIR)
	$(COPY) $(srcdir)/dl.h $(@D)
$(RUBYLIBDIR)/dl:
	$(MAKEDIRS) $@
$(RUBYARCHDIR):
	$(MAKEDIRS) $@

site-install: site-install-so site-install-rb
site-install-so: install-so
site-install-rb: install-rb

.SUFFIXES: .c .m .cc .cxx .cpp .C .o

.cc.o:
	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<

.cxx.o:
	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<

.cpp.o:
	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<

.C.o:
	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<

.c.o:
	$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<

$(RUBYARCHDIR)/$(DLLIB): $(OBJS) Makefile
	@-$(RM) $@
	@-$(MAKEDIRS) $(@D)
	$(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)

$(STATIC_LIB): $(OBJS)
	$(AR) cru $@ $(OBJS)
	@-i586-mingw32msvc-ranlib $(DLLIB) 2> /dev/null || true

###
LDSHARED_TEST = $(LDSHARED) $(LDFLAGS) test/test.o -o test/libtest.so $(LOCAL_LIBS)

libtest.so: test/libtest.so

test/libtest.so: test/test.o $(srcdir)/test/libtest.def
	$(RUBY) -rftools -e 'ARGV.each do|d|File.mkpath(File.dirname(d))end' $@
	$(LDSHARED_TEST:dl.def=test/libtest.def)

test/test.o: $(srcdir)/test/test.c
	@$(RUBY) -rftools -e 'File.mkpath(*ARGV)' test
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/test/test.c -o $@

test:: dl.so libtest.so force
	$(RUBY) -I. -I$(srcdir)/lib $(srcdir)/test/test.rb

force:

.PHONY: force test

allclean: distclean
	@rm -f $(CLEANFILES) $(DISTCLEANFILES)

$(OBJS): ./dlconfig.h

sym.o: dl.h call.func

dl.o: dl.h callback.func cbtable.func

ptr.o: dl.h

handle.o: dl.h

call.func: $(srcdir)/mkcall.rb ./dlconfig.rb
	@echo "Generating call.func"
	@$(RUBY) $(srcdir)/mkcall.rb > $@

callback.func: $(srcdir)/mkcallback.rb ./dlconfig.rb
	@echo "Generating callback.func"
	@$(RUBY) $(srcdir)/mkcallback.rb > $@

cbtable.func: $(srcdir)/mkcbtable.rb ./dlconfig.rb
	@echo "Generating cbtable.func"
	@$(RUBY) $(srcdir)/mkcbtable.rb > $@

debug:
	$(MAKE) CPPFLAGS="$(CPPFLAGS) -DDEBUG"
mkmf.log (4.32 KB, text/x-log)
"i586-mingw32msvc-gcc -E -I../.. -I../../../ruby -I../../../ruby/ext/dl    -I. -g -O2    -fno-defer-pop -fno-omit-frame-pointer  conftest.c -o conftest.i"
conftest.c:3:2: error: #error int not needed
checked program was:
/* begin */
1: #include "config.h"
2: #if SIZEOF_INT == SIZEOF_LONG
3: #error int not needed
4: #endif
/* end */

"i586-mingw32msvc-gcc -E -I../.. -I../../../ruby -I../../../ruby/ext/dl    -I. -g -O2    -fno-defer-pop -fno-omit-frame-pointer  conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "config.h"
2: #if SIZEOF_FLOAT == SIZEOF_DOUBLE
3: #error float not needed
4: #endif
/* end */

"i586-mingw32msvc-gcc -E -I../.. -I../../../ruby -I../../../ruby/ext/dl    -I. -g -O2    -fno-defer-pop -fno-omit-frame-pointer  conftest.c -o conftest.i"
conftest.c:3:2: error: #error void* not needed
checked program was:
/* begin */
1: #include "config.h"
2: #if SIZEOF_VOIDP == SIZEOF_INT || SIZEOF_VOIDP == SIZEOF_LONG
3: #error void* not needed
4: #endif
/* end */

have_header: checking for windows.h... -------------------- yes

"i586-mingw32msvc-gcc -E -I../.. -I../../../ruby -I../../../ruby/ext/dl    -I. -g -O2    -fno-defer-pop -fno-omit-frame-pointer  conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include <windows.h>
/* end */

--------------------

have_library: checking for main() in -lkernel32... -------------------- yes

"i586-mingw32msvc-gcc -o conftest -I../.. -I../../../ruby -I../../../ruby/ext/dl    -I. -g -O2    -fno-defer-pop -fno-omit-frame-pointer conftest.c  -L. -L../.. -L.      -lmsvcrt-ruby18-static -lkernel32  -lshell32 -lwsock32  "
checked program was:
/* begin */
1: #include <windows.h>
2: #include <winsock.h>
3: 
4: /*top*/
5: int main() { return 0; }
6: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */

--------------------

have_func: checking for GetLastError() in windows.h... -------------------- yes

"i586-mingw32msvc-gcc -o conftest -I../.. -I../../../ruby -I../../../ruby/ext/dl    -I. -g -O2    -fno-defer-pop -fno-omit-frame-pointer conftest.c  -L. -L../.. -L.     -lkernel32  -lmsvcrt-ruby18-static -lkernel32  -lshell32 -lwsock32  "
checked program was:
/* begin */
1: #include <windows.h>
2: #include <winsock.h>
3: #include <windows.h>
4: 
5: /*top*/
6: int main() { return 0; }
7: int t() { void ((*volatile p)()); p = (void ((*)()))GetLastError; return 0; }
/* end */

--------------------

have_header: checking for dlfcn.h... -------------------- no

"i586-mingw32msvc-gcc -E -I../.. -I../../../ruby -I../../../ruby/ext/dl    -I. -g -O2    -fno-defer-pop -fno-omit-frame-pointer  conftest.c -o conftest.i"
conftest.c:1:19: error: dlfcn.h: No such file or directory
checked program was:
/* begin */
1: #include <dlfcn.h>
/* end */

--------------------

have_func: checking for LoadLibrary()... -------------------- yes

"i586-mingw32msvc-gcc -o conftest -I../.. -I../../../ruby -I../../../ruby/ext/dl    -I. -g -O2    -fno-defer-pop -fno-omit-frame-pointer conftest.c  -L. -L../.. -L.     -lkernel32  -lmsvcrt-ruby18-static -lkernel32  -lshell32 -lwsock32  "
checked program was:
/* begin */
1: #include <windows.h>
2: #include <winsock.h>
3: 
4: /*top*/
5: int main() { return 0; }
6: int t() { void ((*volatile p)()); p = (void ((*)()))LoadLibrary; return 0; }
/* end */

--------------------

have_func: checking for FreeLibrary()... -------------------- yes

"i586-mingw32msvc-gcc -o conftest -I../.. -I../../../ruby -I../../../ruby/ext/dl    -I. -g -O2    -fno-defer-pop -fno-omit-frame-pointer conftest.c  -L. -L../.. -L.     -lkernel32  -lmsvcrt-ruby18-static -lkernel32  -lshell32 -lwsock32  "
checked program was:
/* begin */
1: #include <windows.h>
2: #include <winsock.h>
3: 
4: /*top*/
5: int main() { return 0; }
6: int t() { void ((*volatile p)()); p = (void ((*)()))FreeLibrary; return 0; }
/* end */

--------------------

have_func: checking for GetProcAddress()... -------------------- yes

"i586-mingw32msvc-gcc -o conftest -I../.. -I../../../ruby -I../../../ruby/ext/dl    -I. -g -O2    -fno-defer-pop -fno-omit-frame-pointer conftest.c  -L. -L../.. -L.     -lkernel32  -lmsvcrt-ruby18-static -lkernel32  -lshell32 -lwsock32  "
checked program was:
/* begin */
1: #include <windows.h>
2: #include <winsock.h>
3: 
4: /*top*/
5: int main() { return 0; }
6: int t() { void ((*volatile p)()); p = (void ((*)()))GetProcAddress; return 0; }
/* end */

--------------------

In This Thread

Prev Next