[
http://issues.apache.org/jira/browse/MODPYTHON-65?page=comments#action_12316428
]
Graham Dumpleton commented on MODPYTHON-65:
-------------------------------------------
To get past this, the following patch needs to be applied to dist/setup.py.in:
Index: dist/setup.py.in
===================================================================
--- dist/setup.py.in (revision 220194)
+++ dist/setup.py.in (working copy)
@@ -85,7 +85,7 @@
"""returns apache lib directory"""
apache_srcdir = getapache_srcdir()
if apache_srcdir is None:
- return ""
+ return getapxs_option("LIBDIR")
else:
return os.path.join(apache_srcdir, "lib")
This just means we get to the next problem though.
gcc -Wl,-F. -Wl,-F. -bundle -framework Python
build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/mod_python.o
build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/_apachemodule.o
build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/connobject.o
build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/filterobject.o
build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/hlist.o
build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/hlistobject.o
build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/requestobject.o
build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/serverobject.o
build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/tableobject.o
build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/util.o
-L/usr/local/apache-2.0/lib -lapr-0 -laprutil-0 -o
build/lib.darwin-7.7.0-Power_Macintosh-2.3/mod_python_so.so
ld: Undefined symbols:
_ap_add_cgi_vars
_ap_add_version_component
_ap_get_brigade
_ap_getword
_ap_getword_white
_ap_hook_access_checker
_ap_hook_auth_checker
_ap_hook_check_user_id
_ap_hook_child_init
_ap_hook_fixups
_ap_hook_handler
_ap_hook_header_parser
_ap_hook_log_transaction
_ap_hook_post_config
_ap_hook_post_read_request
_ap_hook_process_connection
_ap_hook_translate_name
_ap_hook_type_checker
_ap_is_directory
_ap_log_error
_ap_log_rerror
_ap_make_dirstr_parent
_ap_mpm_query
_ap_note_basic_auth_failure
_ap_pass_brigade
_ap_register_input_filter
_ap_register_output_filter
_unixd_config
_unixd_set_global_mutex_perms
_ap_conftree
_ap_server_root
_ap_unescape_url
_ap_add_common_vars
_ap_allow_methods
_ap_document_root
_ap_get_basic_auth_pw
_ap_get_client_block
_ap_get_remote_host
_ap_internal_redirect
_ap_meets_conditions
_ap_requires
_ap_rflush
_ap_rwrite
_ap_send_fd
_ap_set_content_length
_ap_set_content_type
_ap_setup_client_block
_ap_should_client_block
_ap_my_generation
_ap_scoreboard_image
_ap_loaded_modules
error: command 'gcc' failed with exit status 1
I am assuming for the moment that these are symbols that are within
the Apache executable itself, as they don't appear in libapr or libaprutil
libraries.
I can see that this move to setup.py away from libtool might cause
various problems on Mac OS X initially because of the quite
different way that it does creation of shared objects. :-(
> 3.2 working version will not install on Mac OS X (10.3.7)
> ---------------------------------------------------------
>
> Key: MODPYTHON-65
> URL: http://issues.apache.org/jira/browse/MODPYTHON-65
> Project: mod_python
> Type: Bug
> Components: core
> Versions: 3.2.0
> Environment: Mac OS X (10.3.7)
> Reporter: Graham Dumpleton
>
> Something is wrong with configure or setup.py file.
> /usr/bin/python setup.py build
> running build
> running build_py
> running build_ext
> building 'mod_python_so' extension
> gcc -Wl,-F. -Wl,-F. -bundle -framework Python
> build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/mod_python.o
>
> build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/_apachemodule.o
>
> build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/connobject.o
>
> build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/filterobject.o
>
> build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/hlist.o
>
> build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/hlistobject.o
>
> build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/requestobject.o
>
> build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/serverobject.o
>
> build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/tableobject.o
>
> build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/util.o
> -L -lapr-0 -laprutil-0 -o
> build/lib.darwin-7.7.0-Power_Macintosh-2.3/mod_python_so.so
> ld: -L: directory name missing
> error: command 'gcc' failed with exit status 1
> More later when I have a chance to work out what is wrong.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira