php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1510 -R options needed for linking -lttf and -lpq
Submitted: 1999-06-08 10:36 UTC Modified: 1999-07-17 12:03 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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: veit at nexen dot com
New email:
PHP Version: OS:

 

 [1999-06-08 10:36 UTC] veit at nexen dot com
I had to modify configure 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 file to get this to work for me:

Change (second occurrence of)

  LIBS="-lttf $LIBS"

to

  TTF_LIBDIR=/opt/gnu/lib
  TTF_LIB = -lttf
  if test -n "$APXS"; then
      TTF_LFLAGS="-L$TTF_LIBDIR ${apxs_runpath_switch}$TTF_LIBDIR'"
  else
      TTF_LFLAGS="-L$TTF_LIBDIR ${ld_runpath_switch}$TTF_LIBDIR"
  fi
  LIBS="$TTF_LFLAGS $TTF_LIB $LIBS"


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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-09 10:57 UTC] paul at cvs dot php dot net
Duplicate of #1518
 [1999-07-17 12:03 UTC] sas at cvs dot php dot net
fixed some time ago
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 15:01:32 2024 UTC