2002-05-22 20:52:33 UTC
I had a problem compiling this module under Solaris 2.6 using gcc v2.8.1. After making the following changes, I was able to get the module to compile and work successfully:
Edit tacacs_testclient.c
-Add "#include <limits.h>" near top of file
Edit Makefile
- Add the following to LDFLAGS "-lnsl -lsocket -lresolv"
- Add "getopt.o getopt1.o" to tacacs_testclient_OBJECT
- Remove "getopt.h" from EXTRA_tacacs_testclient_SOURCES
- Remove "$(GETOPT_HDRS)" from tacacs_testclient_SOURCES
Edit getopt.c
-Change "#include <strings.h>" to "#include "/usr/ucbinclude/strings.h""
Edit mod_tac.h
-Change "#include <strings.h>" to "#include "/usr/ucbinclude/strings.h""
Edit {apache root}/bin/apxs
-Change "my $CFG_CFLAGS_SHLIB = q();" to "my $CFG_CFLAGS_SHLIB = q(-fpic -DSHARED_MODULE);
-Change "my $CFG_LD_SHLIB = q(ld);" to "my $CFG_LD_SHLIB = q(gcc);"
-Change "my $CFG_LDFLAGS_SHLIB = q();" to "my $CFG_LD_SHLIB = q(-shared);"