octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60162] Conflicting types for octave_iconv_ope


From: Michele
Subject: [Octave-bug-tracker] [bug #60162] Conflicting types for octave_iconv_open_wrapper and octave_iconv_close_wrapper
Date: Wed, 3 Mar 2021 11:43:46 -0500 (EST)
User-agent: Mozilla/5.0 (X11; SunOS sun4v; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <https://savannah.gnu.org/bugs/?60162>

                 Summary: Conflicting types for octave_iconv_open_wrapper and
octave_iconv_close_wrapper
                 Project: GNU Octave
            Submitted by: michele31415
            Submitted on: Wed 03 Mar 2021 04:43:44 PM UTC
                Category: Configuration and Build System
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: Michele
        Originator Email: 
             Open/Closed: Open
                 Release: 6.2.0
         Discussion Lock: Any
        Operating System: Solaris/SunOS

    _______________________________________________________

Details:

While building 6.2.0 on Solaris 10 SPARC with gcc 7.3.0, gmake ends thusly:

    liboctave/wrappers/iconv-wrappers.c:35:1: error: conflicting types for
'octave_iconv_open_wrapper'
     octave_iconv_open_wrapper (const char *tocode, const char *fromcode)
     ^~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from liboctave/wrappers/iconv-wrappers.c:32:0:
    liboctave/wrappers/iconv-wrappers.h:34:1: note: previous declaration of
'octave_iconv_open_wrapper' was here
     octave_iconv_open_wrapper (const char *tocode, const char *fromcode);
     ^~~~~~~~~~~~~~~~~~~~~~~~~
    liboctave/wrappers/iconv-wrappers.c:41:1: error: conflicting types for
'octave_iconv_close_wrapper'
     octave_iconv_close_wrapper (iconv_t cd)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from liboctave/wrappers/iconv-wrappers.c:32:0:
    liboctave/wrappers/iconv-wrappers.h:37:1: note: previous declaration of
'octave_iconv_close_wrapper' was here
     octave_iconv_close_wrapper (void *cd);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~

The first error message is confusing because the declaration was split over
two lines so the error output only showed the second lines (which are
identical). In the first error the function is declared “extern void *” in
the .h file and “iconv_t” in the c file. Which one is right?




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60162>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]