Forum: Ruby Compiling mod_ruby on mac os x

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
pipeek (Guest)
on 2007-05-09 22:41
Hi! I have problem with mod_ruby compilation on os X (10.4.9)



% make
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c mod_ruby.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from mod_ruby.c:33:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from mod_ruby.c:33:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c ruby_config.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from ruby_config.c:31:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from ruby_config.c:31:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c apachelib.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from apachelib.c:35:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from apachelib.c:35:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c array_header.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from array_header.c:28:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from array_header.c:28:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c table.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from table.c:28:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from table.c:28:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c connection.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from connection.c:28:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from connection.c:28:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c server.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from server.c:31:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from server.c:31:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c request.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from request.c:36:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from request.c:36:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c upload.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from upload.c:31:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from upload.c:31:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c cookie.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from cookie.c:31:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from cookie.c:31:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c paramtable.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from paramtable.c:31:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from paramtable.c:31:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c multival.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from multival.c:112:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from multival.c:112:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c bucket.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from bucket.c:28:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from bucket.c:28:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c apache_request.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from apache_request.c:19:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from apache_request.c:19:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c apache_multipart_buffer.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from apache_multipart_buffer.c:17:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from apache_multipart_buffer.c:17:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
gcc -g -O2  -fno-common -pipe -fno-common -Wall  -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT  -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -I.
-I/sw/lib/ruby/1.8/i686-darwin -I/usr/include/httpd -I../lib/expat-lite
-c apache_cookie.c
In file included from /usr/include/httpd/ap_config.h:1129,
                 from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from apache_cookie.c:17:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern"
redefined
In file included from /usr/include/httpd/httpd.h:29,
                 from mod_ruby.h:52,
                 from apache_cookie.c:17:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of
the previous definition
cc -dynamic -bundle   -L/sw/lib -o mod_ruby.so mod_ruby.o ruby_config.o
apachelib.o array_header.o table.o connection.o server.o request.o
upload.o cookie.o paramtable.o multival.o bucket.o apache_request.o
apache_multipart_buffer.o apache_cookie.o -lruby  -ldl -lobjc
/usr/bin/ld: Undefined symbols:
_ap_add_cgi_vars
_ap_add_common_vars
_ap_add_version_component
_ap_kill_timeout
_ap_log_error
_ap_make_array
_ap_make_table
_ap_null_cleanup
_ap_palloc
_ap_pcalloc
_ap_pstrdup
_ap_pstrndup
_ap_push_array
_ap_register_cleanup
_ap_signal
_ap_soft_timeout
_ap_table_get
_ap_table_set
_ap_append_arrays
_ap_overlay_tables
_ap_psprintf
_core_module
_ap_chdir_file
_ap_get_server_built
_ap_get_server_version
_ap_server_root
_ap_unescape_url
_ap_clear_table
_ap_table_add
_ap_table_merge
_ap_table_unset
_ap_allow_options
_ap_allow_overrides
_ap_bgetopt
_ap_construct_url
_ap_custom_response
_ap_default_type
_ap_escape_html
_ap_get_basic_auth_pw
_ap_get_client_block
_ap_get_remote_host
_ap_get_remote_logname
_ap_get_server_name
_ap_get_server_port
_ap_hard_timeout
_ap_internal_redirect
_ap_is_initial_req
_ap_note_auth_failure
_ap_note_basic_auth_failure
_ap_note_digest_auth_failure
_ap_psignature
_ap_requires
_ap_reset_timeout
_ap_rflush
_ap_rputc
_ap_rwrite
_ap_satisfies
_ap_send_fd_length
_ap_send_http_header
_ap_setup_client_block
_ap_should_client_block
_ap_sub_req_lookup_file
_ap_sub_req_lookup_uri
_ap_table_do
_ap_table_setn
_ap_day_snames
_ap_find_path_info
_ap_getword
_ap_getword_conf
_ap_ind
_ap_log_rerror
_ap_make_dirstr_parent
_ap_month_snames
_ap_pstrcat
_ap_getword_nulls
_ap_os_escape_path
collect2: ld returned 1 exit status
make: *** [mod_ruby.so] Error 1
This topic is locked and can not be replied to.