Re: [PATCH] reset-db test: use the common definition of env/conn

From: "Inoue, Hiroshi" <h-inoue(at)dream(dot)email(dot)ne(dot)jp>
To: Paul Wise <pabs3(at)bonedaddy(dot)net>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: [PATCH] reset-db test: use the common definition of env/conn
Date: 2020-07-27 11:32:42
Message-ID: 805273d7-23e8-9231-0770-517011f7f63d@dream.email.ne.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi Paul,

I would commit the patch.

Thanks.
Hiroshi Inoue

On 2020/07/26 14:16, Paul Wise wrote:
> Test builds fail with GCC 10 due to conflicting variable names:
>
> /usr/bin/ld: exe/common.o:(.bss+0x8): multiple definition of `env'; /tmp/ccqfSqFX.o:(.bss+0x8): first defined here
> /usr/bin/ld: exe/common.o:(.bss+0x0): multiple definition of `conn'; /tmp/ccqfSqFX.o:(.bss+0x0): first defined here
>
> Fixes: https://bugs.debian.org/957714
> ---
> test/reset-db.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/test/reset-db.c b/test/reset-db.c
> index 80946c8..5e05019 100644
> --- a/test/reset-db.c
> +++ b/test/reset-db.c
> @@ -17,8 +17,6 @@
>
> #include "src/common.h"
>
> -SQLHENV env;
> -SQLHDBC conn;
> static HSTMT hstmt = SQL_NULL_HSTMT;
>
> static void

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Ian 2020-07-27 12:18:22 Boolean
Previous Message Paul Wise 2020-07-26 05:16:29 [PATCH] reset-db test: use the common definition of env/conn