From owner-freebsd-office@FreeBSD.ORG Tue May 29 22:50:32 2012 Return-Path: Delivered-To: office@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D874106564A; Tue, 29 May 2012 22:50:32 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (unknown [IPv6:2a03:6f00:1::5c35:743c]) by mx1.freebsd.org (Postfix) with ESMTP id 1DF478FC16; Tue, 29 May 2012 22:50:31 +0000 (UTC) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1SZVFG-0006Fb-41; Wed, 30 May 2012 02:50:30 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 83BCFB84D; Wed, 30 May 2012 02:50:29 +0400 (MSK) Received: by hades.panopticon (Postfix, from userid 1000) id 7A4BADD2; Wed, 30 May 2012 02:50:29 +0400 (MSK) To: FreeBSD-gnats-submit@freebsd.org From: Dmitry Marakasov X-send-pr-version: 3.113 X-GNATS-Notify: Message-Id: <20120529225029.7A4BADD2@hades.panopticon> Date: Wed, 30 May 2012 02:50:29 +0400 (MSK) Cc: office@FreeBSD.org Subject: [PATCH] editors/libreoffice: add LDFLAGS X-BeenThere: freebsd-office@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Office applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2012 22:50:32 -0000 >Submitter-Id: current-users >Originator: Dmitry Marakasov >Organization: >Confidential: no >Synopsis: [PATCH] editors/libreoffice: add LDFLAGS >Severity: serious >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 9.0-RELEASE amd64 >Environment: System: FreeBSD hades.panopticon 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 10 01:33:18 MSK 2012 >Description: LO doesn't configure for me with all options disabled: --- checking which db to use... external checking db-42/db.h usability... no checking db-42/db.h presence... no checking for db-42/db.h... no checking db42/db.h usability... yes checking db42/db.h presence... yes checking for db42/db.h... yes checking whether db is at least 4.1... yes checking for dbopen in -ldb-4.2... no checking for __db185_open in -ldb-4.2... no checking for dbopen in -ldb-4.2... no checking for __db185_open in -ldb-4.2... no configure: error: db library not found. Use the correct -L flag, or install the Berkeley db development package. --- config.log: --- configure:23270: checking for dbopen in -ldb-4.2 configure:23305: clang -o conftest -O2 -pipe -march=nocona -fno-strict-aliasing -I/usr/local/include -I/usr/local/include/db42 -rpath=/usr/lib:/usr/local/lib conftest.c -ldb-4.2 >&5 clang: warning: argument unused during compilation: '-rpath=/usr/lib:/usr/local/lib' /usr/bin/ld: cannot find -ldb-4.2 clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:23312: $? = 1 --- Adding standard LDFLAGS fixes it. Port maintainer (office@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: CVS) >How-To-Repeat: Try to build libreoffice with all options disabled. >Fix: --- libreoffice-3.5.2_2.patch begins here --- Index: Makefile =================================================================== RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/editors/libreoffice/Makefile,v retrieving revision 1.43 diff -u -u -r1.43 Makefile --- Makefile 6 May 2012 23:44:41 -0000 1.43 +++ Makefile 29 May 2012 22:47:12 -0000 @@ -236,6 +236,7 @@ MAKE_ENV+= USE_GMAKE=1 DESTDIR=${LODESTDIR} CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/db${BDB_VER} +LDFLAGS+= -L${LOCALBASE}/lib .if defined(WITH_PGSQL) USE_PGSQL= yes --- libreoffice-3.5.2_2.patch ends here ---