All of lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC v1] rsyslog: fix xtensa/uclibc-ng postgresql linking problem
Date: Tue, 12 May 2015 23:13:03 +0300	[thread overview]
Message-ID: <20150512201303.GC2558@tarshish> (raw)
In-Reply-To: <1431460297-1278-1-git-send-email-ps.report@gmx.net>

Hi Peter,

On Tue, May 12, 2015 at 09:51:37PM +0200, Peter Seiderer wrote:
> 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 <ps.report@gmx.net>
> ---
> 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"

I have just sent a patch fixing the same issue by removing the libm dependency 
of libpq.so. Please see http://patchwork.ozlabs.org/patch/471526/.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

      reply	other threads:[~2015-05-12 20:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-12 19:51 [Buildroot] [RFC v1] rsyslog: fix xtensa/uclibc-ng postgresql linking problem Peter Seiderer
2015-05-12 20:13 ` Baruch Siach [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150512201303.GC2558@tarshish \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.