Building PHP on true 64
Lars Roland Kristiansen
m00lrk@math.ku.dk
Wed Feb 13 08:47:00 GMT 2002
Hi on Compaq website there is the folwing help to build php on true64
% (http://www.tru64unix.compaq.com/internet/faq.htm)
% One easy way to determine that all of the dependancies are met it to
% temporarily remove the -expect_unresolved "*" from the Makefile and add
% -lc to the link line. When the shared library is rebuilt, the linker
% will
% report all unresolved symbols. The only unresolved symbols should have
% the
% prefix ap_. Once you have resolved the other missing symbols by adding
% extra libraries to the link line, restore the -expect_unresolved "*" to
% the Makefile and then rebuild the shared library.
The start of the makefile look like this
% prefix = /usr/local
% exec_prefix = ${prefix}
% srcdir = .
% bindir = ${exec_prefix}/bin
% SHELL = /sbin/sh
% CC = gcc
% LN_S = ln -s
% AR = ar rc
% BINNAME = libphp3.so
% INSTALL_IT = $(APXS) -i -a -n php3 libphp3.so
% INCLUDE =
% -I$(srcdir) -I. -I/u01/app/oracle/product/8.1.7//rdbms/public
% -I/u01/app/oracle/produ$
% PROF_CFLAGS =
% CFLAGS_SHLIB = -fpic -DSHARED_MODULE
% LDFLAGS_SHLIB = -shared expect_unresolved "*" -s
% CPPFLAGS =
% CFLAGS = -g -O2 -DOSF1 -DUSE_HSREGEX -O2
% $(CFLAGS_SHLIB) $(CPPFLAGS) $(INCLUDE) $(PROF_CFLAGS)
% LDFLAGS = $(LDFLAGS_SHLIB)
% REGCFLAGS = $(CFLAGS)
% RANLIB = ranlib
% YACC = bison -y
% MAINT = #M#
% APXS = /usr/local/web/bin/apxs
% APXS_LDFLAGS = -L/usr/local/lib -L/u01/app/oracle/product/8.1.7//lib
% -lclntsh -lexc -lmld -l$
% APXS_EXP =
% WARNING_LEVEL =
What is it they whant me to do ???? - if i put -lc after CC = gcc then i
get
% ld -shared -expect_unresolved "*" -s -o libphp3.so mod_php3.o
% libmodphp3-so.a -L/usr/local/lib -L/u01/app/oracle/product/8.1.7//lib
% -lclntsh -lexc -lmld -lrt -laio_raw -lm -ldb -lm -lresolv -rpath
% /u01/app/oracle/product/8.1.7//lib
Please help.
___
Mvh./Yours sincerely
Lars
========================================================================
Lars Roland Kristiansen | Email: m00lrk@math.ku.dk
Stu. Sci. Math/Computer science | TLF(home): 39670663
Copenhagen University - | Home address: Emdrupvej 175
Institute for Mathematical Sciences | C/O Rune Bruhn 2400 Copenhagen NV
Url: www.math.ku.dk |
========================================================================
"Politics is for the moment, equations are forever"
- Albert Einstein
More information about the Gcc-help
mailing list