Skip to content

Instantly share code, notes, and snippets.

View zdavatz's full-sized avatar
🎯
Focusing

Zeno R.R. Davatz zdavatz

🎯
Focusing
View GitHub Profile
@zdavatz
zdavatz / make mod_ruby MinGW Windows Vista
Created February 1, 2011 13:14
output of "make" mod_ruby on MinGW, Windows Vista
C:\Users\zdavatz\software\mod_ruby>make
gcc -shared -o mod_ruby.so apache_cookie.o apache_multipart_buffer.o apache_request.o apachelib.o array_header.o bucket.o connection.o cookie.o error.o mod_ruby
.o multival.o paramtable.o request.o ruby_config.o ruby_shared_stub.o server.o table.o upload.o uri.o -L"C:\Apache2.2\lib" -L"C:\Ruby-1.8.6-oniguruma\lib" -llib
apr-1 -llibaprutil-1 -llibhttpd -lmsvcrt-ruby18
apache_request.o:apache_request.c:(.text+0x1815): undefined reference to `_imp__apr_month_snames'
apache_request.o:apache_request.c:(.text+0x1831): undefined reference to `_imp__apr_day_snames'
apachelib.o:apachelib.c:(.text+0x33a): undefined reference to `_imp__ap_server_root'
bucket.o:bucket.c:(.text+0x111): undefined reference to `_imp__apr_bucket_type_flush'
bucket.o:bucket.c:(.text+0x156): undefined reference to `_imp__apr_bucket_type_eos'
bucket.o:bucket.c:(.text+0x19b): undefined reference to `_imp__apr_bucket_type_file'
@zdavatz
zdavatz / DLL linkage against MinGW
Created February 3, 2011 09:47
Apache mod_ruby compile error with MinGW on Windows Vista
apache_request.o:apache_request.c:(.text+0x1a1b): undefined reference to `_imp__apr_month_snames'
apache_request.o:apache_request.c:(.text+0x1a3f): undefined reference to `_imp__apr_day_snames'
apachelib.o:apachelib.c:(.text+0x33a): undefined reference to `_imp__ap_server_root'
bucket.o:bucket.c:(.text+0x111): undefined reference to `_imp__apr_bucket_type_flush'
bucket.o:bucket.c:(.text+0x156): undefined reference to `_imp__apr_bucket_type_eos'
bucket.o:bucket.c:(.text+0x19b): undefined reference to `_imp__apr_bucket_type_file'
@zdavatz
zdavatz / Makefile mod_ruby with MinGW for Windows Vista
Created February 3, 2011 15:24
Makefile mod_ruby with MinGW for Windows Vista
APACHE_ROOT=C:\Apache2.2
RUBY_ROOT=C:\Ruby-1.8.6-oniguruma
SRCS = \
apache_cookie.c \
apache_multipart_buffer.c \
apache_request.c \
apachelib.c \
array_header.c \
bucket.c \
connection.c \
@zdavatz
zdavatz / objdump -p libapr-1.a
Created February 4, 2011 08:12
objdump -p libapr-1.a
Time/Date Thu Jan 01 01:00:00 1970
Magic 0000
MajorLinkerVersion 0
MinorLinkerVersion 0
SizeOfCode 00000000
SizeOfInitializedData 00000000
SizeOfUninitializedData 00000000
AddressOfEntryPoint 00000000
BaseOfCode 00000000
BaseOfData 00000000
@zdavatz
zdavatz / Makefile mod_ruby Windows Vista MinGW
Created February 7, 2011 10:07
Makefile mod_ruby Windows Vista MinGW
APACHE_ROOT=C:/Apache2.2
RUBY_ROOT=C:/Ruby-1.8.6-oniguruma
SRCS = \
apache_cookie.c \
apache_multipart_buffer.c \
apache_request.c \
apachelib.c \
array_header.c \
bucket.c \
connection.c \
@zdavatz
zdavatz / Makefile mod_ruby MinGW Apache for Windows
Created February 7, 2011 13:06
Makefile mod_ruby MinGW Apache for Windows
APACHE_ROOT=C:/Apache2.2
RUBY_ROOT=C:/Ruby-1.8.6-oniguruma
SRCS = \
apache_cookie.c \
apache_multipart_buffer.c \
apache_request.c \
apachelib.c \
array_header.c \
bucket.c \
connection.c \
@zdavatz
zdavatz / httpd -M on Apache for Windows with mod_ruby.so
Created February 8, 2011 09:53
httpd -M on Apache for Windows with mod_ruby.so
C:\Users\zdavatz\software\apr>httpd -M
Loaded Modules:
core_module (static)
win32_module (static)
mpm_winnt_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
asis_module (shared)
@zdavatz
zdavatz / "httpd -e debug" mod_ruby windows
Created February 8, 2011 14:28
httpd -e debug mod_ruby windows
C:\Apache2.2\conf\extra>httpd -e debug
[Tue Feb 08 15:26:30 2011] [debug] mod_so.c(246): loaded module actions_module
[Tue Feb 08 15:26:30 2011] [debug] mod_so.c(246): loaded module alias_module
[Tue Feb 08 15:26:30 2011] [debug] mod_so.c(246): loaded module asis_module
[Tue Feb 08 15:26:30 2011] [debug] mod_so.c(246): loaded module auth_basic_module
[Tue Feb 08 15:26:30 2011] [debug] mod_so.c(246): loaded module authn_default_module
[Tue Feb 08 15:26:30 2011] [debug] mod_so.c(246): loaded module authn_file_module
[Tue Feb 08 15:26:30 2011] [debug] mod_so.c(246): loaded module authz_default_module
[Tue Feb 08 15:26:30 2011] [debug] mod_so.c(246): loaded module authz_groupfile_module
[Tue Feb 08 15:26:30 2011] [debug] mod_so.c(246): loaded module authz_host_module
@zdavatz
zdavatz / mod_ruby.conf Windows Apache 2.2.17
Created February 9, 2011 13:55
mod_ruby.conf Windows Apache 2.2.17 placed in C:\Apache2.2\conf\extra
# Note: /usr/local/apache/libexec/mod_ruby.so is just an example.
# You should specify the correct path to mod_ruby.so.
LoadModule ruby_module modules/mod_ruby.so
# # If ClearModuleList is used in your httpd.conf, you should use AddModule
# # to activate the ruby module.
# AddModule mod_ruby.c
# If the ruby module is installed, this will be enabled.
<IfModule mod_ruby.c>
@zdavatz
zdavatz / gist:818519
Created February 9, 2011 14:00
httpd_vhosts.conf Apache 2.2.17 Windows mod_ruby in C:\Apache2.2\conf\extra
NameVirtualHost *:80
<VirtualHost *:80>
ServerName de.oddb.win
DocumentRoot C:\Users\zdavatz\de.oddb.org\doc
DirectoryIndex index.rbx
RubyAddPath 'C:/Ruby-1.8.6-oniguruma/lib/ruby/gems/1.8/gems/de.oddb-2.0.0/lib'
RubyRequire 'sbsm/trans_handler'
SetHandler ruby-object
RubyTransHandler SBSM::ZoneTransHandler.instance