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

Re: The dpkg problem revisited



Hello,

> In dpkg-1.1.0/dselect/main.cc there are 3 functions named helponly(), 
> versiononly() and setdebug(). In the original source they are declared as 
> "static void", but if you try to link these (gcc 2.7.2, binutils 2.6), 
[...]
> If you remove the "static" keywords in the functions' headers, it links
> ok. Those functions are only used in this source file, so declaring them
> as static should be ok. They are actually used in a table directly 
> following them:
[...]
> Andreas - do you have an idea what the problem is? A (hopefully known) 
> bug in ld probably?

Same on the alpha, i notified Ian Jackson about it and he suggested it might
be a bug in the g++-compiler or the binutils, but it happend to me with
i386(elf) too...

I guess the best fix for it is that Ian removes those static declarations in
the source, the effect on the generated code will be marginal at best.
Ian, what is your position on this?

Dominik

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Visit the FAN SITE of the WORLD LEAGUE OF AMERICAN FOOTBALL:
   http://www.uni-mainz.de/~kubla/WLAF/Welcome.html
or:
   file:/afs/zdv.uni-mainz/homes/UFO/kubla/public_html/WLAF/Welcome.html


Reply to: