Installed gprolog.h cannot be used in C++ programs

Bug #155078 reported by Roberto Bagnara
2
Affects Status Importance Assigned to Milestone
gprolog (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: gprolog

Package: gprolog
Version: 1.3.0-3
Severity: important

The file /usr/lib/gprolog-iso/include/gprolog.h of gprolog is supposed to be includable by C++ programs (and in fact, I am doing that routinely with the official distribution of GNU Prolog). However, this cannot be done with the Ubuntu package.

$ fgrep -n -C 3 cplus /usr/lib/gprolog-iso/include/gprolog.h
25-/* $Id: headers.h,v 1.10 2007/01/04 10:35:13 diaz Exp $ */
26-#ifndef _GPROLOG_H
27-#define _GPROLOG_H
28:#ifdef __cplusplus
29-extern "C" {
30-#endif
31-#ifndef _GP_CONFIG_H
--
2569-void Full_Max_Cst_Var(Range *z, int a, Range *x);
2570-void Full_Min_Cst_Var(Range *z, int a, Range *x);
2571-#endif /* NO_USE_FD_SOLVER */
2572:#ifdef __cplusplus
2573-}
2574-#endif
2575-#endif
$ cat bug.cc
#include </usr/lib/gprolog-iso/include/gprolog.h>
$ g++ -c bug.cc
/usr/lib/gprolog-iso/include/gprolog.h: In function ‘WamWord* Call_CP_Destructors(WamWord*)’:
/usr/lib/gprolog-iso/include/gprolog.h:1077: error: too many arguments to function
$

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10?

Changed in gprolog:
status: New → Incomplete
Revision history for this message
Roberto Bagnara (bagnara) wrote :

I don't have access to an 8.10 system right now. But you can check by yourself very easily.
Just try to compile the one-liner

#include </usr/lib/gprolog-iso/include/gprolog.h>

with g++.

Revision history for this message
Victor Vargas (kamus) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in gprolog (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Roberto Bagnara (bagnara) wrote : Re: [Bug 155078] Re: Installed gprolog.h cannot be used in C++ programs

Kamus wrote:
> We are closing this bug report because it lacks the information we need
> to investigate the problem, as described in the previous comments.
> Please reopen it if you can give us the missing information, and don't
> hesitate to submit bug reports in the future. To reopen the bug report
> you can click on the current status, under the Status column, and change
> the Status back to "New". Thanks again!
>
> ** Changed in: gprolog (Ubuntu)
> Status: Incomplete => Invalid

You mean you cannot compile the one-liner

#include </usr/lib/gprolog-iso/include/gprolog.h>

with g++ in an 8.10 system and see whether there are compilation errors?
If you can provide me with access to such a system I can do it.
All the best,

    Roberto

--
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:<email address hidden>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.