I commited a fix. Let me know if it still fails. BTW, mod_jk2 is not even beta - we are still doing a lot of major changes and some important features are not yet finished. Don't waste your time with jk2 unless you want to contribute to the development ( sending feedback and comments and reviewing the code is an important contribution )
Costin On Sun, 28 Apr 2002, Michael Delamere wrote: > Hi, > > When comparing the 2 files that you suggested I notice the following: > > There seem to be a number of differences between the 2 files (possibly due > to apache2.0.35??) and "-prefer-pic" doesn´t exist in the rules.mk at all. > > regards > > Michael > > > > MAKEFILE: > ###### Based on rules.mk ########################################## > ALL_CFLAGS = $(EXTRA_CFLAGS) $(NOTEST_CFLAGS) $(CFLAGS) > ALL_CPPFLAGS = $(DEFS) $(EXTRA_CPPFLAGS) $(NOTEST_CPPFLAGS) $(CPPFLAGS) > ALL_LDFLAGS = $(EXTRA_LDFLAGS) $(NOTEST_LDFLAGS) $(LDFLAGS) > ALL_LIBS = $(EXTRA_LIBS) $(NOTEST_LIBS) $(LIBS) > ALL_INCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) > > # Compile commands > COMPILE = $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(ALL_INCLUDES) > > SH_COMPILE = $(LIBTOOL) --mode=compile $(COMPILE) -prefer-pic > MOD_LINK = $(LIBTOOL) --mode=link $(CC) -module -shared $(LT_LDFLAGS) > $(ALL_LDFLAGS) > > ############################################################################ > # > > > RULES.MK > ######################################################################## > # Combine all of the flags together in the proper order so that > # the user-defined flags can always override the configure ones, if needed. > # Note that includes are listed after the flags because -I options have > # left-to-right precedence and CPPFLAGS may include user-defined overrides. > # > ALL_CFLAGS = $(EXTRA_CFLAGS) $(NOTEST_CFLAGS) $(CFLAGS) > ALL_CPPFLAGS = $(DEFS) $(EXTRA_CPPFLAGS) $(NOTEST_CPPFLAGS) $(CPPFLAGS) > ALL_CXXFLAGS = $(EXTRA_CXXFLAGS) $(NOTEST_CXXFLAGS) $(CXXFLAGS) > ALL_LDFLAGS = $(EXTRA_LDFLAGS) $(NOTEST_LDFLAGS) $(LDFLAGS) > ALL_LIBS = $(EXTRA_LIBS) $(NOTEST_LIBS) $(LIBS) > ALL_INCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) > > # Compile commands > > COMPILE = $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(ALL_INCLUDES) > CXX_COMPILE = $(CXX) $(ALL_CXXFLAGS) $(ALL_CPPFLAGS) $(ALL_INCLUDES) > > SH_COMPILE = $(LIBTOOL) --mode=compile $(COMPILE) -c $< && touch $@ > SH_CXX_COMPILE = $(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $< && touch $@ > > LT_COMPILE = $(LIBTOOL) --mode=compile $(COMPILE) -c $< && touch $@ > LT_CXX_COMPILE = $(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $< && touch $@ > > # Link-related commands > > LINK = $(LIBTOOL) --mode=link $(COMPILE) $(LT_LDFLAGS) $(ALL_LDFLAGS) -o > $@ > SH_LINK = $(SH_LIBTOOL) --mode=link $(COMPILE) $(LT_LDFLAGS) $(ALL_LDFLAGS) > $(SH_LDFLAGS) $(CORE_IMPLIB) $(SH_LIBS) - > MOD_LINK = $(LIBTOOL) --mode=link $(COMPILE) -module $(LT_LDFLAGS) > $(ALL_LDFLAGS) -o $@ > ####################################################################### > > > > > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: "Michael Delamere" <[EMAIL PROTECTED]> > Cc: "List Tomcat-Dev" <[EMAIL PROTECTED]> > Sent: Sunday, April 28, 2002 3:31 PM > Subject: Re: mod_jk2 > > > > > > > > > > On Sun, 28 Apr 2002, Michael Delamere wrote: > > > > > Hi, > > > > > > When I try to run make in > > > "jakarta-tomcat-connectors/jk/native2/server/apache2" I get a compile > error. > > > One of the errors is: > > > > > > gcc: unrecognized option `-prefer-pic' > > > > > > Does this mean that I´ve got the wrong version of gcc? I´ve got v2.95 > > > installed. > > > > Are you on Linux ? The -prefer-pic seems to be supported - I cut&pasted it > > from the Apache's Makefile ( genereated by configure ). You can take a > > look in APACHE_HOME/build/rules.mk and 'synchronize' this with the jk > > makefile. > > ( and let us know what you change :-) > > > > In any case - -prefer-pic shouldn't be needed - I'll double check and > > remove it. > > > > Costin > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>