Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh-2.5.03-2.6b17 under Solaris 2.5 trouble with mult()



> The following occurs on all of our Solaris 2.5 boxes for zsh versions
> 2.5.03 - 2.6b17 (ok, I didn't try EVERY beta...:) but does NOT occur
> under SunOS 4.1.x.
> 
> Everything compiles fine, but in the when it (gcc-2.7.2) tries to link:
[...]
> generates the following warnings:
> 
> Warning: size of symbol `mult' changed from 4 to 284 in /lib/libmp.so.1
> Warning: type of symbol `mult' changed from 1 to 2 in /lib/libmp.so.1

mult is used by zle and contains the numeric argument of zle commands.  No
C standard says that mult is a reserved variable I think.  Unfortunately
libmp.so.1 seems to use it.  It should have used something like __mult to
protect user programs.  mult is a quite innocent variable name and this
would mean that every application defining mult as an external symbol will
fail even it it did work under Solaris 2.4.  This is a serious bug in
Solaris.  Please report it to SUN.  I'll rename mult to something else in
the next beta anyway.

Bye,

Zoltan




Messages sorted by: Reverse Date, Date, Thread, Author