This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCC 3.0 branch segfaults when compiling KDElibs


On Mon, Jun 04, 2001 at 11:37:08AM -0500, Luke Mauldin wrote:
> /usr/include/bits/stdio.h:35:27: warning: ISO C does not permit named 
> variadic macros

That really oughta read "ISO C++"... which still doesn't permit named
variadic macros.  :-)  They're a GNU extension and an addition to C99,
but IIRC the two are slightly different; someone else will have to say more.


['call of overloaded <C library function> ambiguous']

A very very active issue on the libstdc++ mailing list right now.  I thought
this was worked around, but your checkout may be earlier than the fix.

> If I go into the files and change the function calls from simply strcpy(...) 
> to std::strcpy(...) it works and compiles fine.  I am not sure if that is a 
> bug or if that is kde's fault?  I know that it does compile correctly with 
> gcc-2.96 and gcc-2.95.3.

Both those compilers use an old, extremely noncompliant c++ library.
The issue with strcpy/std::strcpy (and the others) partially depends on which
header you included to get the declaration.  If it was <FOO.h> then plain
strcpy, memmove, etc, should work.  If it was <cFOO>, then the declarations
are only in std:: and you must qualify the calls (or use 'using', etc).

This is known to not work as well as it should be.


> The second error message I get is when gcc 
> segfaults.  Here is that error message:  
[...]
> ../../arts/mcopidl/mcopidl -t -I. -I../../arts/flow 
> ../../arts/soundserver/soundserver.idl
> make[3]: *** [soundserver.h] Segmentation fault (core dumped)

That doesn't look like gcc segfaulting (it would have produced a more
interesting error message).  That looks like soundserver.idl segfaulting,
while make was doing the commands to produce soundserver.h.

You can use gdb on the core file to see where and what happened.


Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]