Debian Bug report logs - #741767
gretl: FTBFS: complete.c:129:41: error: 'CPPFunction' undeclared (first use in this function)

version graph

Package: src:gretl; Maintainer for src:gretl is Dirk Eddelbuettel <edd@debian.org>;

Reported by: David Suárez <david.sephirot@gmail.com>

Date: Sun, 16 Mar 2014 13:40:58 UTC

Severity: serious

Tags: jessie, sid

Found in version gretl/1.9.14-2

Fixed in version gretl/1.9.14-3

Done: Dirk Eddelbuettel <edd@debian.org>

Bug is archived. No further changes may be made.

Forwarded to Allin Cottrell <cottrell@wfu.edu>

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Dirk Eddelbuettel <edd@debian.org>:
Bug#741767; Package src:gretl. (Sun, 16 Mar 2014 13:41:04 GMT) (full text, mbox, link).


Acknowledgement sent to David Suárez <david.sephirot@gmail.com>:
New Bug report received and forwarded. Copy sent to Dirk Eddelbuettel <edd@debian.org>. (Sun, 16 Mar 2014 13:41:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: David Suárez <david.sephirot@gmail.com>
To: submit@bugs.debian.org
Subject: gretl: FTBFS: complete.c:129:41: error: 'CPPFunction' undeclared (first use in this function)
Date: Sun, 16 Mar 2014 13:46:06 +0100
Source: gretl
Version: 1.9.14-2
Severity: serious
Tags: jessie sid
User: debian-qa@lists.debian.org
Usertags: qa-ftbfs-20140315 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

On new readline versions old-style function typedefs have been deprecated.

Relevant part (hopefully):
> gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_REENTRANT -I.. -I.. -I../lib/src  -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H complete.c
> complete.c: In function 'initialize_readline':
> complete.c:129:41: error: 'CPPFunction' undeclared (first use in this function)
>      rl_attempted_completion_function = (CPPFunction *) gretl_completion;
>                                          ^
> complete.c:129:41: note: each undeclared identifier is reported only once for each function it appears in
> complete.c:129:54: error: expected expression before ')' token
>      rl_attempted_completion_function = (CPPFunction *) gretl_completion;
>                                                       ^
> make[2]: *** [complete.o] Error 1

The full build log is available from:
   http://aws-logs.debian.net/ftbfs-logs/2014/03/15/gretl_1.9.14-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



Reply sent to Dirk Eddelbuettel <edd@debian.org>:
You have marked Bug as forwarded. (Sun, 16 Mar 2014 15:00:20 GMT) (full text, mbox, link).


Message #8 received at 741767-forwarded@bugs.debian.org (full text, mbox, reply):

From: Dirk Eddelbuettel <edd@debian.org>
To: Allin Cottrell <cottrell@wfu.edu>
Cc: David Suárez <david.sephirot@gmail.com>, 741767-forwarded@bugs.debian.org
Subject: Re: Bug#741767: gretl: FTBFS: complete.c:129:41: error: 'CPPFunction' undeclared (first use in this function)
Date: Sun, 16 Mar 2014 09:58:41 -0500
Hi Allin,

Here is a fresh Debian bug report. It looks like that the bleeding edge
changed things -- in this case readline apparently had and no longer has
CPPFunction defined.

Can you take a look?

Thanks,  Dirk

On 16 March 2014 at 13:46, David Suárez wrote:
| Source: gretl
| Version: 1.9.14-2
| Severity: serious
| Tags: jessie sid
| User: debian-qa@lists.debian.org
| Usertags: qa-ftbfs-20140315 qa-ftbfs
| Justification: FTBFS on amd64
| 
| Hi,
| 
| During a rebuild of all packages in sid, your package failed to build on
| amd64.
| 
| On new readline versions old-style function typedefs have been deprecated.
| 
| Relevant part (hopefully):
| > gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_REENTRANT -I.. -I.. -I../lib/src  -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H complete.c
| > complete.c: In function 'initialize_readline':
| > complete.c:129:41: error: 'CPPFunction' undeclared (first use in this function)
| >      rl_attempted_completion_function = (CPPFunction *) gretl_completion;
| >                                          ^
| > complete.c:129:41: note: each undeclared identifier is reported only once for each function it appears in
| > complete.c:129:54: error: expected expression before ')' token
| >      rl_attempted_completion_function = (CPPFunction *) gretl_completion;
| >                                                       ^
| > make[2]: *** [complete.o] Error 1
| 
| The full build log is available from:
|    http://aws-logs.debian.net/ftbfs-logs/2014/03/15/gretl_1.9.14-2_unstable.log
| 
| A list of current common problems and possible solutions is available at
| http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
| 
| About the archive rebuild: The rebuild was done on EC2 VM instances from
| Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
| failed build was retried once to eliminate random failures.

-- 
Dirk Eddelbuettel | edd@debian.org | http://dirk.eddelbuettel.com



Message #9 received at 741767-forwarded@bugs.debian.org (full text, mbox, reply):

From: Allin Cottrell <cottrell@wfu.edu>
To: Dirk Eddelbuettel <edd@debian.org>
Cc: David Suárez <david.sephirot@gmail.com>, 741767-forwarded@bugs.debian.org
Subject: Re: Bug#741767: gretl: FTBFS: complete.c:129:41: error: 'CPPFunction' undeclared (first use in this function)
Date: Sun, 16 Mar 2014 16:14:03 +0000 (GMT)
On Sun, 16 Mar 2014, Dirk Eddelbuettel wrote:

> Here is a fresh Debian bug report. It looks like that the bleeding edge
> changed things -- in this case readline apparently had and no longer has
> CPPFunction defined.

Yep, that disappeared in readline 6.3. Gretl CVS is already up to date 
with the change. We should probably do a release before long.

-- 
Allin Cottrell
Department of Economics
Wake Forest University, NC




Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#741767; Package src:gretl. (Tue, 18 Mar 2014 11:39:16 GMT) (full text, mbox, link).


Acknowledgement sent to Dirk Eddelbuettel <edd@debian.org>:
Extra info received and forwarded to list. (Tue, 18 Mar 2014 11:39:16 GMT) (full text, mbox, link).


Message #14 received at 741767@bugs.debian.org (full text, mbox, reply):

From: Dirk Eddelbuettel <edd@debian.org>
To: Allin Cottrell <cottrell@wfu.edu>
Cc: Dirk Eddelbuettel <edd@debian.org>, David Suárez <david.sephirot@gmail.com>, 741767@bugs.debian.org
Subject: Re: Bug#741767: gretl: FTBFS: complete.c:129:41: error: 'CPPFunction' undeclared (first use in this function)
Date: Tue, 18 Mar 2014 06:37:44 -0500
On 16 March 2014 at 16:14, Allin Cottrell wrote:
| On Sun, 16 Mar 2014, Dirk Eddelbuettel wrote:
| 
| > Here is a fresh Debian bug report. It looks like that the bleeding edge
| > changed things -- in this case readline apparently had and no longer has
| > CPPFunction defined.
| 
| Yep, that disappeared in readline 6.3. Gretl CVS is already up to date 
| with the change. We should probably do a release before long.

Or else direct me to / help me to a patch that does the same?  Else gretl
risk being tossed out of the archive for 'being unable to build' :-/

Release sounds good though.

Dirk

-- 
Dirk Eddelbuettel | edd@debian.org | http://dirk.eddelbuettel.com



Information forwarded to debian-bugs-dist@lists.debian.org, Dirk Eddelbuettel <edd@debian.org>:
Bug#741767; Package src:gretl. (Tue, 18 Mar 2014 12:18:04 GMT) (full text, mbox, link).


Acknowledgement sent to r.lucchetti@univpm.it:
Extra info received and forwarded to list. Copy sent to Dirk Eddelbuettel <edd@debian.org>. (Tue, 18 Mar 2014 12:18:04 GMT) (full text, mbox, link).


Message #19 received at 741767@bugs.debian.org (full text, mbox, reply):

From: "Riccardo (Jack) Lucchetti" <r.lucchetti@univpm.it>
To: Dirk Eddelbuettel <edd@debian.org>, 741767@bugs.debian.org
Cc: Allin Cottrell <cottrell@wfu.edu>, David Suárez <david.sephirot@gmail.com>, debian-bugs-dist@lists.debian.org
Subject: Re: Bug#741767: gretl: FTBFS: complete.c:129:41: error: 'CPPFunction' undeclared (first use in this function)
Date: Tue, 18 Mar 2014 13:05:20 +0100 (CET)
[Message part 1 (text/plain, inline)]
On Tue, 18 Mar 2014, Dirk Eddelbuettel wrote:

>
> On 16 March 2014 at 16:14, Allin Cottrell wrote:
> | On Sun, 16 Mar 2014, Dirk Eddelbuettel wrote:
> |
> | > Here is a fresh Debian bug report. It looks like that the bleeding edge
> | > changed things -- in this case readline apparently had and no longer has
> | > CPPFunction defined.
> |
> | Yep, that disappeared in readline 6.3. Gretl CVS is already up to date
> | with the change. We should probably do a release before long.
>
> Or else direct me to / help me to a patch that does the same?  Else gretl
> risk being tossed out of the archive for 'being unable to build' :-/

Possibly, the following may be enough; could you please check?

--- complete.c	2007/08/22 15:10:47	1.12
+++ complete.c	2014/03/08 19:29:10	1.13
@@ -126,6 +126,6 @@
     rl_readline_name = "gretl";

     /* Tell the completer that we want a crack first. */
-    rl_attempted_completion_function = (CPPFunction *) gretl_completion;
+    rl_attempted_completion_function = (rl_completion_func_t *) gretl_completion;
 }


> Release sounds good though.

This should happen fairly soon, methinks.

-------------------------------------------------------
  Riccardo (Jack) Lucchetti
  Dipartimento di Scienze Economiche e Sociali (DiSES)

  Università Politecnica delle Marche
  (formerly known as Università di Ancona)

  r.lucchetti@univpm.it
  http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------

Information forwarded to debian-bugs-dist@lists.debian.org, Dirk Eddelbuettel <edd@debian.org>:
Bug#741767; Package src:gretl. (Tue, 18 Mar 2014 16:36:04 GMT) (full text, mbox, link).


Acknowledgement sent to Allin Cottrell <cottrell@wfu.edu>:
Extra info received and forwarded to list. Copy sent to Dirk Eddelbuettel <edd@debian.org>. (Tue, 18 Mar 2014 16:36:04 GMT) (full text, mbox, link).


Message #24 received at 741767@bugs.debian.org (full text, mbox, reply):

From: Allin Cottrell <cottrell@wfu.edu>
To: Dirk Eddelbuettel <edd@debian.org>
Cc: David Suárez <david.sephirot@gmail.com>, 741767@bugs.debian.org
Subject: Re: Bug#741767: gretl: FTBFS: complete.c:129:41: error: 'CPPFunction' undeclared (first use in this function)
Date: Tue, 18 Mar 2014 16:33:53 +0000 (GMT)
On Tue, 18 Mar 2014, Dirk Eddelbuettel wrote:

>
> On 16 March 2014 at 16:14, Allin Cottrell wrote:
> | On Sun, 16 Mar 2014, Dirk Eddelbuettel wrote:
> |
> | > Here is a fresh Debian bug report. It looks like that the bleeding edge
> | > changed things -- in this case readline apparently had and no longer has
> | > CPPFunction defined.
> |
> | Yep, that disappeared in readline 6.3. Gretl CVS is already up to date
> | with the change. We should probably do a release before long.
>
> Or else direct me to / help me to a patch that does the same?  Else gretl
> risk being tossed out of the archive for 'being unable to build' :-/
>
> Release sounds good though.

We'll try to get to a release soon, but in the meantime see

http://gretl.cvs.sourceforge.net/viewvc/gretl/gretl/cli/complete.c?r1=1.12&r2=1.13&view=patch

for the relevant patch (a simple one-liner).

--
Allin Cottrell
Department of Economics
Wake Forest University, NC





Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#741767; Package src:gretl. (Tue, 18 Mar 2014 17:18:27 GMT) (full text, mbox, link).


Acknowledgement sent to Dirk Eddelbuettel <edd@debian.org>:
Extra info received and forwarded to list. (Tue, 18 Mar 2014 17:18:28 GMT) (full text, mbox, link).


Message #29 received at 741767@bugs.debian.org (full text, mbox, reply):

From: Dirk Eddelbuettel <edd@debian.org>
To: r.lucchetti@univpm.it
Cc: Dirk Eddelbuettel <edd@debian.org>, 741767@bugs.debian.org, Allin Cottrell <cottrell@wfu.edu>, David Suárez <david.sephirot@gmail.com>, debian-bugs-dist@lists.debian.org
Subject: Re: Bug#741767: gretl: FTBFS: complete.c:129:41: error: 'CPPFunction' undeclared (first use in this function)
Date: Tue, 18 Mar 2014 12:04:48 -0500
On 18 March 2014 at 13:05, Riccardo (Jack) Lucchetti wrote:
| On Tue, 18 Mar 2014, Dirk Eddelbuettel wrote:
| 
| >
| > On 16 March 2014 at 16:14, Allin Cottrell wrote:
| > | On Sun, 16 Mar 2014, Dirk Eddelbuettel wrote:
| > |
| > | > Here is a fresh Debian bug report. It looks like that the bleeding edge
| > | > changed things -- in this case readline apparently had and no longer has
| > | > CPPFunction defined.
| > |
| > | Yep, that disappeared in readline 6.3. Gretl CVS is already up to date
| > | with the change. We should probably do a release before long.
| >
| > Or else direct me to / help me to a patch that does the same?  Else gretl
| > risk being tossed out of the archive for 'being unable to build' :-/
| 
| Possibly, the following may be enough; could you please check?
| 
| --- complete.c	2007/08/22 15:10:47	1.12
| +++ complete.c	2014/03/08 19:29:10	1.13
| @@ -126,6 +126,6 @@
|       rl_readline_name = "gretl";
| 
|       /* Tell the completer that we want a crack first. */
| -    rl_attempted_completion_function = (CPPFunction *) gretl_completion;
| +    rl_attempted_completion_function = (rl_completion_func_t *) gretl_completion;
|   }
| 

Awesome. Exactly what I needed.

Thanks!

Dirk

| 
| > Release sounds good though.
| 
| This should happen fairly soon, methinks.
| 
| -------------------------------------------------------
|    Riccardo (Jack) Lucchetti
|    Dipartimento di Scienze Economiche e Sociali (DiSES)
| 
|    Università Politecnica delle Marche
|    (formerly known as Università di Ancona)
| 
|    r.lucchetti@univpm.it
|    http://www2.econ.univpm.it/servizi/hpp/lucchetti
| -------------------------------------------------------
-- 
Dirk Eddelbuettel | edd@debian.org | http://dirk.eddelbuettel.com



Reply sent to Dirk Eddelbuettel <edd@debian.org>:
You have taken responsibility. (Wed, 19 Mar 2014 12:06:08 GMT) (full text, mbox, link).


Notification sent to David Suárez <david.sephirot@gmail.com>:
Bug acknowledged by developer. (Wed, 19 Mar 2014 12:06:08 GMT) (full text, mbox, link).


Message #34 received at 741767-close@bugs.debian.org (full text, mbox, reply):

From: Dirk Eddelbuettel <edd@debian.org>
To: 741767-close@bugs.debian.org
Subject: Bug#741767: fixed in gretl 1.9.14-3
Date: Wed, 19 Mar 2014 12:03:39 +0000
Source: gretl
Source-Version: 1.9.14-3

We believe that the bug you reported is fixed in the latest version of
gretl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 741767@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dirk Eddelbuettel <edd@debian.org> (supplier of updated gretl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 18 Mar 2014 12:07:08 -0500
Source: gretl
Binary: gretl libgretl1 libgretl1-dev gretl-common gretl-data gretl-doc
Architecture: source all i386
Version: 1.9.14-3
Distribution: unstable
Urgency: low
Maintainer: Dirk Eddelbuettel <edd@debian.org>
Changed-By: Dirk Eddelbuettel <edd@debian.org>
Description: 
 gretl      - GNU Regression, Econometric & Time-Series Library
 gretl-common - GNU Regression, Econometric & Time-Series Library -- scripts pack
 gretl-data - GNU Regression, Econometric & Time-Series Library -- data package
 gretl-doc  - GNU Regression, Econometric & Time-Series Library -- doc package
 libgretl1  - GNU Regression, Econometric & Time-Series Library -- library pack
 libgretl1-dev - GNU Regression, Econometric & Time-Series Library -- development
Closes: 741767
Changes: 
 gretl (1.9.14-3) unstable; urgency=low
 .
   * cli/complete.c: Apply one-line patch for compilation under current
     readline, with thanks to upstream for the patch. 	(Closes: #741767)
Checksums-Sha1: 
 6dcc141d11bf8308f8142cb99b3ca3d8148b3803 1626 gretl_1.9.14-3.dsc
 6c54472c12ce7862c3af5c8cedffea6c86cd114d 7564192 gretl_1.9.14.orig.tar.xz
 7e7ace34fb0f76d9a8095ca4dc0a809ff1b91218 14420 gretl_1.9.14-3.debian.tar.xz
 ad09f692255ce8964416649cac4abe6b8b247d27 460022 gretl-common_1.9.14-3_all.deb
 dff0af936f82aeae70a04b4215f137a287542615 2054238 gretl-data_1.9.14-3_all.deb
 ed31fcb7b377abb9ce4dfcdd88860e08da1170ef 1504358 gretl-doc_1.9.14-3_all.deb
 bddcd1e3c662b58d113ac4dc9cba2016a391471a 2751748 gretl_1.9.14-3_i386.deb
 78014ff75dd0f3a981ed649e2bc866aa5294c157 972688 libgretl1_1.9.14-3_i386.deb
 81d5f84be1cc93bc58d6860ab6a40aed7bf08a9e 1052328 libgretl1-dev_1.9.14-3_i386.deb
Checksums-Sha256: 
 e51683ac74aea4fc7af41871ef8efd8477a2670afe936681d633f3dc860821d3 1626 gretl_1.9.14-3.dsc
 ceabb8cbf461ab340093f3d38d9c87d91f6d17c62906d3d8d7bfe58812ba965b 7564192 gretl_1.9.14.orig.tar.xz
 706292c0716aebab9a64267ca8ab673cc80762ed6a7f46057996dc49a5c86a64 14420 gretl_1.9.14-3.debian.tar.xz
 5debdd32b8d1c3ab971cb744d07aff3f105bd83ecdf17dc9c473b0ebefe26afd 460022 gretl-common_1.9.14-3_all.deb
 fe7599a94fda3a9b945ef3902c67af79c83bfa440903fb62550898d4bfbf0cda 2054238 gretl-data_1.9.14-3_all.deb
 c9c7b73e5ef2476ef10a70e1300003270dfac9fafbc719264ae3e03b006433b0 1504358 gretl-doc_1.9.14-3_all.deb
 db5dc6369c8ae3a007328042895b66ff60e33ef44049b10ee247481cc8bcb915 2751748 gretl_1.9.14-3_i386.deb
 bfb81901110971bb9bfb627c127856a173ff1ba517a6a1231d0f496dcaeb1211 972688 libgretl1_1.9.14-3_i386.deb
 292d6a4a2fefd570bc85b517478af49df33c8d7a025caa094d17de38452385f4 1052328 libgretl1-dev_1.9.14-3_i386.deb
Files: 
 39f884dce2d99836bcd1c5a8172d941b 1626 math optional gretl_1.9.14-3.dsc
 dc5eae84b48af29b9de98a0e75b5bf05 7564192 math optional gretl_1.9.14.orig.tar.xz
 235740ae94681a6bbca4decf48aa054c 14420 math optional gretl_1.9.14-3.debian.tar.xz
 ce7cabdd28a54d800f1cd79249dbfb0f 460022 math optional gretl-common_1.9.14-3_all.deb
 af6cf2e6cdd5845814831ecff63e0249 2054238 math optional gretl-data_1.9.14-3_all.deb
 8474e15dde28c879640aa53238e9530e 1504358 doc optional gretl-doc_1.9.14-3_all.deb
 9d0957f3f8b593312882249e508a9659 2751748 math optional gretl_1.9.14-3_i386.deb
 7194bee6494a357197ca599c6004c3f9 972688 libs optional libgretl1_1.9.14-3_i386.deb
 7907b4727a36c3660ff62f55d7c2e52a 1052328 libdevel optional libgretl1-dev_1.9.14-3_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iD8DBQFTKYPMCZSR95Gw07cRAorCAKCWdQ/1/RefSU6sGaavp2CI3+qGaQCfcuX+
ekOn4jklN/FoKGsKPV334qA=
=TpX7
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 27 Apr 2014 07:34:35 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Dec 23 09:13:52 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.