From patchwork Tue May 12 19:51:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 471521 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 8B3EC14078C for ; Wed, 13 May 2015 05:51:48 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BEE0F8B1EB; Tue, 12 May 2015 19:51:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eQDxD76sBiVc; Tue, 12 May 2015 19:51:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id F2E618AF6B; Tue, 12 May 2015 19:51:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 8122F1BFC15 for ; Tue, 12 May 2015 19:51:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 797F491606 for ; Tue, 12 May 2015 19:51:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U1zRP4EbdDua for ; Tue, 12 May 2015 19:51:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by whitealder.osuosl.org (Postfix) with ESMTPS id 825E3915AB for ; Tue, 12 May 2015 19:51:42 +0000 (UTC) Received: from linux.local ([94.216.53.169]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LzcIM-1ZDnS43WEc-014mbJ for ; Tue, 12 May 2015 21:51:38 +0200 From: Peter Seiderer To: buildroot@busybox.net Date: Tue, 12 May 2015 21:51:37 +0200 Message-Id: <1431460297-1278-1-git-send-email-ps.report@gmx.net> X-Mailer: git-send-email 2.1.4 X-Provags-ID: V03:K0:yzD3UvxJX3gqokThdi/6tTYodEONMQ2ZTggkFMXwpnz3ZhfFGPS lWUfe9f4eGhabScCgIGJqAk3o2zcAoM3vhmCMKqBbpTMWOoiIKhDUUuneWPsLWjMfs7asAX iUkypZI3iAtJnsuxDNcglavNx4ZaUaV+FUuxN4i5gJeLyuGUMhf2besmMlo9eQ+DalCAnuO BulH8+rh4gdCieTt6yZuQ== X-UI-Out-Filterresults: notjunk:1; Subject: [Buildroot] [RFC v1] rsyslog: fix xtensa/uclibc-ng postgresql linking problem X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add explicit linking with '-lm', fixes missing __isnan while postgresql configure detection. Fixes [1]: checking for pg_config... (cached) /home/seiderer/Work/zeiss/freescale-imx6/build_xtensa_001/host/usr/xtensa-buildroot-linux-uclibc/sysroot/usr/bin/pg_config checking for PQconnectdb in -lpq... no configure: error: in `/home/seiderer/Work/zeiss/freescale-imx6/build_xtensa_001/build/rsyslog-8.9.0': configure: error: PgSQL library is missing From rsyslog-8.9.0/config.log: configure:17859: checking for PQconnectdb in -lpq configure:17885: .../host/usr/bin/xtensa-linux-gcc -std=c99 -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -mlongcalls -mtext-section-literals -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c -lpq -L.../host/usr/xtensa-buildroot-linux-uclibc/sysroot/usr/lib >&5 .../host/usr/xtensa-buildroot-linux-uclibc/sysroot/usr/lib/libpq.so: undefined reference to `__isnan' [1] http://autobuild.buildroot.net/results/e76/e769982e3131581b38698c109c9bc5215e3d5b11 Signed-off-by: Peter Seiderer --- Similare patch(es) to fix the problem (plus additional -lpthread) from Yann E. MORIN and Bernd Kuhls: https://patchwork.ozlabs.org/patch/460348/ --- package/rsyslog/rsyslog.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/rsyslog/rsyslog.mk b/package/rsyslog/rsyslog.mk index 99e6eba..2998c9f 100644 --- a/package/rsyslog/rsyslog.mk +++ b/package/rsyslog/rsyslog.mk @@ -48,6 +48,8 @@ ifeq ($(BR2_PACKAGE_POSTGRESQL),y) RSYSLOG_DEPENDENCIES += postgresql RSYSLOG_CONF_OPTS += --enable-pgsql RSYSLOG_CONF_ENV += ac_cv_prog_PG_CONFIG=$(STAGING_DIR)/usr/bin/pg_config +# fix libpq linking problem with xtensa/uclibc-ng toolchain +RSYSLOG_CONF_ENV += LIBS="-lm" else RSYSLOG_CONF_OPTS += --disable-pgsql endif