From owner-freebsd-ports Sat Dec 16 12:10:14 2000 From owner-freebsd-ports@FreeBSD.ORG Sat Dec 16 12:10:02 2000 Return-Path: Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0647337B402 for ; Sat, 16 Dec 2000 12:10:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eBGKA1i97649; Sat, 16 Dec 2000 12:10:01 -0800 (PST) (envelope-from gnats) Resent-Date: Sat, 16 Dec 2000 12:10:01 -0800 (PST) Resent-Message-Id: <200012162010.eBGKA1i97649@freefall.freebsd.org> Resent-From: gnats-admin@FreeBSD.org (GNATS Management) Resent-To: freebsd-ports@FreeBSD.org Resent-Reply-To: gnats-admin@FreeBSD.org, parag@codegen.com Received: from pinhead.parag.codegen.com (207-44-235-154.CodeGen.COM [207.44.235.154]) by hub.freebsd.org (Postfix) with ESMTP id DC17037B402 for ; Sat, 16 Dec 2000 12:09:04 -0800 (PST) Received: (from parag@localhost) by pinhead.parag.codegen.com (8.11.1/8.11.1) id eBGK94m27689; Sat, 16 Dec 2000 12:09:04 -0800 (PST) (envelope-from parag) Message-Id: <200012162009.eBGK94m27689@pinhead.parag.codegen.com> Date: Sat, 16 Dec 2000 12:09:04 -0800 (PST) From: parag@codegen.com Sender: parag@pinhead.parag.codegen.com Reply-To: parag@codegen.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/23588: Bug in mod_php4 build with PostgreSQL support enabled Resent-Sender: gnats@FreeBSD.org Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 23588 >Category: ports >Synopsis: Bug in mod_php4+PostgreSQL build when postgresql7+SSL enabled >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 16 12:10:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Parag Patel >Release: FreeBSD 4.2-STABLE i386 >Organization: CodeGen, Inc. >Environment: Latest postgresql7 port with SSL turned on and apache13 ports installed. mod_php4 is configured with PostreSQL support. Otherwise standard 4.2-STABLE build as of one week ago. >Description: If the postgresql7 port is built with its new SSL support turned on, and mod_php4's PostreSQL support is turned on, configure will fail because "-lssl -lcrypto" libraries are not on mod_php4's configure script's various link-lines. >How-To-Repeat: Install postgresql7 port with SSL turned on, then configure mod_php4 with PostreSQL support, and try "make". >Fix: My hack was to modify the configure script to add "-lssl -lcrypto" wherever "-lpq" was used. I've added this to patch-aq below but I'm not sure it's the correct fix. If PostreSQL is configured without SSL support, and the FreeBSD system does NOT have -lssl -lcrypto installed, it may fail to configure and build. --- configure.orig Sat Dec 16 11:50:24 2000 +++ configure Sat Dec 16 11:53:51 2000 @@ -33410,14 +33410,14 @@ old_LIBS="$LIBS" old_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -L$PGSQL_LIBDIR" - echo $ac_n "checking for PQcmdTuples in -lpq -lssl""... $ac_c" 1>&6 -echo "configure:33415: checking for PQcmdTuples in -lpq -lssl" >&5 + echo $ac_n "checking for PQcmdTuples in -lpq -lssl -lcrypto""... $ac_c" 1>&6 +echo "configure:33415: checking for PQcmdTuples in -lpq -lssl -lcrypto" >&5 ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lpq -lssl $LIBS" +LIBS="-lpq -lssl -lcrypto $LIBS" cat > conftest.$ac_ext <&6 fi - echo $ac_n "checking for PQoidValue in -lpq -lssl""... $ac_c" 1>&6 -echo "configure:33458: checking for PQoidValue in -lpq -lssl" >&5 + echo $ac_n "checking for PQoidValue in -lpq -lssl -lcrypto""... $ac_c" 1>&6 +echo "configure:33458: checking for PQoidValue in -lpq -lssl -lcrypto" >&5 ac_lib_var=`echo pq'_'PQoidValue | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lpq -lssl $LIBS" +LIBS="-lpq -lssl -lcrypto $LIBS" cat > conftest.$ac_ext <&6 fi - echo $ac_n "checking for PQclientEncoding in -lpq -lssl""... $ac_c" 1>&6 -echo "configure:33501: checking for PQclientEncoding in -lpq -lssl" >&5 + echo $ac_n "checking for PQclientEncoding in -lpq -lssl -lcrypto""... $ac_c" 1>&6 +echo "configure:33501: checking for PQclientEncoding in -lpq -lssl -lcrypto" >&5 ac_lib_var=`echo pq'_'PQclientEncoding | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lpq -lssl $LIBS" +LIBS="-lpq -lssl -lcrypto $LIBS" cat > conftest.$ac_ext <&6 fi - echo $ac_n "checking for pg_encoding_to_char in -lpq -lssl""... $ac_c" 1>&6 -echo "configure:33544: checking for pg_encoding_to_char in -lpq -lssl" >&5 + echo $ac_n "checking for pg_encoding_to_char in -lpq -lssl -lcrypto""... $ac_c" 1>&6 +echo "configure:33544: checking for pg_encoding_to_char in -lpq -lssl -lcrypto" >&5 ac_lib_var=`echo pq'_'pg_encoding_to_char | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lpq -lssl $LIBS" +LIBS="-lpq -lssl -lcrypto $LIBS" cat > conftest.$ac_ext <&6 @@ -39430,18 +39395,6 @@ else echo "$ac_t""no" 1>&6 - - case "sybtcl" in - c|c_r|pthread*) ;; - *) - - - LIBS="-lsybtcl $LIBS" - - - ;; - esac - fi echo $ac_n "checking for insck__getVdate in -linsck""... $ac_c" 1>&6 @@ -44175,8 +44128,8 @@ LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ +${CONFIG_SHELL-/bin/sh} /usr/local/share/libtool/ltconfig --no-reexec \ +$libtool_flags --no-verify --disable-ltlibs /usr/local/share/libtool/ltmain.sh $lt_target \ || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } # Reload cache, that may have been modified by ltconfig @@ -44190,7 +44143,7 @@ # This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" +LIBTOOL_DEPS="/usr/local/share/libtool/ltconfig --disable-ltlibs /usr/local/share/libtool/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message