php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1518 -R options needed for linking -lttf and -lpq
Submitted: 1999-06-09 10:46 UTC Modified: 1999-06-20 09:23 UTC
From: veit at nexen dot com Assigned:
Status: Closed Package: Installation problem
PHP Version: 3.0.9 OS: Solaris 2.5.1
Private report: No CVE-ID: None
 [1999-06-09 10:46 UTC] veit at nexen dot com
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-20 09:23 UTC] sas at cvs dot php dot net
Thanks for your suggestions. The CVS tree should incorporate the features you need now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 21:01:36 2024 UTC