DeveloperSide.NET Forums
February 24, 2020, 11:49:01 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  DeveloperSide.NET / Building a Web Server, for Linux / How to build my customCModule on Apache 2 without DSO on: May 05, 2005, 05:25:46 PM
How can I build the my custom module on Apache 2.0 without the DSO support. On Apache 1.3 we have been doing folowing steps to build the module but the build tools seems to be changed in Apache 2.0. Any help / links would be appreciated:
THE PROCESS ON APACHE 1.3
Add the following line to the end of the Configuration.tmpl file in the Apache source directory:

AddModule modules/myModule/myModule.o
Copy your Configuration.tmpl file and name it Configuration:

$ cp Configuration.tmpl Configuration
Make any necessary changes to your Configuration file as described in the Apache installation documentation.

From your main Apache directory, complete the Apache installation as described in the Apache installation documentation. For example:

$ ./configure --prefix=/usr/local/apache
$ make
$ make install

WHAT WOULD BE THE CORRESPONDING FLAGS IN THIS CASE IN APACHE 2.0 to build this module without DSO. I am a bit new to Apache 2.0 its guru please suggest some links. Thanks in advance....
2  DeveloperSide.NET / Building a Web Server, for Linux / Apache 2 startup gives unresolved external on HP UX11i on: May 05, 2005, 05:18:52 PM
I am really struggling with this issue with no clue of how to narrow down that whether the issue is in my environment / my build process / or my custom module:-

I am bit new to HP UX still tried the following

$ httpd
Syntax error on line 233 of /home1/saurabhs/vivek/apache2Install/conf/httpd.conf:
Cannot load /home1/saurabhs/vivek/apache2Install/modules/myModuleApache.so into server: Unresolved external

This error doesn't indicate which symbol its not able to locate...
Have following options tried:
$ ldd -r dynamoApache.so
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/lib/libdld.2 =>    /usr/lib/libdld.2
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        symbol not found: apr_bucket_type_eos   (myModuleApache.so)
        symbol not found: ap_hook_child_init    (myModuleApache.so)
        symbol not found: ap_hook_handler       (myModuleApache.so)
        symbol not found: ap_hook_translate_name        (myModuleApache.so)
        symbol not found: ap_hook_fixups        (myModuleApache.so)
        symbol not found: apr_pool_cleanup_register     (myModuleApache.so)
        symbol not found: apr_palloc    (myModuleApache.so)
        symbol not found: ap_log_error  (myModuleApache.so)
        symbol not found: ap_get_server_name    (myModuleApache.so)
        symbol not found: apr_table_get (myModuleApache.so)
        symbol not found: ap_get_remote_host    (myModuleApache.so)
        symbol not found: ap_get_server_port    (myModuleApache.so)
        symbol not found: ap_run_http_method    (myModuleApache.so)
        symbol not found: apr_table_elts        (myModuleApache.so)
        symbol not found: apr_brigade_create    (myModuleApache.so)
        symbol not found: ap_get_brigade        (myModuleApache.so)
        symbol not found: apr_brigade_destroy   (myModuleApache.so)
        symbol not found: apr_brigade_flatten   (myModuleApache.so)
        symbol not found: ap_rwrite     (myModuleApache.so)
        symbol not found: ap_rflush     (myModuleApache.so)
        symbol not found: apr_pstrdup   (myModuleApache.so)
        symbol not found: apr_pstrcat   (myModuleApache.so)
        symbol not found: apr_table_add (myModuleApache.so)
        symbol not found: apr_table_set (myModuleApache.so)
        symbol not found: ap_os_escape_path     (myModuleApache.so)
        symbol not found: ap_construct_url      (myModuleApache.so)
        symbol not found: apr_table_setn        (myModuleApache.so)

And
$ chatr myModuleApache.so
myModuleApache.so:
         shared library
         shared library dynamic path search:
             SHLIB_PATH     enabled   second
             embedded path  enabled   first  /home1/saurabhs/vivek/apache2Install/modules
         internal name:
             myModuleApache.sl
         shared library list:
             dynamic   /usr/lib/libc.2
         shared vtable support disabled
         static branch prediction disabled
         executable from stack: D (default)
         kernel assisted branch prediction enabled
         lazy swap allocation disabled
         text segment locking disabled
         data segment locking disabled
         third quadrant private data space disabled
         fourth quadrant private data space disabled
         data page size: D (default)
         instruction page size: D (default)

Tried running pxdb debugger but no success, tried with lot of CFLAGS settings / SHLIB_PATH but with no success.

any indication of how to debug this problem further wud be gr8 help. Thanks...
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!