Bug #1518: -R options needed for linking -lttf and -lpq
| From: | veit at nexen dot com | Date: | Wed, 09 Jun 1999 14:46:29 +0000 |
| Subject: | Bug #1518: -R options needed for linking -lttf and -lpq | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-6765@lists.php.net to get a copy of this message | ||
From: veit@nexen.com
Operating system: Solaris 2.5.1
PHP version: 3.0.9
PHP Bug Type: Installation problem
Bug description: -R options needed for linking -lttf and -lpq
Note: This should supercede Bug id #1510 since I could not modify it.
I had to modify configure.in so that -R options were passed to the
linker for the ttf and pq libraries. Otherwise, when apache
dynamically loaded the mod_php.so it would get "unable to find
library" errors. Here are the changes I made to the configure.in file
to get this to work for me:
Change
AC_CHECK_LIB(gd, gdImageLine)
to
AC_CHECK_LIB(gd, gdImageLine, [ GD_LIBS="-lgd" ])
Change
AC_CHECK_LIB(ttf, TT_Open_Face)
to
AC_CHECK_LIB(ttf, TT_Open_Face, [
TTF_LIBDIR=/opt/gnu/lib
if test -n "$APXS"; then
TTF_LFLAGS="-L$TTF_LIBDIR ${apxs_runpath_switch}$TTF_LIBDIR' -lttf"
else
TTF_LFLAGS="-L$TTF_LIBDIR ${ld_runpath_switch}$TTF_LIBDIR -lttf"
fi
GD_LIBS="$GD_LIBS $TTF_LFLAGS"
],,)
Change
PGSQL_LFLAGS=-L$PGSQL_LIBDIR
to
if test -n "$APXS"; then
PGSQL_LFLAGS="-L$PGSQL_LIBDIR ${apxs_runpath_switch}$PGSQL_LIBDIR'"
else
PGSQL_LFLAGS="-L$PGSQL_LIBDIR ${ld_runpath_switch}$PGSQL_LIBDIR"
fi
I ran configure with the following options:
setenv CC cc
setenv CPPFLAGS -I/opt/gnu/include
setenv ORACLE_HOME /opt/oracle
./configure --prefix=/opt/gnu \
--with-apxs=/opt/apache/apache_1.3.6/bin/apxs \
--with-config-file-path=/opt/apache/apache_1.3.6 \
--with-pgsql=/opt/postgresql --with-oracle