pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: vladimir.zvagolskiy@nasdaq.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13898: ecpg complains on nested comments in /usr/pgsql-9.4/include/informix/esql/datetime.h
Date: Fri, 29 Jan 2016 00:22:02 +0000
Message-ID: <20160129002202.2534.66092@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      13898
Logged by:          vladimir zvagolskiy
Email address:      vladimir.zvagolskiy@nasdaq.com
PostgreSQL version: 9.4.5
Operating system:   Centos 7.1
Description:        

Hi guys,

We experience a ecpg build issue for INFORMIX dialect:

[vlzv@inetlinux10 ecpg_9.4_issue]$ cat simple.ec
EXEC SQL include datetime;


[vlzv@inetlinux10 ecpg_9.4_issue]$ /usr/pgsql-9.4/bin/ecpg -C INFORMIX -I
/usr/pgsql-9.4/include/informix/esql simple.ec
/usr/pgsql-9.4/include/informix/esql/datetime.h:9: ERROR: nested /* ... */
comments

[vlzv@inetlinux10 ecpg_9.4_issue]$ rpm -qf
/usr/pgsql-9.4/include/informix/esql/datetime.h
postgresql94-devel-9.4.5-1PGDG.rhel7.x86_64


once I modify datetime.h file as per below diff, the issue disappears.
[vlzv@inetlinux10 ecpg_9.4_issue]$ cat -n
/usr/pgsql-9.4/include/informix/esql/datetime.h
     1  /* src/interfaces/ecpg/include/datetime.h */
     2
     3  #ifndef _ECPG_DATETIME_H
     4  #define _ECPG_DATETIME_H
     5
     6  #include <ecpg_informix.h>
     7
     8  #ifndef _ECPGLIB_H                              /* source created by
ecpg which defines thes
     9                                                                   /*
symbols */
    10  typedef timestamp dtime_t;
    11  typedef interval intrvl_t;
    12  #endif   /* ndef _ECPGLIB_H */
    13
    14  #endif   /* ndef _ECPG_DATETIME_H */

[vlzv@inetlinux10 ecpg_9.4_issue]$ diff
/usr/pgsql-9.4/include/informix/esql/datetime.h
/usr/pgsql-9.4/include/informix/esql/datetime.h.orig
9c9
<                                                                /* symbols
*/
---
>                                                                * symbols
*/


[vlzv@inetlinux10 ecpg_9.4_issue]$ /usr/pgsql-9.4/bin/ecpg -C INFORMIX -I
/usr/pgsql-9.4/include/informix/esql simple.ec
[vlzv@inetlinux10 ecpg_9.4_issue]$ ls -l ./simple.c
-rw-rw-r-- 1 vlzv vlzv 700 Jan 29 11:15 ./simple.c


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (13+ messages)  latest in thread

Message-ID: <20160129002202.2534.66092@wrigleys.postgresql.org>
Permalink:  ../20160129002202.2534.66092@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160129002202.2534.66092@wrigleys.postgresql.org

 · 

reply

Reply instructions:

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

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: vladimir.zvagolskiy@nasdaq.com
  Subject: Re: BUG #13898: ecpg complains on nested comments in /usr/pgsql-9.4/include/informix/esql/datetime.h
  In-Reply-To: <20160129002202.2534.66092@wrigleys.postgresql.org>
  References: <20160129002202.2534.66092@wrigleys.postgresql.org>

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

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