gunzip < apache_1.3.27.tar.gz | tar -xvf- cd apache_1.3.27
$ CC=gcc OPTIM='-Wall -g' ./configure --enable-module=most --enable-shared=max --prefix=$HOME/1327_gcc $ makeWith some builds of gcc, you may hit an error like this when linking an Apache DSO:
ld: 0711-317 ERROR: Undefined symbol: .__fixsfsiIt could be something other than
__fixsfsi
, but for this
class of errors the symbol starts with two underscores (i.e.,
"__
"). A leading period may be displayed after
"Undefined symbol
" in the error message, but it is not part
of the symbol.
The fix for this is to add __fixsfsi
(and any other such
symbols) to the end of src/support/httpd.exp
and run make
again. This may be an interative process. If you hit a different
symbol next time, add it too to src/support/httpd.exp
and run make
yet again. You shouldn't hit more than
a handful of such symbols.
Note: When Apache 1.3.28 is released, you can instead do something like this on your configure so that there are no unresolved gcc symbols in Apache DSOs:
EXTRA_LDFLAGS_SHLIB='-L/directory/containing/libgcc.a -lgcc' ./configure --other-opts(Support for the
EXTRA_LDFLAGS_SHLIB
environment variable
arrives with Apache 1.3.28.)
And finally:
$ make install
$ CC=xlc_r OPTIM='-qinfo=pro -qfullpath -g' ./configure --enable-module=most --enable-shared=max --prefix=$HOME/1327_xlc $ make $ make install