Skip Menu |

This queue is for tickets about the Prima CPAN distribution.

Report information
The Basics
Id: 96427
Status: resolved
Priority: 0/
Queue: Prima

People
Owner: Nobody in particular
Requestors: mt [...] debian.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Conflicting declarations of function template_rdf_p_int_Handle_Bool_int
Date: Fri, 13 Jun 2014 14:27:43 +0100
To: bug-Prima [...] rt.cpan.org
From: Michael Tautschnig <mt [...] debian.org>
Debian package version: 1.28-1.2 During a rebuild of all Debian packages in a clean sid chroot (using cowbuilder and pbuilder) the build failed with the following error. Please note that we use our research compiler tool-chain (using tools from the cbmc package), which permits extended reporting on type inconsistencies at link time. [...] cc -shared -L/usr/local/lib -fstack-protector -Wl,--as-needed -L/usr/local/lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/lib -L/usr/lib -L/usr/local/lib -L/lib -o auto/Prima/Prima.so AbstractMenu.o AccelTable.o Application.o Clipboard.o Component.o DeviceBitmap.o Drawable.o File.o Icon.o Image.o Menu.o Object.o Popup.o primguts.o Printer.o Timer.o Utils.o Widget.o Widget_geometry.o Window.o img/bc_color.o img/bc_const.o img/bc_extra.o img/codec_bmp.o img/codec_jpeg.o img/codec_png.o img/codec_tiff.o img/codec_ungif.o img/codec_X11.o img/codec_Xpm.o img/codecs.o img/conv.o img/ic_conv.o img/img.o img/imgscale.o img/imgtype.o img/put.o unix/apc_app.o unix/apc_clipboard.o unix/apc_event.o unix/apc_font.o unix/apc_graphics.o unix/apc_img.o unix/apc_menu.o unix/apc_misc.o unix/apc_pointer.o unix/apc_timer.o unix/apc_widget.o unix/apc_win.o unix/color.o unix/gtk.o unix/xft.o -lXpm -lgif -ltiff -lpng -ljpeg -lm -lpthread -lc -lgcc -lX11 -lXext -lfontconfig -lXrender -lXft -lgtk-x11-2.0 -lgio-2.0 -lpangoft2-1.0 -lgobject-2.0 -lglib-2.0 error: conflicting function declarations "template_rdf_p_int_Handle_Bool_int" old definition in module Application file include/generic/Application.inc line 676 signed int (char *, unsigned long int, signed int, unsigned int) new definition in module File file include/generic/File.inc line 114 signed int (char *, unsigned long int, signed int, signed int) Makefile:260: recipe for target 'auto/Prima/Prima.so' failed make[1]: *** [auto/Prima/Prima.so] Error 64 It seems the source files mentioned above are generated in some way, thus I couldn't easily track down the root cause of this issue. Yet whatever generates these should fix the unsigned/signed int conflict on the last parameter - at the very least to ensure that the compiler generates proper diagnostics, but also it may be the case that undefined behaviour arises if too large values are being passed in. Best, Michael
Download (untitled)
application/pgp-signature 859b

Message body not shown because it is not plain text.

Hi Michael, Can you possibly try this patch? Thank you! Dmitry
Subject: patch
Download patch
application/octet-stream 481b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #96427] Conflicting declarations of function template_rdf_p_int_Handle_Bool_int
Date: Mon, 4 Aug 2014 23:56:42 +0100
To: KARASIK via RT <bug-Prima [...] rt.cpan.org>
From: Michael Tautschnig <mt [...] debian.org>
Hello Dmitry, My apologies for replying with such delay. Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=96427 > > > Hi Michael, > > Can you possibly try this patch? Thank you! >
I have now finally found the time to test this patch, and must report that it doesn't fully work: it breaks the build as the resulting C code has bits like these in include/generic/thunks.tinc: if ( _apt_count_ != 1) croak( "Something really bad happened!"); _apt_res_ = ; PUTBACK; Observe the missing expression on the right-hand side of _apt_res_. My guess is that your proposed patch will require an additional entry (for UV) in %xsConv?! Please let me know, I should now be able to test further patches very quickly. Best, Michael
Hello Michael, I unfortunately cannot reproduce your problem, I tested the patch before proposing it to you and just tested now, all is just fine. And now it is on the latest github version too. I would propose you to run 'make clean' and remove any old copy of Gencls.pm around, and see if that works. Otherwise I can't figure out why you get such a result.. Is there any way I can try to reproduce your result on my machine with your toolchain? Dmitry PS - there's is a %xsConv{UV} entry, it wasn't that.
Subject: Re: [rt.cpan.org #96427] Conflicting declarations of function template_rdf_p_int_Handle_Bool_int
Date: Tue, 5 Aug 2014 08:34:05 +0100
To: KARASIK via RT <bug-Prima [...] rt.cpan.org>
From: Michael Tautschnig <mt [...] debian.org>
Hello Dmitry, Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=96427 > > > Hello Michael, > > I unfortunately cannot reproduce your problem, I tested the patch before proposing it to you and just tested now, all is just fine. And now it is on the latest github version too. I would propose you to run 'make clean' and remove any old copy of Gencls.pm around, and see if that works. >
[...] My apologies, I have been looking at the latest version we have in Debian, which unfortunately is 1.28. So it should all be fine now with the patch in place, we just need to get the latest version uploaded to Debian. Best, Michael
fixed in 1.40