I can't make apxs generate so's by default. It makes an lo instead. If I force it to make an so with the -o option it get many link errors about the apache API calls.
Ran this: /usr/sbin/apxs -o mod_access.so -c mod_access.c Got this: /etc/httpd/build/libtool --silent --mode=compile cc -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REE NTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -g -O2 -p thread -DNO_DBM_REWRITEMAP -I/usr/include/httpd -c -o mod_access.lo mod_access.c && touch mod_access.slo /etc/httpd/build/libtool --silent --mode=link gcc -o mod_access.so -rpath /usr/lib/httpd/modules -module -avoid-version mod_access.lo /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function `_start': /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x1 8): undefined reference to `main' mod_access.o: In function `create_access_dir_config': /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:118: undefined reference to `apr_pcalloc' /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:124: undefined reference to `apr_array_make' /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:125: undefined reference to `apr_array_make' mod_access.o: In function `allow_cmd': /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:156: undefined reference to `apr_pstrdup' /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:164: undefined reference to `apr_array_push' /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:178: undefined reference to `apr_ipsubnet_create' /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:184: undefined reference to `apr_strerror' /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:185: undefined reference to `apr_pstrdup' /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:189: undefined reference to `apr_ipsubnet_create' /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:191: undefined reference to `apr_strerror' /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:192: undefined reference to `apr_pstrdup' mod_access.o: In function `find_allowdeny': /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:254: undefined reference to `apr_table_get' /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:263: undefined reference to `apr_ipsubnet_test' /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:272: undefined reference to `ap_get_remote_host' mod_access.o: In function `check_dir_access': /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:322: undefined reference to `ap_satisfies' /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:322: undefined reference to `ap_some_auth_required' /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:324: undefined reference to `ap_log_rerror' mod_access.o: In function `register_hooks': /home/rje/httpd-2.0.39/modules/aaa/mod_access.c:334: undefined reference to `ap_hook_access_checker' collect2: ld returned 1 exit status apxs:Error: Command failed with rc=65536 . Any ideas? Thanks, Rob