delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/13/14:21:56

Date: Sun, 13 Aug 2000 21:24:24 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: snowball3 AT bigfoot DOT com
Message-Id: <2110-Sun13Aug2000212423+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b
CC: djgpp AT delorie DOT com
In-reply-to: <glq5pskesd9njjpdlja7mr1e8pp1q7nd1o@4ax.com>
(snowball3 AT bigfoot DOT com)
Subject: Re: Linker warning
References: <3992D37A DOT D0274FA6 AT ma DOT tum DOT de> <glq5pskesd9njjpdlja7mr1e8pp1q7nd1o AT 4ax DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

I saw today a similar warning:

   c:/usr/djgpp/bin/ld.exe: Warning: type of symbol `_menu_bar_items' \
     changed from 4 to 36 in keyboard.o

(this was a single long line).  This happens when building Emacs.  It
looks like this warning is triggered by the name menu_bar_items being
used for a struct member and a function:

    struct frame
    {
      ...
      Lisp_Object menu_bar_items;
      ...
    };

    Lisp_Object
    menu_bar_items (old)
        Lisp_Object old;
    {
      ...

According to the ChangeLog, this code has been like that for a long
time, the only thing that's changed is that I installed Binutils 2.10
a day or two ago.

Since struct members and functions are in separate namespaces in C, I
wonder why does the linker bother to issue a warning?  Does that mean
that I have a real clash on my hands?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019