Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Sep 2017 12:08:43 +0200
From:      Christoph Moench-Tegeder <cmt@burggraben.net>
To:        Muhammad Moinur Rahman <bofh@FreeBSD.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r450102 - head/databases/postgresql-odbc
Message-ID:  <20170919100843.GA1552@elch.exwg.net>
In-Reply-To: <201709190506.v8J563c8052058@repo.freebsd.org>
References:  <201709190506.v8J563c8052058@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
## Muhammad Moinur Rahman (bofh@FreeBSD.org):

> Log:
>   databases/postgresql-odbc: Update version 09.06.0310=>09.06.0500

Unfortunately, this breaks on 10.3:
win_unicode.c:81:21: error: use of undeclared identifier 'u'
                char16_t *c16dt = u"a";

That's from upstream commit
https://git.postgresql.org/gitweb/?p=psqlodbc.git;a=commit;h=5eeb9345c7f7c67fd1530db779e188e40ba73273

The "u" modifier was introduced in C11, which only newer clang (e.g. clang40)
use by default. Fortunately, one can request C11 support from the old
clang in FreeBSD 10: Just add "CFLAGS+= -std=c11" and for good measure
on clang-less platforms add "compiler:c11" to USES. That fixed the build
for me.

Regards,
Christoph

-- 
Spare Space



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170919100843.GA1552>