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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: veit at nexen dot com
New email:
PHP Version: OS:

 

 [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-2022 The PHP Group
All rights reserved.
Last updated: Mon Aug 15 22:05:43 2022 UTC