pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedpsqlodbc: HEAD fails to build with recent clang
5+ messages / 4 participants
[nested] [flat]
* psqlodbc: HEAD fails to build with recent clang
@ 2015-05-06 04:07 Alex Dunn <dunn.alex@gmail.com>
0 siblings, 2 replies; 5+ messages in thread
From: Alex Dunn @ 2015-05-06 04:07 UTC (permalink / raw)
To: pgsql-bugs
Beginning (I think) in Mavericks, Clang has begun taking functions and
defining them as macros; they then conflict with declarations via
headers. I think this is what's happening with `strlcat` in the most
recent psqlodbc, since it builds fine with GCC.
Here are the build logs with system info (errors start at L15 of 03.make):
https://gist.github.com/dunn/f6ed7ac29a23aa06ba65#file-03-make-L15
Clang is: Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
—Alex Dunn
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: psqlodbc: HEAD fails to build with recent clang
@ 2015-05-06 18:13 Peter Eisentraut <peter_e@gmx.net>
parent: Alex Dunn <dunn.alex@gmail.com>
1 sibling, 0 replies; 5+ messages in thread
From: Peter Eisentraut @ 2015-05-06 18:13 UTC (permalink / raw)
To: Alex Dunn <dunn.alex@gmail.com>; pgsql-bugs
On 5/6/15 12:07 AM, Alex Dunn wrote:
> Beginning (I think) in Mavericks, Clang has begun taking functions and
> defining them as macros; they then conflict with declarations via
> headers. I think this is what's happening with `strlcat` in the most
> recent psqlodbc, since it builds fine with GCC.
I think you want this mailing list:
http://www.postgresql.org/list/pgsql-odbc/
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: psqlodbc: HEAD fails to build with recent clang
@ 2015-05-06 23:25 Heikki Linnakangas <hlinnaka@iki.fi>
parent: Alex Dunn <dunn.alex@gmail.com>
1 sibling, 2 replies; 5+ messages in thread
From: Heikki Linnakangas @ 2015-05-06 23:25 UTC (permalink / raw)
To: Alex Dunn <dunn.alex@gmail.com>; pgsql-bugs
On 05/06/2015 07:07 AM, Alex Dunn wrote:
> Beginning (I think) in Mavericks, Clang has begun taking functions and
> defining them as macros; they then conflict with declarations via
> headers. I think this is what's happening with `strlcat` in the most
> recent psqlodbc, since it builds fine with GCC.
>
> Here are the build logs with system info (errors start at L15 of 03.make):
> https://gist.github.com/dunn/f6ed7ac29a23aa06ba65#file-03-make-L15
>
> Clang is: Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Hmm, I think this is because there's a typo in our misc.h header file
(it was checking HAVE_STRLCPY instead of HAVE_STRLCAT), and because of
the typo it always defines a prototype for strlcat(), even when the
system provides that function. And that prototype then conflicts with
the one from the system headers.
I've pushed a fix to that, I hope it fixed the build for you.
- Heikki
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: psqlodbc: HEAD fails to build with recent clang
@ 2015-05-07 00:25 Alex Dunn <dunn.alex@gmail.com>
parent: Heikki Linnakangas <hlinnaka@iki.fi>
1 sibling, 0 replies; 5+ messages in thread
From: Alex Dunn @ 2015-05-07 00:25 UTC (permalink / raw)
To: Heikki Linnakangas <hlinnaka@iki.fi>; +Cc: pgsql-bugs
That fixes it, at least on my system. Thanks!
On Thu, May 07, 2015 at 02:25:49AM +0300, Heikki Linnakangas wrote:
> On 05/06/2015 07:07 AM, Alex Dunn wrote:
> >Beginning (I think) in Mavericks, Clang has begun taking functions and
> >defining them as macros; they then conflict with declarations via
> >headers. I think this is what's happening with `strlcat` in the most
> >recent psqlodbc, since it builds fine with GCC.
> >
> >Here are the build logs with system info (errors start at L15 of 03.make):
> >https://gist.github.com/dunn/f6ed7ac29a23aa06ba65#file-03-make-L15
> >
> >Clang is: Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
>
> Hmm, I think this is because there's a typo in our misc.h header file (it
> was checking HAVE_STRLCPY instead of HAVE_STRLCAT), and because of the typo
> it always defines a prototype for strlcat(), even when the system provides
> that function. And that prototype then conflicts with the one from the
> system headers.
>
> I've pushed a fix to that, I hope it fixed the build for you.
>
> - Heikki
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: psqlodbc: HEAD fails to build with recent clang
@ 2015-05-09 18:13 Bruce Momjian <bruce@momjian.us>
parent: Heikki Linnakangas <hlinnaka@iki.fi>
1 sibling, 0 replies; 5+ messages in thread
From: Bruce Momjian @ 2015-05-09 18:13 UTC (permalink / raw)
To: Heikki Linnakangas <hlinnaka@iki.fi>; +Cc: Alex Dunn <dunn.alex@gmail.com>; pgsql-bugs
On Thu, May 7, 2015 at 02:25:49AM +0300, Heikki Linnakangas wrote:
> On 05/06/2015 07:07 AM, Alex Dunn wrote:
> >Beginning (I think) in Mavericks, Clang has begun taking functions and
> >defining them as macros; they then conflict with declarations via
> >headers. I think this is what's happening with `strlcat` in the most
> >recent psqlodbc, since it builds fine with GCC.
> >
> >Here are the build logs with system info (errors start at L15 of 03.make):
> >https://gist.github.com/dunn/f6ed7ac29a23aa06ba65#file-03-make-L15
> >
> >Clang is: Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
>
> Hmm, I think this is because there's a typo in our misc.h header
> file (it was checking HAVE_STRLCPY instead of HAVE_STRLCAT), and
> because of the typo it always defines a prototype for strlcat(),
> even when the system provides that function. And that prototype then
> conflicts with the one from the system headers.
>
> I've pushed a fix to that, I hope it fixed the build for you.
Offlist, I didn't know you were working on ODBC --- very good.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2015-05-09 18:13 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-05-06 04:07 psqlodbc: HEAD fails to build with recent clang Alex Dunn <dunn.alex@gmail.com>
2015-05-06 18:13 ` Peter Eisentraut <peter_e@gmx.net>
2015-05-06 23:25 ` Heikki Linnakangas <hlinnaka@iki.fi>
2015-05-07 00:25 ` Alex Dunn <dunn.alex@gmail.com>
2015-05-09 18:13 ` Bruce Momjian <bruce@momjian.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox