Warnings about prototype mismatch from makeinfo

  • Open
  • quality assurance status badge
Details
One participant
  • Tomas Volf
Owner
unassigned
Submitted by
Tomas Volf
Severity
normal
T
T
Tomas Volf wrote on 11 Mar 00:07 +0100
(address . bug-guix@gnu.org)
Ze49JHmZuGURLL_l@ws
Hello,

when I take an example .texi file from Texinfo's manual:



\input texinfo
@settitle Sample Manual 1.0

@copying
This is a short example of a complete Texinfo file.

Copyright @copyright{} 2016 Free Software Foundation, Inc.
@end copying

@titlepage
@title Sample Title
@page
@vskip 0pt plus 1filll
@insertcopying
@end titlepage

@contents

@node Top
@top GNU Sample

This manual is for GNU Sample

@menu
* First Chapter:: The first chapter is the
only chapter in this sample.
* Index:: Complete index.
@end menu


@node First Chapter
@chapter First Chapter

@cindex chapter, first
This is the first chapter.
@cindex index entry, another

Here is a numbered list.

@enumerate
@item
This is the first item.

@item
This is the second item.
@end enumerate



@node First Section
@section First Section

First section of first chapter.


@node Second Section
@section Second Section

Second section of first chapter.


@node Index
@unnumbered Index

@printindex cp

@bye



And try to produce .info file from it, I get several warning about subroutines
being redefined with mismatching prototypes:



/tmp $ guix shell -C gcc-toolchain texinfo -- makeinfo xxx.texi
Prototype mismatch: sub Texinfo::Convert::Paragraph::new ($;@) vs ($;$) at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 53, <$fh> line 8.
Subroutine new redefined at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 40, <$fh> line 8.
Subroutine end_line_count redefined at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 76, <$fh> line 8.
Subroutine end_line redefined at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 82, <$fh> line 8.
Subroutine _end_line redefined at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 90, <$fh> line 8.
Subroutine get_pending redefined at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 105, <$fh> line 8.
Prototype mismatch: sub Texinfo::Convert::Paragraph::add_pending_word ($;@) vs ($;$) at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 123, <$fh> line 8.
Subroutine add_pending_word redefined at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 118, <$fh> line 8.
Subroutine end redefined at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 163, <$fh> line 8.
Prototype mismatch: sub Texinfo::Convert::Paragraph::add_next ($$;@) vs ($;$$) at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 190, <$fh> line 8.
Subroutine add_next redefined at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 184, <$fh> line 8.
Subroutine remove_end_sentence redefined at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 251, <$fh> line 8.
Prototype mismatch: sub Texinfo::Convert::Paragraph::add_end_sentence ($$) vs ($;$) at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 260, <$fh> line 8.
Subroutine add_end_sentence redefined at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 256, <$fh> line 8.
Subroutine allow_end_sentence redefined at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 263, <$fh> line 8.
Prototype mismatch: sub Texinfo::Convert::Paragraph::set_space_protection ($$;@) vs ($$;$$$$) at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 291, <$fh> line 8.
Subroutine set_space_protection redefined at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 270, <$fh> line 8.
Subroutine add_text redefined at /gnu/store/4zkk85pkwdafpf3qd6q47xq0fw08kv30-texinfo-7.0.3/share/texinfo/Texinfo/Convert/ParagraphNonXS.pm line 298, <$fh> line 8.



Am I doing something wrong or is this expected?



Have a nice day,
Tomas Volf

--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmXuPR8ACgkQL7/ufbZ/
wakJhA/+LCdj/Gyo09MLcBtJ4QKoNzu/qrYkBhWXeyhkIwUAQPjFX0XkGCZEPfHc
/Sg630rhe4S7aWTFoO7cR/Cq7W0eWgGTHWGSWMXftuxC93gFetJDdwk5cfIZ0ge+
XwxnnQnZS1rSGhmeyxqnG+0bffnLke/Il34iyjv61ULwwCzpvZwg13HTNEaBvzo3
a0V4MqBdgI9bVzaVswCswBtoHTPZj9HOxARFqnyfdRTjIlXLlM27QT3lzlOko28D
5D7BcQpok8JzH7wsvqCbtjaxuFg5fdJ5RAsdGzNE66QRMqVkZdyLu25eMp/8swVV
vUbiKaOHm6vsnnrwFwSdsJfrDB8nfAV9chmQAYqrV3lQs9/G7Y24josYFQuXlGqt
8UtyiHfjY4r/O95pJG4wVndgMVtL3nbgnceo5kP153Ubh9NYD1UcQ9X9A/YA+m08
gkVYD/MQbAWsscdwWnMcO+d9Ji5kuLlPop+PjjojbHgMXVmAeu6wyNrVRLOusZzk
4FYieOvFxTzcUUIf3xRCn9bC8gqiNU6sIxnkP9qnfvcGlBe+fCjpeDktiPVzVQws
7pa+5vmSE58RSODRw/8jfwisuyLQ8XUYCEZ8GgCsi2zNWhfQzlzh3j9kToT/VO4K
dj/av7OQwdaiHYM+mXLPzO/JqBq3FmR8Soa5kEbZOnf2eyOdaGc=
=vOLX
-----END PGP SIGNATURE-----


?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 69717@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 69717
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch